Ewoms::DiscreteFracturePrimaryVariables< TypeTag > Class Template Reference

Represents the primary variables used by the discrete fracture multi-phase model. More...

#include <discretefractureprimaryvariables.hh>

Inheritance diagram for Ewoms::DiscreteFracturePrimaryVariables< TypeTag >:
Inheritance graph

Public Member Functions

 DiscreteFracturePrimaryVariables ()
 Default constructor. More...
 
 DiscreteFracturePrimaryVariables (Scalar value)
 Constructor with assignment from scalar. More...
 
 DiscreteFracturePrimaryVariables (const DiscreteFracturePrimaryVariables &value)
 Copy constructor. More...
 
template<class FluidState >
void assignNaiveFromFracture (const FluidState &fractureFluidState, const MaterialLawParams &matParams)
 Directly retrieve the primary variables from an arbitrary fluid state of the fractures. More...
 
template<class FluidState >
void assignMassConservative (const FluidState &fluidState, const MaterialLawParams &matParams, bool isInEquilibrium=false)
 Set the primary variables from an arbitrary fluid state in a mass conservative way. More...
 
template<class FluidState >
void assignNaive (const FluidState &fluidState)
 Directly retrieve the primary variables from an arbitrary fluid state. More...
 
Evaluation makeEvaluation (int varIdx, int timeIdx) const
 Return a primary variable intensive evaluation. More...
 
void checkDefined () const
 Instruct valgrind to check the definedness of all attributes of this class. More...
 

Detailed Description

template<class TypeTag>
class Ewoms::DiscreteFracturePrimaryVariables< TypeTag >

Represents the primary variables used by the discrete fracture multi-phase model.

Constructor & Destructor Documentation

template<class TypeTag >
Ewoms::DiscreteFracturePrimaryVariables< TypeTag >::DiscreteFracturePrimaryVariables ( )
inline

Default constructor.

template<class TypeTag >
Ewoms::DiscreteFracturePrimaryVariables< TypeTag >::DiscreteFracturePrimaryVariables ( Scalar  value)
inline

Constructor with assignment from scalar.

Parameters
valueThe scalar value to which all entries of the vector will be set.
template<class TypeTag >
Ewoms::DiscreteFracturePrimaryVariables< TypeTag >::DiscreteFracturePrimaryVariables ( const DiscreteFracturePrimaryVariables< TypeTag > &  value)
inline

Copy constructor.

Parameters
valueThe primary variables that will be duplicated.

Member Function Documentation

template<class TypeTag >
template<class FluidState >
void Ewoms::ImmisciblePrimaryVariables< TypeTag >::assignMassConservative ( const FluidState &  fluidState,
const MaterialLawParams &  matParams,
bool  isInEquilibrium = false 
)
inlineinherited

Set the primary variables from an arbitrary fluid state in a mass conservative way.

If an energy equation is included, the fluid temperatures are the same as the one given in the fluid state, not the enthalpy.

Parameters
fluidStateThe fluid state which should be represented by the primary variables. The temperatures, pressures, compositions and densities of all phases must be defined.
matParamsThe capillary pressure law parameters
isInEquilibriumIf true, the fluid state expresses thermodynamic equilibrium assuming the relations expressed by the fluid system. This implies that in addition to the quantities mentioned above, the fugacities are also defined.

References Ewoms::ImmisciblePrimaryVariables< TypeTag >::assignNaive().

template<class TypeTag >
template<class FluidState >
void Ewoms::ImmisciblePrimaryVariables< TypeTag >::assignNaive ( const FluidState &  fluidState)
inlineinherited

Directly retrieve the primary variables from an arbitrary fluid state.

This method retrieves all primary variables from an abitrary fluid state without careing whether the state which is represented by the resulting primary variables features the equivalent mass as the given fluid state. This method is massively cheaper and simpler than assignMassConservative() but it should be used with care!

Parameters
fluidStateThe fluid state which should be represented by the primary variables. The temperatures, pressures, compositions and densities of all phases must be defined.

Referenced by Ewoms::ImmisciblePrimaryVariables< TypeTag >::assignMassConservative(), and Ewoms::DiscreteFracturePrimaryVariables< TypeTag >::assignNaiveFromFracture().

template<class TypeTag >
template<class FluidState >
void Ewoms::DiscreteFracturePrimaryVariables< TypeTag >::assignNaiveFromFracture ( const FluidState &  fractureFluidState,
const MaterialLawParams &  matParams 
)
inline

Directly retrieve the primary variables from an arbitrary fluid state of the fractures.

Parameters
fractureFluidStateThe fluid state of the fractures which should be represented by the primary variables. The temperatures, pressures and compositions of all phases must be defined.
matParamsThe parameters for the capillary-pressure law which apply for the fracture.

References Ewoms::ImmisciblePrimaryVariables< TypeTag >::assignNaive().

template<class TypeTag >
void Ewoms::FvBasePrimaryVariables< TypeTag >::checkDefined ( ) const
inlineinherited

Instruct valgrind to check the definedness of all attributes of this class.

template<class TypeTag >
Evaluation Ewoms::FvBasePrimaryVariables< TypeTag >::makeEvaluation ( int  varIdx,
int  timeIdx 
) const
inlineinherited

Return a primary variable intensive evaluation.

i.e., the result represents the function f = x_i if the time index is zero, else it represents the a constant f = x_i. (the difference is that in the first case, the derivative w.r.t. x_i is 1, while it is 0 in the second case.


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