1D problem which is driven by molecular diffusion. More...
#include <diffusionproblem.hh>
Public Member Functions | |
DiffusionProblem (Simulator &simulator) | |
void | finishInit () |
Called by the Ewoms::Simulator in order to initialize the problem. More... | |
Auxiliary methods | |
std::string | name () const |
The problem name. More... | |
void | endTimeStep () |
Called by the simulator after each time integration. More... | |
Soil parameters | |
template<class Context > | |
const DimMatrix & | intrinsicPermeability (const Context &context OPM_UNUSED, unsigned spaceIdx OPM_UNUSED, unsigned timeIdx OPM_UNUSED) const |
template<class Context > | |
Scalar | porosity (const Context &context OPM_UNUSED, unsigned spaceIdx OPM_UNUSED, unsigned timeIdx OPM_UNUSED) const |
template<class Context > | |
const MaterialLawParams & | materialLawParams (const Context &context OPM_UNUSED, unsigned spaceIdx OPM_UNUSED, unsigned timeIdx OPM_UNUSED) const |
template<class Context > | |
Scalar | temperature (const Context &context OPM_UNUSED, unsigned spaceIdx OPM_UNUSED, unsigned timeIdx OPM_UNUSED) const |
Boundary conditions | |
template<class Context > | |
void | boundary (BoundaryRateVector &values, const Context &context OPM_UNUSED, unsigned spaceIdx OPM_UNUSED, unsigned timeIdx OPM_UNUSED) const |
Evaluate the boundary conditions for a boundary segment. More... | |
Volumetric terms | |
template<class Context > | |
void | initial (PrimaryVariables &values, const Context &context, unsigned spaceIdx, unsigned timeIdx) const |
Evaluate the initial value for a control volume. More... | |
template<class Context > | |
void | source (RateVector &rate, const Context &context OPM_UNUSED, unsigned spaceIdx OPM_UNUSED, unsigned timeIdx OPM_UNUSED) const |
Evaluate the source term for all phases within a given sub-control-volume. More... | |
1D problem which is driven by molecular diffusion.
The domain is one meter long and completely filled with gas and closed on all boundaries. Its left half exhibits a slightly higher water concentration than the right one. After a while, the concentration of water will be equilibrate due to molecular diffusion.
|
inline |
|
inline |
Evaluate the boundary conditions for a boundary segment.
values | Stores the fluxes over the boundary segment. |
context | The object representing the execution context from which this method is called. |
spaceIdx | The local index of the spatial entity which represents the boundary segment. |
timeIdx | The index used for the time discretization |
This problem sets no-flow boundaries everywhere.
|
inline |
Called by the simulator after each time integration.
This method is intended to do some post processing of the solution. (e.g., some additional output)
|
inline |
Called by the Ewoms::Simulator in order to initialize the problem.
If you overload this method don't forget to call ParentType::finishInit()
|
inline |
Evaluate the initial value for a control volume.
values | Stores the primary variables. |
context | The object representing the execution context from which this method is called. |
spaceIdx | The local index of the spatial entity which represents the boundary segment. |
timeIdx | The index used for the time discretization |
|
inline |
|
inline |
|
inline |
The problem name.
This is used as a prefix for files generated by the simulation. It is highly recommend to overwrite this method in the concrete problem which is simulated.
|
inline |
|
inline |
Evaluate the source term for all phases within a given sub-control-volume.
rate | Stores the values of the volumetric creation/anihilition rates of the conserved quantities. |
context | The object representing the execution context from which this method is called. |
spaceIdx | The local index of the spatial entity which represents the boundary segment. |
timeIdx | The index used for the time discretization |
For this problem, the source term of all components is 0 everywhere.
|
inline |