Base class from which all pure substances are derived.
More...
#include <Sub.h>
Base class from which all pure substances are derived.
Definition at line 36 of file Sub.h.
|
| 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.
|
| |
|
| virtual double | MolWt ()=0 |
| | Molecular weight [kg/kmol].
|
| |
| virtual double | Tcrit ()=0 |
| | Critical temperature [K].
|
| |
| virtual double | Pcrit ()=0 |
| | Critical pressure [Pa].
|
| |
| virtual double | Vcrit ()=0 |
| | Critical specific volume [m^3/kg].
|
| |
| virtual double | Tmin ()=0 |
| | Minimum temperature for which the equation of state is valid.
|
| |
| virtual double | Tmax ()=0 |
| | Maximum temperature for which the equation of state is valid.
|
| |
| 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.
|
| |
|
| 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.
|
| |
|
| void | set_Rho (double r0) |
| |
| void | set_T (double t0) |
| |
| void | set_v (double v0) |
| |
| void | BracketSlope (double p) |
| |
| double | vprop (propertyFlag::type ijob) |
| |
| void | set_xy (propertyFlag::type if1, propertyFlag::type if2, double X, double Y, double atx, double aty, double rtx, double rty) |
| |
◆ setStdState()
| void setStdState |
( |
double |
h0 = 0.0, |
|
|
double |
s0 = 0.0, |
|
|
double |
t0 = 298.15, |
|
|
double |
p0 = 1.01325e5 |
|
) |
| |
◆ MolWt()
◆ Tcrit()
◆ Pcrit()
◆ Vcrit()
◆ Tmin()
◆ Tmax()
◆ name()
Name of the substance.
Definition at line 68 of file Sub.h.
◆ formula()
Chemical formula for the substance.
Definition at line 73 of file Sub.h.
◆ P()
Pressure [Pa].
If two phases are present, return the saturation pressure; otherwise return the pressure computed directly from the underlying eos.
Definition at line 35 of file Sub.cpp.
◆ Temp()
Temperature [K].
Definition at line 88 of file Sub.h.
◆ v()
Specific volume [m^3/kg].
Definition at line 93 of file Sub.h.
◆ u()
Internal energy [J/kg].
Definition at line 98 of file Sub.h.
◆ h()
Enthalpy [J/kg].
Definition at line 103 of file Sub.h.
◆ s()
Entropy [J/kg/K].
Definition at line 108 of file Sub.h.
◆ f()
Helmholtz function [J/kg].
Definition at line 113 of file Sub.h.
◆ g()
Gibbs function [J/kg].
Definition at line 118 of file Sub.h.
◆ cv()
Specific heat at constant volume [J/kg/K].
Definition at line 42 of file Sub.cpp.
◆ cp()
Specific heat at constant pressure [J/kg/K].
Definition at line 80 of file Sub.cpp.
◆ thermalExpansionCoeff()
| double thermalExpansionCoeff |
( |
| ) |
|
|
virtual |
◆ isothermalCompressibility()
| double isothermalCompressibility |
( |
| ) |
|
|
virtual |
◆ Ps()
◆ dPsdT()
The derivative of the saturation pressure with respect to temperature.
Definition at line 233 of file Sub.cpp.
◆ Tsat()
Saturation temperature at pressure p.
Definition at line 280 of file Sub.cpp.
◆ x()
Vapor mass fraction.
If T >= Tcrit, 0 is returned for v < Vcrit, and 1 is returned if v > Vcrit.
Definition at line 262 of file Sub.cpp.
◆ TwoPhase()
| int TwoPhase |
( |
bool |
strict = false | ) |
|
Returns 1 if the current state is a liquid/vapor mixture, 0 otherwise.
By default, saturated vapor and saturated liquid are included; setting the flag strict to true will exclude the boundaries.
Definition at line 250 of file Sub.cpp.
◆ Pp()
◆ hp()
Enthalpy of a single-phase state.
Definition at line 157 of file Sub.h.
◆ gp()
Gibbs function of a single-phase state.
Definition at line 162 of file Sub.h.
◆ prop()
| double prop |
( |
propertyFlag::type |
ijob | ) |
|
◆ set_TPp()
| void set_TPp |
( |
double |
t0, |
|
|
double |
p0 |
|
) |
| |
set T and P
Definition at line 768 of file Sub.cpp.
◆ Set()
| 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.
Definition at line 333 of file Sub.cpp.
◆ ldens()
◆ Psat()
◆ up()
◆ sp()
◆ ideal()
◆ vp()
◆ Lever()
| int Lever |
( |
int |
itp, |
|
|
double |
sat, |
|
|
double |
val, |
|
|
propertyFlag::type |
ifunc |
|
) |
| |
|
protected |
Uses the lever rule to set state in the dome.
Returns 1 if in dome, 0 if not, in which case state not set.
Definition at line 577 of file Sub.cpp.
◆ update_sat()
Update saturated liquid and vapor densities and saturation pressure.
Definition at line 495 of file Sub.cpp.
◆ set_Rho()
| void set_Rho |
( |
double |
r0 | ) |
|
|
private |
◆ set_T()
◆ set_v()
◆ BracketSlope()
| void BracketSlope |
( |
double |
p | ) |
|
|
private |
◆ vprop()
| double vprop |
( |
propertyFlag::type |
ijob | ) |
|
|
private |
◆ set_xy()
| void set_xy |
( |
propertyFlag::type |
if1, |
|
|
propertyFlag::type |
if2, |
|
|
double |
X, |
|
|
double |
Y, |
|
|
double |
atx, |
|
|
double |
aty, |
|
|
double |
rtx, |
|
|
double |
rty |
|
) |
| |
|
private |
◆ Rho
◆ Tslast
◆ Rhf
◆ Rhv
◆ Pst
◆ m_energy_offset
| double m_energy_offset = 0.0 |
|
protected |
◆ m_entropy_offset
| double m_entropy_offset = 0.0 |
|
protected |
◆ m_name
◆ m_formula
◆ kbr
◆ Vmin
◆ Vmax
◆ Pmin
◆ Pmax
◆ dvbf
◆ dv
◆ v_here
◆ P_here
The documentation for this class was generated from the following files: