Class NeqSimLeachman
java.lang.Object
neqsim.thermo.util.leachman.NeqSimLeachman
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for NeqSimLeachman.NeqSimLeachman(PhaseInterface phase, String hydrogenType) Constructor for NeqSimLeachman. -
Method Summary
Modifier and TypeMethodDescriptionorg.netlib.util.doubleW[]getAlpha0_Leachman.org.netlib.util.doubleW[][]Get reduced residual helmholtz free energy and its derivatives.doubleGet the density.doublegetDensity(PhaseInterface phase) Get the density of the specified phase.doubleGet the molar density.doublegetMolarDensity(PhaseInterface phase) Get the molar density of the specified phase.doubleGet the pressure.double[]getProperties(PhaseInterface phase, String[] properties) Get specific thermodynamic properties of the specified phase.static voidmain method.double[]Get various thermodynamic properties.double[]propertiesLeachman(PhaseInterface phase) Get various thermodynamic properties of the specified phase.voidsetPhase(PhaseInterface phase) Setter for the fieldphase.
-
Field Details
-
phase
PhaseInterface phase -
Leachman
Leachman Leachman
-
-
Constructor Details
-
NeqSimLeachman
public NeqSimLeachman()Constructor for NeqSimLeachman. -
NeqSimLeachman
Constructor for NeqSimLeachman. If hydrogenType is provided (non-empty), it uses that; otherwise, it auto-detects based on the phase's component name.- Parameters:
phase- a PhaseInterface representing the stream.hydrogenType- a String representing the desired hydrogen type; can be empty.
-
-
Method Details
-
getMolarDensity
Get the molar density of the specified phase.- Parameters:
phase- aPhaseInterfaceobject- Returns:
- a double representing the molar density
-
getDensity
Get the density of the specified phase.- Parameters:
phase- aPhaseInterfaceobject- Returns:
- a double representing the density
-
getDensity
public double getDensity()Get the density.- Returns:
- a double representing the density
-
getPressure
public double getPressure()Get the pressure.- Returns:
- a double representing the pressure
-
getMolarDensity
public double getMolarDensity()Get the molar density.- Returns:
- a double representing the molar density
-
propertiesLeachman
Get various thermodynamic properties of the specified phase.- Parameters:
phase- aPhaseInterfaceobject- Returns:
- an array of type double representing various thermodynamic properties
-
getProperties
Get specific thermodynamic properties of the specified phase.- Parameters:
phase- aPhaseInterfaceobjectproperties- an array ofStringobjects representing the properties to retrieve- Returns:
- an array of type double representing the requested properties
-
propertiesLeachman
public double[] propertiesLeachman()Get various thermodynamic properties.- Returns:
- an array of type double representing various thermodynamic properties
-
setPhase
Setter for the fieldphase.- Parameters:
phase- aPhaseInterfaceobject
-
getAlpha0_Leachman
public org.netlib.util.doubleW[] getAlpha0_Leachman()getAlpha0_Leachman.
- Returns:
- an array of
doubleWobjects
-
getAlphares_Leachman
public org.netlib.util.doubleW[][] getAlphares_Leachman()Get reduced residual helmholtz free energy and its derivatives. The returned array has the following structure:- ar(0,0) - Residual Helmholtz energy (dimensionless, =a/RT)
- ar(0,1) - delta*partial (ar)/partial(delta)
- ar(0,2) - delta^2*partial^2(ar)/partial(delta)^2
- ar(0,3) - delta^3*partial^3(ar)/partial(delta)^3
- ar(1,0) - tau*partial (ar)/partial(tau)
- ar(1,1) - tau*delta*partial^2(ar)/partial(tau)/partial(delta)
- ar(2,0) - tau^2*partial^2(ar)/partial(tau)^2
- Returns:
- a doubleW[][] representing the reduced residual helmholtz free energy
-
main
-