Opm::PvsPrimaryVariables< TypeTag > Class Template Reference Represents the primary variables used in the primary variable switching compositional model. More...
Inheritance diagram for Opm::PvsPrimaryVariables< TypeTag >:
Detailed Descriptiontemplate<class TypeTag> class Opm::PvsPrimaryVariables< TypeTag > Represents the primary variables used in the primary variable switching compositional model. This class is basically a Dune::FieldVector which can retrieve its contents from an aribitatry fluid state. Constructor & Destructor Documentation◆ PvsPrimaryVariables() [1/3]
template<class TypeTag >
◆ PvsPrimaryVariables() [2/3]
template<class TypeTag >
Constructor with assignment from scalar.
◆ PvsPrimaryVariables() [3/3]
template<class TypeTag >
Member Function Documentation◆ assignMassConservative()
template<class TypeTag >
template<class FluidState >
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.
References Opm::PvsPrimaryVariables< TypeTag >::assignNaive(). ◆ assignNaive()
template<class TypeTag >
template<class FluidState >
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!
References Opm::PvsPrimaryVariables< TypeTag >::lowestPresentPhaseIdx(), and Opm::PvsPrimaryVariables< TypeTag >::phaseIsPresent(). Referenced by Opm::PvsPrimaryVariables< TypeTag >::assignMassConservative(). ◆ checkDefined()
template<class TypeTag >
Instruct valgrind to check the definedness of all attributes of this class. ◆ explicitSaturationValue()
template<class TypeTag >
Returns an explcitly stored saturation for a given phase. (or 0 if the saturation is not explicitly stored.)
References Opm::PvsPrimaryVariables< TypeTag >::lowestPresentPhaseIdx(), and Opm::PvsPrimaryVariables< TypeTag >::phaseIsPresent(). ◆ implicitSaturationIdx()
template<class TypeTag >
Returns the index of the phase with's its saturation is determined by the closure condition of saturation. References Opm::PvsPrimaryVariables< TypeTag >::lowestPresentPhaseIdx(). ◆ init()
template<class TypeTag >
◆ lowestPresentPhaseIdx()
template<class TypeTag >
Returns the phase with the lowest index that is present. Referenced by Opm::PvsPrimaryVariables< TypeTag >::assignNaive(), Opm::PvsPrimaryVariables< TypeTag >::explicitSaturationValue(), Opm::PvsPrimaryVariables< TypeTag >::implicitSaturationIdx(), and Opm::PvsPrimaryVariables< TypeTag >::print(). ◆ makeEvaluation()
template<class TypeTag >
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. ◆ operator=() [1/2]
template<class TypeTag >
Assignment operator from an other primary variables object. References Opm::FvBasePrimaryVariables< TypeTag >::operator=(). ◆ operator=() [2/2]
template<class TypeTag >
Assignment operator from a scalar value. References Opm::FvBasePrimaryVariables< TypeTag >::operator=(). ◆ phaseIsPresent() [1/2]
template<class TypeTag >
Returns true iff a phase is present for the current phase presence.
◆ phaseIsPresent() [2/2]
template<class TypeTag >
Returns true iff a phase is present for a given phase presence.
References Opm::PvsPrimaryVariables< TypeTag >::phasePresence(). Referenced by Opm::PvsPrimaryVariables< TypeTag >::assignNaive(), Opm::PvsPrimaryVariables< TypeTag >::explicitSaturationValue(), and Opm::PvsPrimaryVariables< TypeTag >::print(). ◆ phasePresence()
template<class TypeTag >
Return the fluid phases which are present in a given control volume. Referenced by Opm::PvsPrimaryVariables< TypeTag >::phaseIsPresent(). ◆ print()
template<class TypeTag >
Prints the names of the primary variables and their values.
References Opm::PvsPrimaryVariables< TypeTag >::lowestPresentPhaseIdx(), and Opm::PvsPrimaryVariables< TypeTag >::phaseIsPresent(). ◆ registerParameters()
template<class TypeTag >
◆ setPhasePresence()
template<class TypeTag >
Set which fluid phases are present in a given control volume.
Referenced by Opm::PvsPrimaryVariables< TypeTag >::setPhasePresent(). ◆ setPhasePresent()
template<class TypeTag >
Set whether a given indivividual phase should be present or not.
References Opm::PvsPrimaryVariables< TypeTag >::setPhasePresence(). The documentation for this class was generated from the following file: |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||