Class NeqSimSpanWagner
java.lang.Object
neqsim.thermo.util.spanwagner.NeqSimSpanWagner
Utility class implementing the Span–Wagner reference equation of state for carbon dioxide. All
properties are returned on a molar basis in SI units.
- Author:
- esol
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classHolder for Helmholtz energy derivatives. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final double[]private static final double[]private static final double[]private static final double[]private static final double[]private static final double[]private static final double[]private static final double[]private static final double[]private static final doubleprivate static final doubleprivate static final doubleprivate static final double[]private static final double[]private static final doubleprivate static final doubleprivate static final doubleprivate static final doubleprivate static final double[]private static final double[]private static final double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidalpha0(double delta, double tau, NeqSimSpanWagner.Derivs d) Evaluate ideal-gas contribution and derivatives.private static voidalphar(double delta, double tau, NeqSimSpanWagner.Derivs d) Evaluate residual contribution and derivatives (power + gaussian terms).private static doubleSolve for reduced density delta given temperature and pressure.static double[]getProperties(double temperature, double pressure, PhaseType type) Compute thermodynamic properties for given temperature and pressure.
-
Field Details
-
R
private static final double R- See Also:
-
TC
private static final double TC- See Also:
-
RHOC
private static final double RHOC- See Also:
-
LEAD_A1
private static final double LEAD_A1- See Also:
-
LEAD_A2
private static final double LEAD_A2- See Also:
-
LOGTAU_A
private static final double LOGTAU_A- See Also:
-
OFFSET_A1
private static final double OFFSET_A1- See Also:
-
OFFSET_A2
private static final double OFFSET_A2- See Also:
-
N0
private static final double[] N0 -
T0
private static final double[] T0 -
N
private static final double[] N -
D
private static final double[] D -
T
private static final double[] T -
L
private static final double[] L -
GN
private static final double[] GN -
GD
private static final double[] GD -
GT
private static final double[] GT -
GBETA
private static final double[] GBETA -
GGAMMA
private static final double[] GGAMMA -
GEPS
private static final double[] GEPS -
GETA
private static final double[] GETA
-
-
Constructor Details
-
NeqSimSpanWagner
private NeqSimSpanWagner()
-
-
Method Details
-
alpha0
Evaluate ideal-gas contribution and derivatives.- Parameters:
delta- reduced density (rho / rhoc)tau- inverse reduced temperature (Tc / T)d- holder for derivative terms that will be populated
-
alphar
Evaluate residual contribution and derivatives (power + gaussian terms).- Parameters:
delta- reduced density (rho / rhoc)tau- inverse reduced temperature (Tc / T)d- holder for derivative terms that will be populated
-
density
Solve for reduced density delta given temperature and pressure.- Parameters:
tau- inverse reduced temperature (Tc / T)pressure- system pressure in Pascaltype- phase type used for the initial guess- Returns:
- reduced density
-
getProperties
Compute thermodynamic properties for given temperature and pressure.- Parameters:
temperature- Kelvinpressure- Pascaltype- phase type for which properties are calculated- Returns:
- array [rho, Z, h, s, cp, cv, u, g, w]
-