My Project
Loading...
Searching...
No Matches
Opm::DiffusionProblem< TypeTag > Class Template Reference

1D problem which is driven by molecular diffusion. More...

#include <diffusionproblem.hh>

Inheritance diagram for Opm::DiffusionProblem< TypeTag >:

Public Member Functions

 DiffusionProblem (Simulator &simulator)
 
void finishInit ()
 
Auxiliary methods
std::string name () const
 
void endTimeStep ()
 
Soil parameters
template<class Context >
const DimMatrix & intrinsicPermeability (const Context &, unsigned, unsigned) const
 
template<class Context >
Scalar porosity (const Context &, unsigned, unsigned) const
 
template<class Context >
const MaterialLawParams & materialLawParams (const Context &, unsigned, unsigned) const
 
template<class Context >
Scalar temperature (const Context &, unsigned, unsigned) const
 
Boundary conditions
template<class Context >
void boundary (BoundaryRateVector &values, const Context &, unsigned, unsigned) const
 
Volumetric terms
template<class Context >
void initial (PrimaryVariables &values, const Context &context, unsigned spaceIdx, unsigned timeIdx) const
 
template<class Context >
void source (RateVector &rate, const Context &, unsigned, unsigned) const
 

Detailed Description

template<class TypeTag>
class Opm::DiffusionProblem< TypeTag >

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.

Constructor & Destructor Documentation

◆ DiffusionProblem()

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

Member Function Documentation

◆ boundary()

template<class TypeTag >
template<class Context >
void Opm::DiffusionProblem< TypeTag >::boundary ( BoundaryRateVector &  values,
const Context &  ,
unsigned  ,
unsigned   
) const
inline

This problem sets no-flow boundaries everywhere.

◆ endTimeStep()

template<class TypeTag >
void Opm::DiffusionProblem< TypeTag >::endTimeStep ( )
inline

◆ finishInit()

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

◆ initial()

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

◆ intrinsicPermeability()

template<class TypeTag >
template<class Context >
const DimMatrix & Opm::DiffusionProblem< TypeTag >::intrinsicPermeability ( const Context &  ,
unsigned  ,
unsigned   
) const
inline

◆ materialLawParams()

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

◆ name()

template<class TypeTag >
std::string Opm::DiffusionProblem< TypeTag >::name ( ) const
inline

◆ porosity()

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

◆ source()

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

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

◆ temperature()

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


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