Ewoms::PvsPrimaryVariables< TypeTag > Class Template Reference Represents the primary variables used in the primary variable switching compositional model. More...
Inheritance diagram for Ewoms::PvsPrimaryVariables< TypeTag >:
Detailed Descriptiontemplate<class TypeTag>
|
|
inline |
|
inlineexplicit |
Constructor with assignment from scalar.
value | The scalar value to which all entries of the vector will be set. |
|
inline |
Default constructor.
|
inline |
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. |
References Ewoms::PvsPrimaryVariables< TypeTag >::assignNaive().
|
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. |
References Ewoms::PvsPrimaryVariables< TypeTag >::lowestPresentPhaseIdx(), and Ewoms::PvsPrimaryVariables< TypeTag >::phaseIsPresent().
Referenced by Ewoms::PvsPrimaryVariables< TypeTag >::assignMassConservative().
|
inlineinherited |
Instruct valgrind to check the definedness of all attributes of this class.
|
inline |
Returns an explcitly stored saturation for a given phase.
(or 0 if the saturation is not explicitly stored.)
phaseIdx | The index of the fluid phase of interest. |
References Ewoms::PvsPrimaryVariables< TypeTag >::lowestPresentPhaseIdx(), and Ewoms::PvsPrimaryVariables< TypeTag >::phaseIsPresent().
|
inline |
Returns the index of the phase with's its saturation is determined by the closure condition of saturation.
References Ewoms::PvsPrimaryVariables< TypeTag >::lowestPresentPhaseIdx().
|
inline |
Returns the phase with the lowest index that is present.
Referenced by Ewoms::PvsPrimaryVariables< TypeTag >::assignNaive(), Ewoms::PvsPrimaryVariables< TypeTag >::explicitSaturationValue(), Ewoms::PvsPrimaryVariables< TypeTag >::implicitSaturationIdx(), and Ewoms::PvsPrimaryVariables< TypeTag >::print().
|
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.
|
inline |
Assignment operator from an other primary variables object.
|
inline |
Assignment operator from a scalar value.
|
inlinestatic |
Returns true iff a phase is present for a given phase presence.
phaseIdx | The index of the phase which's presence is queried. |
phasePresence | The bit-map of present phases. |
Referenced by Ewoms::PvsPrimaryVariables< TypeTag >::assignNaive(), Ewoms::PvsPrimaryVariables< TypeTag >::explicitSaturationValue(), and Ewoms::PvsPrimaryVariables< TypeTag >::print().
|
inline |
Returns true iff a phase is present for the current phase presence.
phaseIdx | The index of the fluid phase of interest. |
|
inline |
Return the fluid phases which are present in a given control volume.
|
inline |
Prints the names of the primary variables and their values.
os | The std::ostream which should be used for the output. |
References Ewoms::PvsPrimaryVariables< TypeTag >::lowestPresentPhaseIdx(), and Ewoms::PvsPrimaryVariables< TypeTag >::phaseIsPresent().
|
inline |
Set which fluid phases are present in a given control volume.
value | The new phase presence. The phase with index i is present if the i-th bit of value is 1. |
Referenced by Ewoms::PvsPrimaryVariables< TypeTag >::setPhasePresent().
|
inline |
Set whether a given indivividual phase should be present or not.
phaseIdx | The index of the phase which's presence ought to be set or reset. |
yesno | If true, the presence of the phase is set, else it is reset |
References Ewoms::PvsPrimaryVariables< TypeTag >::setPhasePresence().