My Project
|
Tutorial problem using the "immiscible" model. More...
#include <tutorial1problem.hh>
Public Member Functions | |
Tutorial1Problem (Simulator &simulator) | |
The constructor of the problem. | |
void | finishInit () |
This method initializes the data structures allocated by the problem constructor. | |
std::string | name () const |
Specifies the problem name. This is used for files generated by the simulation. | |
template<class Context > | |
Scalar | temperature (const Context &, unsigned, unsigned) const |
Returns the temperature at a given position. | |
template<class Context > | |
const DimMatrix & | intrinsicPermeability (const Context &, unsigned, unsigned) const |
Returns the intrinsic permeability tensor [m^2] at a position. | |
template<class Context > | |
Scalar | porosity (const Context &, unsigned, unsigned) const |
Defines the porosity [-] of the medium at a given position. | |
template<class Context > | |
const MaterialLawParams & | materialLawParams (const Context &, unsigned, unsigned) const |
Returns the parameter object for the material law at a given position. | |
template<class Context > | |
void | boundary (BoundaryRateVector &values, const Context &context, unsigned spaceIdx, unsigned timeIdx) const |
Evaluates the boundary conditions. | |
template<class Context > | |
void | source (RateVector &sourceRate, const Context &, unsigned, unsigned) const |
Evaluates the source term for all conserved quantities at a given position of the domain [kg/(m^3 * s)]. | |
template<class Context > | |
void | initial (PrimaryVariables &values, const Context &context, unsigned spaceIdx, unsigned timeIdx) const |
Evaluates the initial value at a given position in the domain. | |
Tutorial problem using the "immiscible" model.
|
inline |
The constructor of the problem.
This only allocates the memory required by the problem. The constructor is supposed to never ever throw an exception.
|
inline |
This method initializes the data structures allocated by the problem constructor.
In contrast to the constructor, exceptions thrown from within this method won't lead to segmentation faults.
|
inline |
Evaluates the source term for all conserved quantities at a given position of the domain [kg/(m^3 * s)].
Positive values mean that mass is created.