Opm::RichardsLensProblem< TypeTag > Class Template Reference

A water infiltration problem with a low-permeability lens embedded into a high-permeability domain. More...

#include <richardslensproblem.hh>

Inheritance diagram for Opm::RichardsLensProblem< TypeTag >:
Inheritance graph

Public Member Functions

 RichardsLensProblem (Simulator &simulator)
 
void finishInit ()
 Called by the Opm::Simulator in order to initialize the problem. More...
 
Problem parameters
std::string name () const
 The problem name. More...
 
void endTimeStep ()
 Called by the simulator after each time integration. More...
 
template<class Context >
Scalar temperature (const Context &context, unsigned spaceIdx, unsigned timeIdx) const
 
Scalar temperature (unsigned, unsigned) const
 
template<class Context >
const DimMatrix & intrinsicPermeability (const Context &context, unsigned spaceIdx, unsigned timeIdx) const
 
template<class Context >
Scalar porosity (const Context &, unsigned, unsigned) const
 
template<class Context >
const MaterialLawParams & materialLawParams (const Context &context, unsigned spaceIdx, unsigned timeIdx) const
 
const MaterialLawParams & materialLawParams (unsigned globalSpaceIdx, unsigned) const
 
template<class Context >
Scalar referencePressure (const Context &context, unsigned spaceIdx, unsigned timeIdx) const
 Return the reference pressure [Pa] of the wetting phase. More...
 
Scalar referencePressure (unsigned, unsigned) const
 
Boundary conditions
template<class Context >
void boundary (BoundaryRateVector &values, const Context &context, unsigned spaceIdx, unsigned timeIdx) 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 &, unsigned, unsigned) const
 Evaluate the source term for all phases within a given sub-control-volume. More...
 

Static Public Member Functions

static void registerParameters ()
 

Detailed Description

template<class TypeTag>
class Opm::RichardsLensProblem< TypeTag >

A water infiltration problem with a low-permeability lens embedded into a high-permeability domain.

The domain is rectangular. The left and right boundaries are free-flow boundaries with fixed water pressure which corresponds to a fixed saturation of $S_w = 0$ in the Richards model, the bottom boundary is closed. The top boundary is also closed except for an infiltration section, where water is infiltrating into an initially unsaturated porous medium. This problem is very similar the LensProblem, with the main difference being that the domain is initally fully saturated by gas instead of water and water instead of a DNAPL infiltrates from the top.

Constructor & Destructor Documentation

◆ RichardsLensProblem()

template<class TypeTag >
Opm::RichardsLensProblem< TypeTag >::RichardsLensProblem ( Simulator &  simulator)
inline

Member Function Documentation

◆ boundary()

template<class TypeTag >
template<class Context >
void Opm::RichardsLensProblem< TypeTag >::boundary ( BoundaryRateVector &  values,
const Context &  context,
unsigned  spaceIdx,
unsigned  timeIdx 
) const
inline

Evaluate the boundary conditions for a boundary segment.

Parameters
valuesStores the fluxes over the boundary segment.
contextThe object representing the execution context from which this method is called.
spaceIdxThe local index of the spatial entity which represents the boundary segment.
timeIdxThe index used for the time discretization

References Opm::RichardsLensProblem< TypeTag >::materialLawParams().

◆ endTimeStep()

template<class TypeTag >
void Opm::RichardsLensProblem< TypeTag >::endTimeStep ( )
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)

◆ finishInit()

template<class TypeTag >
void Opm::RichardsLensProblem< TypeTag >::finishInit ( )
inline

Called by the Opm::Simulator in order to initialize the problem.

If you overload this method don't forget to call ParentType::finishInit()

◆ initial()

template<class TypeTag >
template<class Context >
void Opm::RichardsLensProblem< TypeTag >::initial ( PrimaryVariables &  values,
const Context &  context,
unsigned  spaceIdx,
unsigned  timeIdx 
) const
inline

Evaluate the initial value for a control volume.

Parameters
valuesStores the primary variables.
contextThe object representing the execution context from which this method is called.
spaceIdxThe local index of the spatial entity which represents the boundary segment.
timeIdxThe index used for the time discretization

References Opm::RichardsLensProblem< TypeTag >::materialLawParams().

◆ intrinsicPermeability()

template<class TypeTag >
template<class Context >
const DimMatrix & Opm::RichardsLensProblem< TypeTag >::intrinsicPermeability ( const Context &  context,
unsigned  spaceIdx,
unsigned  timeIdx 
) const
inline

◆ materialLawParams() [1/2]

template<class TypeTag >
template<class Context >
const MaterialLawParams & Opm::RichardsLensProblem< TypeTag >::materialLawParams ( const Context &  context,
unsigned  spaceIdx,
unsigned  timeIdx 
) const
inline

◆ materialLawParams() [2/2]

template<class TypeTag >
const MaterialLawParams & Opm::RichardsLensProblem< TypeTag >::materialLawParams ( unsigned  globalSpaceIdx,
unsigned   
) const
inline

◆ name()

template<class TypeTag >
std::string Opm::RichardsLensProblem< TypeTag >::name ( ) const
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.

◆ porosity()

template<class TypeTag >
template<class Context >
Scalar Opm::RichardsLensProblem< TypeTag >::porosity ( const Context &  ,
unsigned  ,
unsigned   
) const
inline

◆ referencePressure() [1/2]

template<class TypeTag >
template<class Context >
Scalar Opm::RichardsLensProblem< TypeTag >::referencePressure ( const Context &  context,
unsigned  spaceIdx,
unsigned  timeIdx 
) const
inline

Return the reference pressure [Pa] of the wetting phase.

References Opm::RichardsLensProblem< TypeTag >::referencePressure().

Referenced by Opm::RichardsLensProblem< TypeTag >::referencePressure().

◆ referencePressure() [2/2]

template<class TypeTag >
Scalar Opm::RichardsLensProblem< TypeTag >::referencePressure ( unsigned  ,
unsigned   
) const
inline

◆ registerParameters()

template<class TypeTag >
static void Opm::RichardsLensProblem< TypeTag >::registerParameters ( )
inlinestatic

◆ source()

template<class TypeTag >
template<class Context >
void Opm::RichardsLensProblem< TypeTag >::source ( RateVector &  rate,
const Context &  ,
unsigned  ,
unsigned   
) const
inline

Evaluate the source term for all phases within a given sub-control-volume.

Parameters
rateStores the values of the volumetric creation/anihilition rates of the conserved quantities.
contextThe object representing the execution context from which this method is called.
spaceIdxThe local index of the spatial entity which represents the boundary segment.
timeIdxThe index used for the time discretization

For this problem, the source term of all components is 0 everywhere.

◆ temperature() [1/2]

template<class TypeTag >
template<class Context >
Scalar Opm::RichardsLensProblem< TypeTag >::temperature ( const Context &  context,
unsigned  spaceIdx,
unsigned  timeIdx 
) const
inline

◆ temperature() [2/2]

template<class TypeTag >
Scalar Opm::RichardsLensProblem< TypeTag >::temperature ( unsigned  ,
unsigned   
) const
inline

The documentation for this class was generated from the following file: