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

Two-phase problem which involves fractures. More...

#include <fractureproblem.hh>

Inheritance diagram for Ewoms::FractureProblem< TypeTag >:

Public Member Functions

 FractureProblem (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 directly after the time integration.
 
template<class Context >
Scalar temperature (const Context &context OPM_UNUSED, unsigned spaceIdx OPM_UNUSED, unsigned timeIdx OPM_UNUSED) const
 
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 >
const DimMatrix & fractureIntrinsicPermeability (const Context &context OPM_UNUSED, unsigned spaceIdx OPM_UNUSED, unsigned timeIdx OPM_UNUSED) const
 Intrinsic permeability of fractures. More...
 
template<class Context >
Scalar porosity (const Context &context OPM_UNUSED, unsigned spaceIdx OPM_UNUSED, unsigned timeIdx OPM_UNUSED) const
 
template<class Context >
Scalar fracturePorosity (const Context &context OPM_UNUSED, unsigned spaceIdx OPM_UNUSED, unsigned timeIdx OPM_UNUSED) const
 The porosity inside the fractures. More...
 
template<class Context >
const MaterialLawParams & materialLawParams (const Context &context OPM_UNUSED, unsigned spaceIdx OPM_UNUSED, unsigned timeIdx OPM_UNUSED) const
 
template<class Context >
const MaterialLawParams & fractureMaterialLawParams (const Context &context OPM_UNUSED, unsigned spaceIdx OPM_UNUSED, unsigned timeIdx OPM_UNUSED) const
 The parameters for the material law inside the fractures. More...
 
const FractureMapperfractureMapper () const
 Returns the object representating the fracture topology.
 
template<class Context >
Scalar fractureWidth (const Context &context OPM_UNUSED, unsigned spaceIdx1 OPM_UNUSED, unsigned spaceIdx2 OPM_UNUSED, unsigned timeIdx OPM_UNUSED) const
 Returns the width of the fracture. More...
 
template<class Context >
const HeatConductionLawParams & heatConductionParams (const Context &context OPM_UNUSED, unsigned spaceIdx OPM_UNUSED, unsigned timeIdx OPM_UNUSED) const
 
template<class Context >
Scalar heatCapacitySolid (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 constraints (Constraints &constraints, const Context &context, unsigned spaceIdx, unsigned timeIdx) const
 Evaluate the constraints for a control volume. More...
 
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::FractureProblem< TypeTag >

Two-phase problem which involves fractures.

The domain is initially completely saturated by the oil phase, except for the left side, which is fully water saturated. Since the capillary pressure in the fractures is lower than in the rock matrix and the material is hydrophilic, water infiltrates through the fractures and gradually pushes the oil out on the right side, where the pressure is kept constant.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Evaluate the constraints for a control volume.

Parameters
constraintsStores the values of the primary variables at a given spatial and temporal location.
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::FractureProblem< 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 >
const DimMatrix& Ewoms::FractureProblem< TypeTag >::fractureIntrinsicPermeability ( const Context &context  OPM_UNUSED,
unsigned spaceIdx  OPM_UNUSED,
unsigned timeIdx  OPM_UNUSED 
) const
inline

Intrinsic permeability of fractures.

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 >
const MaterialLawParams& Ewoms::FractureProblem< TypeTag >::fractureMaterialLawParams ( const Context &context  OPM_UNUSED,
unsigned spaceIdx  OPM_UNUSED,
unsigned timeIdx  OPM_UNUSED 
) const
inline

The parameters for the material law inside the fractures.

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 >
Scalar Ewoms::FractureProblem< TypeTag >::fracturePorosity ( const Context &context  OPM_UNUSED,
unsigned spaceIdx  OPM_UNUSED,
unsigned timeIdx  OPM_UNUSED 
) const
inline

The porosity inside the fractures.

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 >
Scalar Ewoms::FractureProblem< TypeTag >::fractureWidth ( const Context &context  OPM_UNUSED,
unsigned spaceIdx1  OPM_UNUSED,
unsigned spaceIdx2  OPM_UNUSED,
unsigned timeIdx  OPM_UNUSED 
) const
inline

Returns the width of the fracture.

Todo:
This method should get one face index instead of two vertex indices. This probably requires a new context class, though.
Parameters
contextThe execution context.
spaceIdx1The local index of the edge's first edge.
spaceIdx2The local index of the edge's second edge.
timeIdxThe index used by the time discretization.
template<class TypeTag >
template<class Context >
Scalar Ewoms::FractureProblem< TypeTag >::heatCapacitySolid ( const Context &context  OPM_UNUSED,
unsigned spaceIdx  OPM_UNUSED,
unsigned timeIdx  OPM_UNUSED 
) const
inline

In this case, we assume the rock-matrix to be granite.

template<class TypeTag >
template<class Context >
const HeatConductionLawParams& Ewoms::FractureProblem< TypeTag >::heatConductionParams ( const Context &context  OPM_UNUSED,
unsigned spaceIdx  OPM_UNUSED,
unsigned timeIdx  OPM_UNUSED 
) const
inline

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

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