Pure species representation of heptane. More...
#include <Heptane.h>
Pure species representation of heptane.
Values and functions are from Reynolds [38].
Public Member Functions | |
| double | MolWt () override | 
| Molecular weight [kg/kmol].   | |
| double | Tcrit () override | 
| Critical temperature [K].   | |
| double | Pcrit () override | 
| Critical pressure [Pa].   | |
| double | Vcrit () override | 
| Critical specific volume [m^3/kg].   | |
| double | Tmin () override | 
| Minimum temperature for which the equation of state is valid.   | |
| double | Tmax () override | 
| Maximum temperature for which the equation of state is valid.   | |
| double | Pp () override | 
| Pressure. Equation P-2 in Reynolds.   | |
| double | up () override | 
| Internal energy.   | |
| double | sp () override | 
| Entropy. See Reynolds eqn (16) section 2.   | |
| double | Psat () override | 
| Pressure at Saturation. Equation S-2 in Reynolds.   | |
  Public Member Functions inherited from Substance | |
| void | setStdState (double h0=0.0, double s0=0.0, double t0=298.15, double p0=1.01325e5) | 
| virtual double | Pp ()=0 | 
| double | hp () | 
| Enthalpy of a single-phase state.   | |
| double | gp () | 
| Gibbs function of a single-phase state.   | |
| double | prop (propertyFlag::type ijob) | 
| void | set_TPp (double t0, double p0) | 
| set T and P   | |
| void | Set (PropertyPair::type XY, double x0, double y0) | 
| Function to set or change the state for a property pair XY where x0 is the value of first property and y0 is the value of the second property.   | |
| const char * | name () | 
| Name of the substance.   | |
| const char * | formula () | 
| Chemical formula for the substance.   | |
| double | P () | 
| Pressure [Pa].   | |
| double | Temp () | 
| Temperature [K].   | |
| double | v () | 
| Specific volume [m^3/kg].   | |
| double | u () | 
| Internal energy [J/kg].   | |
| double | h () | 
| Enthalpy [J/kg].   | |
| double | s () | 
| Entropy [J/kg/K].   | |
| double | f () | 
| Helmholtz function [J/kg].   | |
| double | g () | 
| Gibbs function [J/kg].   | |
| virtual double | cv () | 
| Specific heat at constant volume [J/kg/K].   | |
| virtual double | cp () | 
| Specific heat at constant pressure [J/kg/K].   | |
| virtual double | thermalExpansionCoeff () | 
| virtual double | isothermalCompressibility () | 
| double | Ps () | 
| virtual double | dPsdT () | 
| The derivative of the saturation pressure with respect to temperature.   | |
| double | Tsat (double p) | 
| Saturation temperature at pressure p.   | |
| double | x () | 
| Vapor mass fraction.   | |
| int | TwoPhase (bool strict=false) | 
| Returns 1 if the current state is a liquid/vapor mixture, 0 otherwise.   | |
Private Member Functions | |
| double | ldens () override | 
| liquid density. Equation D2 in Reynolds.   | |
| double | C (int jm, double, double, double, double) | 
| C returns a multiplier in each term of the sum in P-2, used in conjunction with C in the function Pp.   | |
| double | Cprime (int i, double, double, double) | 
| derivative of C(i)   | |
| double | I (int i, double, double) | 
| I = integral from o-rho { 1/(rho^2) * H(i, rho) d rho } ( see section 2 of Reynolds TPSI )   | |
| double | H (int i, double egrho) | 
| H returns a multiplier in each term of the sum in P-2.   | |
Additional Inherited Members | |
  Protected Member Functions inherited from Substance | |
| virtual double | ldens ()=0 | 
| virtual double | Psat ()=0 | 
| Saturation pressure, Pa.   | |
| virtual double | up ()=0 | 
| Internal energy of a single-phase state.   | |
| virtual double | sp ()=0 | 
| Entropy of a single-phase state.   | |
| virtual int | ideal () | 
| double | vp () | 
| int | Lever (int itp, double sat, double val, propertyFlag::type ifunc) | 
| Uses the lever rule to set state in the dome.   | |
| void | update_sat () | 
| Update saturated liquid and vapor densities and saturation pressure.   | |
  Protected Attributes inherited from Substance | |
| double | T = Undef | 
| double | Rho = Undef | 
| double | Tslast = Undef | 
| double | Rhf = Undef | 
| double | Rhv = Undef | 
| double | Pst = Undef | 
| double | m_energy_offset = 0.0 | 
| double | m_entropy_offset = 0.0 | 
| std::string | m_name | 
| std::string | m_formula | 
      
  | 
  overridevirtual | 
      
  | 
  overridevirtual | 
      
  | 
  overridevirtual | 
      
  | 
  overridevirtual | 
Critical specific volume [m^3/kg].
Implements Substance.
Definition at line 246 of file Heptane.cpp.
      
  | 
  overridevirtual | 
Minimum temperature for which the equation of state is valid.
Implements Substance.
Definition at line 250 of file Heptane.cpp.
      
  | 
  overridevirtual | 
Maximum temperature for which the equation of state is valid.
Implements Substance.
Definition at line 254 of file Heptane.cpp.
      
  | 
  overridevirtual | 
Pressure. Equation P-2 in Reynolds.
Implements Substance.
Definition at line 191 of file Heptane.cpp.
      
  | 
  overridevirtual | 
Internal energy.
See Reynolds eqn (15) section 2 u = (the integral from T to To of co(T)dT) + sum from i to N ([C(i) - T*Cprime(i)] + uo
Implements Substance.
Definition at line 150 of file Heptane.cpp.
      
  | 
  overridevirtual | 
Entropy. See Reynolds eqn (16) section 2.
Implements Substance.
Definition at line 171 of file Heptane.cpp.
      
  | 
  overridevirtual | 
Pressure at Saturation. Equation S-2 in Reynolds.
Implements Substance.
Definition at line 206 of file Heptane.cpp.
      
  | 
  overrideprivatevirtual | 
liquid density. Equation D2 in Reynolds.
Implements Substance.
Definition at line 221 of file Heptane.cpp.
      
  | 
  private | 
C returns a multiplier in each term of the sum in P-2, used in conjunction with C in the function Pp.
Definition at line 79 of file Heptane.cpp.
      
  | 
  private | 
derivative of C(i)
Definition at line 101 of file Heptane.cpp.
      
  | 
  private | 
I = integral from o-rho { 1/(rho^2) * H(i, rho) d rho } ( see section 2 of Reynolds TPSI )
Definition at line 121 of file Heptane.cpp.
      
  | 
  private | 
H returns a multiplier in each term of the sum in P-2.
this is used in conjunction with C in the function Pp this represents the product rho^n
Definition at line 137 of file Heptane.cpp.