Opm::PengRobinsonParamsMixture< Scalar, FluidSystem, phaseIdx, useSpe5Relations > Class Template Reference The mixing rule for the oil and the gas phases of the SPE5 problem. More...
Inheritance diagram for Opm::PengRobinsonParamsMixture< Scalar, FluidSystem, phaseIdx, useSpe5Relations >:
Detailed Descriptiontemplate<class Scalar, class FluidSystem, unsigned phaseIdx, bool useSpe5Relations = false> class Opm::PengRobinsonParamsMixture< Scalar, FluidSystem, phaseIdx, useSpe5Relations > The mixing rule for the oil and the gas phases of the SPE5 problem. This problem comprises , , , , , and as components. See: R. Reid, et al.: The Properties of Gases and Liquids, 4th edition, McGraw-Hill, 1987, pp. 43-44 and J.E. Killough, et al.: Fifth Comparative Solution Project: Evaluation of Miscible Flood Simulators, Ninth SPE Symposium on Reservoir Simulation, 1987 Member Function Documentation◆ a()
template<class Scalar >
Returns the attractive parameter 'a' of the Peng-Robinson fluid. References Opm::PengRobinsonParams< Scalar >::a_. Referenced by Opm::PTFlashParameterCache< Scalar, FluidSystem >::a(), Opm::Spe5ParameterCache< Scalar, FluidSystem >::a(), Opm::PTFlashParameterCache< Scalar, FluidSystem >::aPure(), Opm::Spe5ParameterCache< Scalar, FluidSystem >::aPure(), Opm::PengRobinsonParamsMixture< Scalar, FluidSystem, phaseIdx, useSpe5Relations >::checkDefined(), Opm::Spe5FluidSystem< Scalar >::init(), Opm::PengRobinsonParamsMixture< Scalar, FluidSystem, phaseIdx, useSpe5Relations >::updateMix(), and Opm::PengRobinsonParamsMixture< Scalar, FluidSystem, phaseIdx, useSpe5Relations >::updatePure(). ◆ b()
template<class Scalar >
Returns the repulsive parameter 'b' of the Peng-Robinson fluid. References Opm::PengRobinsonParams< Scalar >::b_. Referenced by Opm::PTFlashParameterCache< Scalar, FluidSystem >::b(), Opm::Spe5ParameterCache< Scalar, FluidSystem >::b(), Opm::PTFlashParameterCache< Scalar, FluidSystem >::bPure(), Opm::Spe5ParameterCache< Scalar, FluidSystem >::bPure(), Opm::PengRobinsonParamsMixture< Scalar, FluidSystem, phaseIdx, useSpe5Relations >::checkDefined(), Opm::Spe5FluidSystem< Scalar >::init(), Opm::PengRobinsonParamsMixture< Scalar, FluidSystem, phaseIdx, useSpe5Relations >::updateMix(), and Opm::PengRobinsonParamsMixture< Scalar, FluidSystem, phaseIdx, useSpe5Relations >::updatePure(). ◆ checkDefined()
template<class Scalar , class FluidSystem , unsigned phaseIdx, bool useSpe5Relations = false>
If run under valgrind, this method produces an warning if the parameters where not determined correctly. References Opm::PengRobinsonParams< Scalar >::a(), Opm::PengRobinsonParams< Scalar >::b(), Opm::PengRobinsonParamsMixture< Scalar, FluidSystem, phaseIdx, useSpe5Relations >::checkDefined(), Opm::Valgrind::CheckDefined(), and Opm::PengRobinsonParamsMixture< Scalar, FluidSystem, phaseIdx, useSpe5Relations >::pureParams_. Referenced by Opm::PengRobinsonParamsMixture< Scalar, FluidSystem, phaseIdx, useSpe5Relations >::checkDefined(). ◆ getaCache()
template<class Scalar , class FluidSystem , unsigned phaseIdx, bool useSpe5Relations = false>
◆ operator[]()
template<class Scalar , class FluidSystem , unsigned phaseIdx, bool useSpe5Relations = false>
Returns the Peng-Robinson parameters for a pure component. References Opm::PengRobinsonParamsMixture< Scalar, FluidSystem, phaseIdx, useSpe5Relations >::pureParams_. ◆ pureParams()
template<class Scalar , class FluidSystem , unsigned phaseIdx, bool useSpe5Relations = false>
Return the Peng-Robinson parameters of a pure substance,. References Opm::PengRobinsonParamsMixture< Scalar, FluidSystem, phaseIdx, useSpe5Relations >::pureParams_. Referenced by Opm::PTFlashParameterCache< Scalar, FluidSystem >::aPure(), Opm::Spe5ParameterCache< Scalar, FluidSystem >::aPure(), Opm::PTFlashParameterCache< Scalar, FluidSystem >::bPure(), Opm::Spe5ParameterCache< Scalar, FluidSystem >::bPure(), and Opm::Spe5FluidSystem< Scalar >::init(). ◆ setA()
template<class Scalar >
Set the attractive parameter 'a' of the Peng-Robinson fluid. References Opm::PengRobinsonParams< Scalar >::a_. Referenced by Opm::PengRobinsonParamsMixture< Scalar, FluidSystem, phaseIdx, useSpe5Relations >::updateMix(), and Opm::PengRobinsonParamsMixture< Scalar, FluidSystem, phaseIdx, useSpe5Relations >::updatePure(). ◆ setB()
template<class Scalar >
Set the repulsive parameter 'b' of the Peng-Robinson fluid. References Opm::PengRobinsonParams< Scalar >::b_. Referenced by Opm::PengRobinsonParamsMixture< Scalar, FluidSystem, phaseIdx, useSpe5Relations >::updateMix(), and Opm::PengRobinsonParamsMixture< Scalar, FluidSystem, phaseIdx, useSpe5Relations >::updatePure(). ◆ updateMix()
template<class Scalar , class FluidSystem , unsigned phaseIdx, bool useSpe5Relations = false>
template<class FluidState >
Calculates the "a" and "b" Peng-Robinson parameters for the mixture. The updatePure() method needs to be called before calling this method! References Opm::PengRobinsonParams< Scalar >::a(), Opm::PengRobinsonParams< Scalar >::b(), Opm::Valgrind::CheckDefined(), Opm::isfinite(), Opm::max(), Opm::min(), Opm::PengRobinsonParamsMixture< Scalar, FluidSystem, phaseIdx, useSpe5Relations >::pureParams_, Opm::scalarValue(), Opm::PengRobinsonParams< Scalar >::setA(), and Opm::PengRobinsonParams< Scalar >::setB(). Referenced by Opm::PTFlashParameterCache< Scalar, FluidSystem >::updateMix_(), Opm::Spe5ParameterCache< Scalar, FluidSystem >::updateMix_(), and Opm::PengRobinsonParamsMixture< Scalar, FluidSystem, phaseIdx, useSpe5Relations >::updateSingleMoleFraction(). ◆ updatePure() [1/2]
template<class Scalar , class FluidSystem , unsigned phaseIdx, bool useSpe5Relations = false>
template<class FluidState >
Update Peng-Robinson parameters for the pure components. References Opm::PengRobinsonParamsMixture< Scalar, FluidSystem, phaseIdx, useSpe5Relations >::updatePure(). Referenced by Opm::Spe5FluidSystem< Scalar >::init(), Opm::PengRobinsonParamsMixture< Scalar, FluidSystem, phaseIdx, useSpe5Relations >::updatePure(), Opm::PTFlashParameterCache< Scalar, FluidSystem >::updatePure_(), and Opm::Spe5ParameterCache< Scalar, FluidSystem >::updatePure_(). ◆ updatePure() [2/2]
template<class Scalar , class FluidSystem , unsigned phaseIdx, bool useSpe5Relations = false>
Peng-Robinson parameters for the pure components. This method is given by the SPE5 paper. References Opm::PengRobinsonParams< Scalar >::a(), Opm::PengRobinsonParams< Scalar >::b(), Opm::Valgrind::CheckDefined(), Opm::isfinite(), Opm::PengRobinsonParamsMixture< Scalar, FluidSystem, phaseIdx, useSpe5Relations >::pureParams_, Opm::scalarValue(), Opm::PengRobinsonParams< Scalar >::setA(), Opm::PengRobinsonParams< Scalar >::setB(), and Opm::sqrt(). ◆ updateSingleMoleFraction()
template<class Scalar , class FluidSystem , unsigned phaseIdx, bool useSpe5Relations = false>
template<class FluidState >
Calculates the "a" and "b" Peng-Robinson parameters for the mixture provided that only a single mole fraction was changed. The updatePure() method needs to be called before calling this method! References Opm::PengRobinsonParamsMixture< Scalar, FluidSystem, phaseIdx, useSpe5Relations >::updateMix(). Referenced by Opm::PTFlashParameterCache< Scalar, FluidSystem >::updateSingleMoleFraction(), and Opm::Spe5ParameterCache< Scalar, FluidSystem >::updateSingleMoleFraction(). Member Data Documentation◆ a_
template<class Scalar >
◆ b_
template<class Scalar >
◆ pureParams_
template<class Scalar , class FluidSystem , unsigned phaseIdx, bool useSpe5Relations = false>
Referenced by Opm::PengRobinsonParamsMixture< Scalar, FluidSystem, phaseIdx, useSpe5Relations >::checkDefined(), Opm::PengRobinsonParamsMixture< Scalar, FluidSystem, phaseIdx, useSpe5Relations >::operator[](), Opm::PengRobinsonParamsMixture< Scalar, FluidSystem, phaseIdx, useSpe5Relations >::pureParams(), Opm::PengRobinsonParamsMixture< Scalar, FluidSystem, phaseIdx, useSpe5Relations >::updateMix(), and Opm::PengRobinsonParamsMixture< Scalar, FluidSystem, phaseIdx, useSpe5Relations >::updatePure(). The documentation for this class was generated from the following file: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||