My Project
|
Represents the primary variables used by the compositional flow model based on flash calculations. More...
#include <flashprimaryvariables.hh>
Public Member Functions | |
FlashPrimaryVariables (const FlashPrimaryVariables &value)=default | |
FlashPrimaryVariables & | operator= (const FlashPrimaryVariables &value)=default |
template<class FluidState > | |
void | assignMassConservative (const FluidState &fluidState, const MaterialLawParams &, bool=false) |
< Import base class assignment operators. | |
template<class FluidState > | |
void | assignNaive (const FluidState &fluidState) |
Directly retrieve the primary variables from an arbitrary fluid state. | |
void | print (std::ostream &os=std::cout) const |
Prints the names of the primary variables and their values. | |
FlashPrimaryVariables (const FlashPrimaryVariables &value)=default | |
FlashPrimaryVariables & | operator= (const FlashPrimaryVariables &value)=default |
template<class FluidState > | |
void | assignMassConservative (const FluidState &fluidState, const MaterialLawParams &, bool=false) |
< Import base class assignment operators. | |
template<class FluidState > | |
void | assignNaive (const FluidState &fluidState) |
Directly retrieve the primary variables from an arbitrary fluid state. | |
void | print (std::ostream &os=std::cout) const |
Prints the names of the primary variables and their values. | |
FvBasePrimaryVariables & | operator= (const FvBasePrimaryVariables &value)=default |
Assignment from another primary variables object. | |
FvBasePrimaryVariables & | operator= (const FvBasePrimaryVariables &value)=default |
Assignment from another primary variables object. | |
![]() | |
FvBasePrimaryVariables (const FvBasePrimaryVariables &value)=default | |
Assignment from another primary variables object. | |
FvBasePrimaryVariables & | operator= (const FvBasePrimaryVariables &value)=default |
Assignment from another primary variables object. | |
Evaluation | makeEvaluation (unsigned varIdx, unsigned timeIdx, LinearizationType linearizationType=LinearizationType()) const |
Return a primary variable intensive evaluation. | |
template<class FluidState > | |
void | assignNaive (const FluidState &) |
Assign the primary variables "somehow" from a fluid state. | |
void | checkDefined () const |
Instruct valgrind to check the definedness of all attributes of this class. | |
Additional Inherited Members | |
![]() | |
static void | init () |
< Import base class assignment operators. | |
static void | registerParameters () |
Represents the primary variables used by the compositional flow model based on flash calculations.
This class is basically a Dune::FieldVector which can retrieve its contents from an aribitatry fluid state.
|
default |
|
default |
|
inline |
< Import base class assignment operators.
< Import base class assignment operators.
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.
fluidState | The fluid state which should be represented by the primary variables. The temperatures, pressures, compositions and densities of all phases must be defined. |
matParams | The capillary pressure law parameters |
isInEquilibrium | If 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. |
|
inline |
< Import base class assignment operators.
< Import base class assignment operators.
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.
fluidState | The fluid state which should be represented by the primary variables. The temperatures, pressures, compositions and densities of all phases must be defined. |
matParams | The capillary pressure law parameters |
isInEquilibrium | If 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. |
|
inline |
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!
fluidState | The fluid state which should be represented by the primary variables. The temperatures, pressures, compositions and densities of all phases must be defined. |
|
inline |
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!
fluidState | The fluid state which should be represented by the primary variables. The temperatures, pressures, compositions and densities of all phases must be defined. |
|
inline |
Prints the names of the primary variables and their values.
os | The std::ostream which should be used for the output. |
|
inline |
Prints the names of the primary variables and their values.
os | The std::ostream which should be used for the output. |