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

1D Problem with very fast injection of gas on the left. More...

#include <powerinjectionproblem.hh>

Inheritance diagram for Ewoms::PowerInjectionProblem< TypeTag >:

Public Member Functions

 PowerInjectionProblem (Simulator &simulator)
 
void finishInit ()
 Called by the Ewoms::Simulator in order to initialize the problem. More...
 
Auxiliary methods
std::string name () const
 The problem name. More...
 
void endTimeStep ()
 Called by the simulator after each time integration. More...
 
Soil parameters
template<class Context >
const DimMatrix & intrinsicPermeability (const Context &context OPM_UNUSED, unsigned spaceIdx OPM_UNUSED, unsigned timeIdx OPM_UNUSED) const
 
template<class Context >
Scalar ergunCoefficient (const Context &context OPM_UNUSED, unsigned spaceIdx OPM_UNUSED, unsigned timeIdx OPM_UNUSED) const
 Returns the Ergun coefficient. More...
 
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 OPM_UNUSED, unsigned spaceIdx OPM_UNUSED, unsigned timeIdx OPM_UNUSED) const
 
template<class Context >
Scalar temperature (const Context &context OPM_UNUSED, unsigned spaceIdx 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 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...
 

Detailed Description

template<class TypeTag>
class Ewoms::PowerInjectionProblem< TypeTag >

1D Problem with very fast injection of gas on the left.

The velocity model is chosen in the .cc file in this problem. The spatial parameters are inspired by the ones given by

V. Jambhekar: "Forchheimer Porous-media Flow models -- Numerical Investigation and Comparison with Experimental Data", Master's Thesis at Institute for Modelling Hydraulic and Environmental Systems, University of Stuttgart, 2011

Constructor & Destructor Documentation

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

Member Function Documentation

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

This problem sets a very high injection rate of nitrogen on the left and a free-flow boundary on the right.

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

Returns the Ergun coefficient.

The Ergun coefficient is a measure how much the velocity is reduced by turbolence. It is a quantity that does not depend on the fluid phase but only on the porous medium in question. A value of 0 means that the velocity is not influenced by turbolence.

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

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

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

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