FluidStateFugacityModules.hpp
Go to the documentation of this file.
65 { return asImp_().pressure(phaseIdx)*fugacityCoefficient_[phaseIdx][compIdx]*asImp_().moleFraction(phaseIdx, compIdx); }
118 "The number of phases must be the same as the number of (pseudo-) components if you assume immiscibility");
128 { return (phaseIdx == compIdx)?fugacityCoefficient_[phaseIdx]:std::numeric_limits<Scalar>::infinity(); }
134 { return asImp_().pressure(phaseIdx)*fugacityCoefficient(phaseIdx, compIdx)*asImp_().moleFraction(phaseIdx, compIdx); }
195 { OPM_THROW(std::logic_error, "Fugacities coefficients are not provided by this fluid state"); }
void SetUndefined(const T &value OPM_UNUSED) Make the memory on which an object resides undefined in valgrind runs. Definition: Valgrind.hpp:138 const Implementation & asImp_() const Definition: FluidStateFugacityModules.hpp:101 bool CheckDefined(const T &value OPM_UNUSED) Make valgrind complain if any of the memory occupied by an object is undefined. Definition: Valgrind.hpp:74 Definition: Air_Mesitylene.hpp:31 Some templates to wrap the valgrind client request macros. Module for the modular fluid state which stores the phase fugacity coefficients explicitly. Definition: FluidStateFugacityModules.hpp:47 void checkDefined() const Make sure that all attributes are defined. Definition: FluidStateFugacityModules.hpp:205 FluidStateNullFugacityModule() Definition: FluidStateFugacityModules.hpp:182 Module for the modular fluid state which does not store the fugacities but throws std::logic_error in... Definition: FluidStateFugacityModules.hpp:179 const Scalar & fugacityCoefficient(int, int) const The fugacity coefficient of a component in a phase []. Definition: FluidStateFugacityModules.hpp:188 void assign(const FluidState &fs) Retrieve all parameters from an arbitrary fluid state. Definition: FluidStateFugacityModules.hpp:78 void setFugacityCoefficient(unsigned phaseIdx, unsigned compIdx, const Scalar &value) Set the fugacity of a component in a phase []. Definition: FluidStateFugacityModules.hpp:70 FluidStateExplicitFugacityModule() Definition: FluidStateFugacityModules.hpp:50 const Scalar & fugacity(int, int) const The fugacity of a component in a phase [Pa]. Definition: FluidStateFugacityModules.hpp:194 Scalar fugacity(unsigned phaseIdx, unsigned compIdx) const The fugacity of a component in a phase [Pa]. Definition: FluidStateFugacityModules.hpp:64 void checkDefined() const Make sure that all attributes are defined. Definition: FluidStateFugacityModules.hpp:95 Module for the modular fluid state which stores the phase fugacity coefficients explicitly assuming i... Definition: FluidStateFugacityModules.hpp:115 const Scalar & fugacityCoefficient(unsigned phaseIdx, unsigned compIdx) const The fugacity coefficient of a component in a phase []. Definition: FluidStateFugacityModules.hpp:58 Scalar fugacityCoefficient_[numPhases][numComponents] Definition: FluidStateFugacityModules.hpp:104 |