PengRobinson.hpp
Go to the documentation of this file.
497 Scalar f0 = (tau*(-5.97616 + std::sqrt(tau)*(1.29874 - tau*0.60394)) - 1.06841*std::pow(tau, 5))/Tr;
498 Scalar f1 = (tau*(-5.03365 + std::sqrt(tau)*(1.11505 - tau*5.41217)) - 7.46628*std::pow(tau, 5))/Tr;
499 Scalar f2 = (tau*(-0.64771 + std::sqrt(tau)*(2.41539 - tau*4.26979)) + 3.25259*std::pow(tau, 5))/Tr;
This is a fluid state which allows to set the fluid temperatures and takes all other quantities from ... void SetUndefined(const T &value OPM_UNUSED) Make the memory on which an object resides undefined in valgrind runs. Definition: Valgrind.hpp:138 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 static bool findExtrema_(Scalar &Vmin, Scalar &Vmax, Scalar &, Scalar &, Scalar a, Scalar b, Scalar T) Definition: PengRobinson.hpp:394 Definition: Air_Mesitylene.hpp:31 static void handleCriticalFluid_(Scalar &Vm, const FluidState &, const Params ¶ms, unsigned phaseIdx, bool isGasPhase) Definition: PengRobinson.hpp:276 Implements a scalar function that depends on two variables and which is sampled on an uniform X-Y gri... Evaluation< Scalar, VarSetTag, numVars > max(const Evaluation< Scalar, VarSetTag, numVars > &x1, const Evaluation< Scalar, VarSetTag, numVars > &x2) Definition: Math.hpp:114 Evaluation< Scalar, VarSetTag, numVars > sqrt(const Evaluation< Scalar, VarSetTag, numVars > &x) Definition: Math.hpp:278 static Scalar computeMolarVolume(const FluidState &fs, Params ¶ms, unsigned phaseIdx, bool isGasPhase) Computes molar volumes where the Peng-Robinson EOS is true. Definition: PengRobinson.hpp:142 static void findCriticalPoint_(Scalar &Tcrit, Scalar &pcrit, Scalar &Vcrit, Scalar a, Scalar b) Definition: PengRobinson.hpp:298 static Scalar ambroseWalton_(const Params &, Scalar T) The Ambrose-Walton method to estimate the vapor pressure. Definition: PengRobinson.hpp:489 int invertCubicPolynomial(SolContainer *sol, Scalar a, Scalar b, Scalar c, Scalar d) Invert a cubic polynomial analytically. Definition: PolynomialUtils.hpp:151 Evaluation< Scalar, VarSetTag, numVars > exp(const Evaluation< Scalar, VarSetTag, numVars > &x) Definition: Math.hpp:295 Evaluation< Scalar, VarSetTag, numVars > abs(const Evaluation< Scalar, VarSetTag, numVars > &) Definition: Math.hpp:41 Provides free functions to invert polynomials of degree 1, 2 and 3. Evaluation< Scalar, VarSetTag, numVars > min(const Evaluation< Scalar, VarSetTag, numVars > &x1, const Evaluation< Scalar, VarSetTag, numVars > &x2) Definition: Math.hpp:61 static Scalar fugacityDifference_(const Params ¶ms, Scalar T, Scalar p, Scalar VmLiquid, Scalar VmGas) Returns the difference between the liquid and the gas phase fugacities in [bar]. Definition: PengRobinson.hpp:515 Relations valid for an ideal gas. static Scalar criticalTemperature() Returns the critical temperature in of the component. Definition: Component.hpp:98 static Scalar computeFugacityCoeffient(const Params ¶ms) Returns the fugacity coefficient for a given pressure and molar volume. Definition: PengRobinson.hpp:239 Implements the Peng-Robinson equation of state for liquids and gases. Definition: PengRobinson.hpp:54 static void init(Scalar, Scalar, unsigned, Scalar, Scalar, unsigned) Definition: PengRobinson.hpp:63 Evaluation< Scalar, VarSetTag, numVars > pow(const Evaluation< Scalar, VarSetTag, numVars > &base, Scalar exp) Definition: Math.hpp:312 static Scalar computeFugacity(const Params ¶ms) Returns the fugacity coefficient for a given pressure and molar volume. Definition: PengRobinson.hpp:271 Provides the OPM_UNUSED macro. static Scalar computeVaporPressure(const Params ¶ms, Scalar T) Predicts the vapor pressure for the temperature given in setTP(). Definition: PengRobinson.hpp:100 static Scalar criticalPressure() Returns the critical pressure in of the component. Definition: Component.hpp:104 A central place for various physical constants occuring in some equations. Definition: Constants.hpp:39 |