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

Tutorial problem using the "immiscible" model. More...

#include <tutorial1problem.hh>

Inheritance diagram for Ewoms::Tutorial1Problem< TypeTag >:

Public Member Functions

 Tutorial1Problem (Simulator &simulator)
 The constructor of the problem. More...
 
void finishInit ()
 This method initializes the data structures allocated by the problem constructor. More...
 
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 &source, const Context &, unsigned, unsigned) const
 Evaluates the source term for all conserved quantities at a given position of the domain [kg/(m^3 * s)]. More...
 
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.
 

Detailed Description

template<class TypeTag>
class Ewoms::Tutorial1Problem< TypeTag >

Tutorial problem using the "immiscible" model.

Constructor & Destructor Documentation

template<class TypeTag >
Ewoms::Tutorial1Problem< TypeTag >::Tutorial1Problem ( Simulator simulator)
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.

Member Function Documentation

template<class TypeTag >
void Ewoms::Tutorial1Problem< TypeTag >::finishInit ( )
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.

template<class TypeTag >
template<class Context >
void Ewoms::Tutorial1Problem< TypeTag >::source ( RateVector &  source,
const Context &  ,
unsigned  ,
unsigned   
) const
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.


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