All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Ewoms::GroundWaterProblem< TypeTag > Class Template Reference

Test for the immisicible VCVF discretization with only a single phase. More...

#include <groundwaterproblem.hh>

Inheritance diagram for Ewoms::GroundWaterProblem< TypeTag >:

Public Member Functions

 GroundWaterProblem (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 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 DimMatrix & intrinsicPermeability (const Context &context, unsigned spaceIdx, unsigned timeIdx) 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 OPM_UNUSED, unsigned spaceIdx OPM_UNUSED, unsigned timeIdx OPM_UNUSED) 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...
 

Static Public Member Functions

static void registerParameters ()
 

Detailed Description

template<class TypeTag>
class Ewoms::GroundWaterProblem< TypeTag >

Test for the immisicible VCVF discretization with only a single phase.

This problem is inspired by groundwater flow. Don't expect it to be realistic, though: For two dimensions, the domain size is 1m times 1m. On the left and right of the domain, no-flow boundaries are used, while at the top and bottom free flow boundaries with a pressure of 2 bar and 1 bar are used. The center of the domain is occupied by a rectangular lens of lower permeability.

Constructor & Destructor Documentation

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

Member Function Documentation

template<class TypeTag >
template<class Context >
void Ewoms::GroundWaterProblem< 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::GroundWaterProblem< 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::GroundWaterProblem< 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::GroundWaterProblem< TypeTag >::initial ( PrimaryVariables &  values,
const Context &context  OPM_UNUSED,
unsigned spaceIdx  OPM_UNUSED,
unsigned timeIdx  OPM_UNUSED 
) 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::GroundWaterProblem< TypeTag >::intrinsicPermeability ( const Context &  context,
unsigned  spaceIdx,
unsigned  timeIdx 
) const
inline

template<class TypeTag >
std::string Ewoms::GroundWaterProblem< 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::GroundWaterProblem< TypeTag >::porosity ( const Context &context  OPM_UNUSED,
unsigned spaceIdx  OPM_UNUSED,
unsigned timeIdx  OPM_UNUSED 
) const
inline

template<class TypeTag >
static void Ewoms::GroundWaterProblem< TypeTag >::registerParameters ( )
inlinestatic

template<class TypeTag >
template<class Context >
void Ewoms::GroundWaterProblem< 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
template<class TypeTag >
template<class Context >
Scalar Ewoms::GroundWaterProblem< TypeTag >::temperature ( const Context &context  OPM_UNUSED,
unsigned spaceIdx  OPM_UNUSED,
unsigned timeIdx  OPM_UNUSED 
) const
inline


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