All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Ewoms::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 Ewoms::RichardsLensProblem< TypeTag >:

Public Member Functions

 RichardsLensProblem (Simulator &simulator)
 
void finishInit ()
 Called by the Ewoms::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 globalSpaceIdx OPM_UNUSED, unsigned timeIdx OPM_UNUSED) const
 
template<class Context >
const DimMatrix & intrinsicPermeability (const Context &context, unsigned spaceIdx, unsigned timeIdx) 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, unsigned spaceIdx, unsigned timeIdx) const
 
const MaterialLawParams & materialLawParams (unsigned globalSpaceIdx, unsigned timeIdx OPM_UNUSED) 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 globalSpaceIdx OPM_UNUSED, unsigned timeIdx OPM_UNUSED) 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 &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...
 

Detailed Description

template<class TypeTag>
class Ewoms::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

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

Member Function Documentation

template<class TypeTag >
template<class Context >
void Ewoms::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
template<class TypeTag >
void Ewoms::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)

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

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

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

template<class TypeTag >
template<class Context >
void Ewoms::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
template<class TypeTag >
template<class Context >
const DimMatrix& Ewoms::RichardsLensProblem< TypeTag >::intrinsicPermeability ( const Context &  context,
unsigned  spaceIdx,
unsigned  timeIdx 
) const
inline

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

template<class TypeTag >
std::string Ewoms::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.

template<class TypeTag >
template<class Context >
Scalar Ewoms::RichardsLensProblem< TypeTag >::porosity ( const Context &context  OPM_UNUSED,
unsigned spaceIdx  OPM_UNUSED,
unsigned timeIdx  OPM_UNUSED 
) const
inline

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

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

Template Parameters
ContextThe type of the execution context.
Parameters
contextThe execution context.
spaceIdxThe local index used by the space discretization.
timeIdxThe index used by the time discretization.
template<class TypeTag >
template<class Context >
void Ewoms::RichardsLensProblem< TypeTag >::source ( RateVector &  rate,
const Context &context  OPM_UNUSED,
unsigned spaceIdx  OPM_UNUSED,
unsigned timeIdx  OPM_UNUSED 
) 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.

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


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