FluidStateFugacityModules.hpp
Go to the documentation of this file.
64 { return asImp_().pressure(phaseIdx)*fugacityCoefficient_[phaseIdx][compIdx]*asImp_().moleFraction(phaseIdx, compIdx); }
117 "The number of phases must be the same as the number of (pseudo-) components if you assume immiscibility");
127 { return (phaseIdx == compIdx)?fugacityCoefficient_[phaseIdx]:std::numeric_limits<Scalar>::infinity(); }
133 { return asImp_().pressure(phaseIdx)*fugacityCoefficient(phaseIdx, compIdx)*asImp_().moleFraction(phaseIdx, compIdx); }
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 assign(const FluidState &fs) Retrieve all parameters from an arbitrary fluid state. Definition: FluidStateFugacityModules.hpp:77 void checkDefined() const Make sure that all attributes are defined. Definition: FluidStateFugacityModules.hpp:94 void setFugacityCoefficient(unsigned phaseIdx, unsigned compIdx, const Scalar &value) Set the fugacity of a component in a phase []. Definition: FluidStateFugacityModules.hpp:69 Scalar fugacity(unsigned phaseIdx, unsigned compIdx) const The fugacity of a component in a phase [Pa]. Definition: FluidStateFugacityModules.hpp:63 FluidStateExplicitFugacityModule() Definition: FluidStateFugacityModules.hpp:49 Scalar fugacityCoefficient_[numPhases][numComponents] Definition: FluidStateFugacityModules.hpp:103 const Implementation & asImp_() const Definition: FluidStateFugacityModules.hpp:100 const Scalar & fugacityCoefficient(unsigned phaseIdx, unsigned compIdx) const The fugacity coefficient of a component in a phase []. Definition: FluidStateFugacityModules.hpp:57 Module for the modular fluid state which stores the phase fugacity coefficients explicitly assuming i... Definition: FluidStateFugacityModules.hpp:115 Scalar fugacityCoefficient_[numPhases] Definition: FluidStateFugacityModules.hpp:170 FluidStateImmiscibleFugacityModule() Definition: FluidStateFugacityModules.hpp:120 const Implementation & asImp_() const Definition: FluidStateFugacityModules.hpp:167 void assign(const FluidState &fs) Retrieve all parameters from an arbitrary fluid state. Definition: FluidStateFugacityModules.hpp:146 Scalar fugacityCoefficient(unsigned phaseIdx, unsigned compIdx) const The fugacity coefficient of a component in a phase []. Definition: FluidStateFugacityModules.hpp:126 void setFugacityCoefficient(unsigned phaseIdx, const Scalar &value) Set the fugacity of a component in a phase []. Definition: FluidStateFugacityModules.hpp:138 void checkDefined() const Make sure that all attributes are defined. Definition: FluidStateFugacityModules.hpp:161 Scalar fugacity(unsigned phaseIdx, unsigned compIdx) const The fugacity of a component in a phase [Pa]. Definition: FluidStateFugacityModules.hpp:132 Module for the modular fluid state which does not store the fugacities but throws std::logic_error in... Definition: FluidStateFugacityModules.hpp:179 FluidStateNullFugacityModule() Definition: FluidStateFugacityModules.hpp:181 const Scalar & fugacity(unsigned, unsigned) const The fugacity of a component in a phase [Pa]. Definition: FluidStateFugacityModules.hpp:193 const Scalar & fugacityCoefficient(unsigned, unsigned) const The fugacity coefficient of a component in a phase []. Definition: FluidStateFugacityModules.hpp:187 void checkDefined() const Make sure that all attributes are defined. Definition: FluidStateFugacityModules.hpp:204 bool CheckDefined(const T &value) Make valgrind complain if any of the memory occupied by an object is undefined. Definition: Valgrind.hpp:74 void SetUndefined(const T &value) Make the memory on which an object resides undefined in valgrind runs. Definition: Valgrind.hpp:171 Definition: Air_Mesitylene.hpp:34 |