Class PhaseEos
- All Implemented Interfaces:
Serializable, Cloneable, PhaseEosInterface, PhaseInterface, ThermodynamicConstantsInterface
- Direct Known Subclasses:
PhaseAmmoniaEos, PhaseGERG2004Eos, PhaseGERG2008Eos, PhaseLeachmanEos, PhasePrEos, PhaseRK, PhaseSpanWagnerEos, PhaseSrkEos, PhaseTSTEos, PhaseVegaEos, PhaseWaterIAPWS
- Author:
- Even Solbraa
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoubledoubleprivate doubleprivate doubleprivate doubleprivate doubleprivate doubleprivate double(package private) static org.apache.logging.log4j.LoggerLogger object for class.protected EosMixingRulesInterfaceprotected EosMixingRuleHandlerprivate static final longSerialization version UID.(package private) double(package private) doubleFields inherited from class Phase
beta, calcMolarVolume, chemSyst, componentArray, diElectricConstant, mixingRuleType, molarVolume, numberOfComponents, numberOfMolesInPhase, phaseVolume, physicalPropertyHandler, pressure, pt, refPhase, temperature, thermoPropertyModelName, useVolumeCorrection, ZFields inherited from interface ThermodynamicConstantsInterface
atm, avagadroNumber, boltzmannConstant, electronCharge, faradayConstant, gravity, molarMassAir, normalStateTemperature, pi, planckConstant, R, referencePressure, referenceTemperature, standardStateTemperature, vacumPermittivity -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublecalcA(PhaseInterface phase, double temperature, double pressure, int numbcomp) calcA.doublecalcAi(int compNumb, PhaseInterface phase, double temperature, double pressure, int numbcomp) calcAi.doublecalcAij(int compNumb, int j, PhaseInterface phase, double temperature, double pressure, int numbcomp) calcAij.doublecalcAiT(int compNumb, PhaseInterface phase, double temperature, double pressure, int numbcomp) calcAiT.doublecalcAT(PhaseInterface phase, double temperature, double pressure, int numbcomp) calcAT.doublecalcATT(PhaseInterface phase, double temperature, double pressure, int numbcomp) calcATT.doublecalcB(PhaseInterface phase, double temperature, double pressure, int numbcomp) calcB.doublecalcBi(int compNumb, PhaseInterface phase, double temperature, double pressure, int numbcomp) calcBi.doublecalcBij(int compNumb, int j, PhaseInterface phase, double temperature, double pressure, int numbcomp) calcBij.doublecalcf()calcf.doublecalcg()calcg.doublecalcPressure.doublecalcPressuredV.clone()clone.doubledFdN(int i) dFdN.doubledFdNdN(int i, int j) dFdNdN.doubledFdNdT(int i) dFdNdT.doubledFdNdV(int i) dFdNdV.doubledFdT()Calculate derivative of F per Temperature, i.e., dF/dT.doubledFdTdT()dFdTdT.doubledFdTdV()Calculate derivative of F per Temperature and Volume, i.e., dF/dT * 1/dV.doubledFdV()Calculate derivative of F per Volume, i.e., dF/dV.doubledFdVdV()dFdVdV.doubledFdVdVdV()dFdVdVdV.double[][]dFdxdxMatrix.double[][]dFdxdxMatrixSimple.double[]dFdxMatrix.double[]dFdxMatrixSimple.voiddisplayInteractionCoefficients(String intType) displayInteractionCoefficients.booleandoubleF()F.doublefb()fb.doubleFB()FB.doublefBB()fBB.doubleFBB()FBB.doubleFBD()FBD.doubleFBT()FBT.doublefBV()fBV.doubleFBV()FBV.doubleFD()FD.doubleFDT()FDT.doubleFDV()FDV.doubleFn()Fn.doubleFnB()FnB.doubleFnV()FnV.doubleFT()FT.doubleFTT()FTT.doubleFTV()FTV.doublefv()fv.doubleFV()FV.doublefVV()fVV.doubleFVV()FVV.doublefVVV()fVVV.doubleFVVV()FVVV.doublegb()gb.doublegBB()gBB.doublegBV()gBV.(package private) doublegeta()Get a.doublegeta(PhaseInterface phase, double temperature, double pressure, int numbcomp) geta.doublegetA()getA.doublegetAresTV.doublegetAT()getAT.doublegetATT()getATT.(package private) doublegetb()getb.doublegetb(PhaseInterface phase, double temperature, double pressure, int numbcomp) getb.doublegetB()getB.doublegetCpres()getCpres.doublegetCvres()getCvres.doublegetdPdrho.doublegetdPdTVn.doublegetdPdVTn.doublegetdrhodN.doublegetdrhodP.doublegetdrhodT.double[][]getdTVndSVnJaobiMatrix.doublegetdUdSdSVn.doublegetdUdSdVn(PhaseInterface phase) getdUdSdVn.doublegetdUdSVn.doublegetdUdVdVSn(PhaseInterface phase) getdUdVdVSn.doublegetdUdVSn.doublegetdVdrho.getEosMixingRule.doublegetF()getF.doublegetf_loc()Getter for the fieldf_loc.doublegetg()getg.double[]getGradientVector.doublegetGresTP.doublegetHresdP.doublegetHresTP.doubleGet the Joule Thomson Coefficient of a phase.doublegetKappa()method to return real gas isentropic exponent (kappa = - Cp/Cv*(v/p)*dp/dv method to return heat capacity ratio/adiabatic index/Poisson constant.Get mixing rule.getMixingRuleName.doublegetPressureAttractive.doublegetPressureRepulsive.doubleGet the speed of sound of a phase note: implemented in phaseEos.doublegetSresTP.doublegetSresTV.double[][]getUSVHessianMatrix.doublegV()gV.doublegVV()gVV.doublegVVV()gVVV.voidinit.doublemolarVolume(double pressure, double temperature, double A, double B, PhaseType pt) molarVolume.doublemolarVolume2(double pressure, double temperature, double A, double B, PhaseType pt) molarVolume2.private doublemolarVolumeAnalytical(double pressure, double temperature, PhaseType pt) Analytic molar volume solver for cubic equations of state.voidresetMixingRule.voidsetMixingRule.voidsetMixingRuleGEModel(String name) setMixingRuleGEModel.private double[]solveCubic(double c2, double c1, double c0) Solve cubic equation z^3 + c2*z^2 + c1*z + c0 = 0 using Cardano's method.Methods inherited from class Phase
addComponent, addMoles, addMolesChemReac, calcA, calcAT, calcDiElectricConstant, calcDiElectricConstantdT, calcDiElectricConstantdTdT, calcMolarVolume, calcR, getActivityCoefficient, getActivityCoefficient, getActivityCoefficient, getActivityCoefficientSymetric, getActivityCoefficientUnSymetric, getAiT, getAlpha0_EOSCG, getAlpha0_GERG2008, getAlpha0_Leachman, getAlpha0_Leachman, getAlpha0_Vega, getAlphares_EOSCG, getAlphares_GERG2008, getAlphares_Leachman, getAlphares_Leachman, getAlphares_Vega, getAntoineVaporPressure, getBeta, getBi, getComponent, getComponent, getcomponentArray, getComponentNames, getComponents, getComponentWithIndex, getComposition, getCompressibilityX, getCompressibilityY, getCorrectedVolume, getCp, getCp, getCp0, getCv, getCv, getDensity, getDensity, getDensity_AGA8, getDensity_EOSCG, getDensity_GERG2008, getDensity_Leachman, getDensity_Leachman, getDensity_Vega, getDiElectricConstant, getEnthalpy, getEnthalpy, getEnthalpydP, getEnthalpydT, getEntropy, getEntropy, getEntropydP, getEntropydT, getExcessGibbsEnergy, getExcessGibbsEnergySymetric, getFlowRate, getFugacity, getFugacity, getGamma, getGibbsEnergy, getHelmholtzEnergy, getHID, getInfiniteDiluteFugacity, getInfiniteDiluteFugacity, getInitType, getInternalEnergy, getInternalEnergy, getIsobaricThermalExpansivity, getIsothermalCompressibility, getJouleThomsonCoefficient, getLogActivityCoefficient, getLogInfiniteDiluteFugacity, getLogInfiniteDiluteFugacity, getLogPureComponentFugacity, getLogPureComponentFugacity, getMass, getMeanIonicActivity, getMixGibbsEnergy, getMixingRuleType, getModelName, getMolalMeanIonicActivity, getMolarComposition, getMolarMass, getMolarMass, getMolarVolume, getMolarVolume, getMoleFraction, getNumberOfComponents, getNumberOfIonicComponents, getNumberOfMolecularComponents, getNumberOfMolesInPhase, getOsmoticCoefficient, getOsmoticCoefficientOfWater, getOsmoticCoefficientOfWaterMolality, getpH, getpH, getPhase, getPhysicalProperties, getPhysicalPropertyModel, getPressure, getPressure, getProperties_EOSCG, getProperties_GERG2008, getProperties_Leachman, getProperties_Leachman, getProperties_Vega, getPseudoCriticalPressure, getPseudoCriticalTemperature, getPureComponentFugacity, getPureComponentFugacity, getRefPhase, getRefPhase, getSoundSpeed, getTemperature, getTemperature, getThermalConductivity, getThermalConductivity, getThermoPropertyModelName, getTotalVolume, getType, getViscosity, getViscosity, getVolume, getVolume, getWaterDensity, getWtFrac, getWtFrac, getWtFraction, getWtFractionOfWaxFormingComponents, getZ, getZvolcorr, groupTBPfractions, hasComponent, hasPlusFraction, hasTBPFraction, initPhysicalProperties, initPhysicalProperties, initRefPhases, initRefPhases, isConstantPhaseVolume, isMixingRuleDefined, normalize, removeComponent, resetPhysicalProperties, setAttractiveTerm, setBeta, setComponentArray, setConstantPhaseVolume, setEmptyFluid, setInitType, setMolarVolume, setMoleFractions, setNumberOfComponents, setParams, setPhysicalProperties, setPhysicalPropertyModel, setPpm, setPressure, setProperties, setRefPhase, setRefPhase, setTemperature, setTotalVolume, setType, useVolumeCorrection, useVolumeCorrectionMethods inherited from class Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PhaseEosInterface
getMolarVolumeMethods inherited from interface PhaseInterface
addComponent, addMoles, addMolesChemReac, addMolesChemReac, calcAT, calcMolarVolume, calcR, getActivityCoefficient, getActivityCoefficient, getActivityCoefficient, getActivityCoefficientSymetric, getActivityCoefficientUnSymetric, getAlpha0_EOSCG, getAlpha0_GERG2008, getAlpha0_Leachman, getAlpha0_Leachman, getAlpha0_Vega, getAlphares_EOSCG, getAlphares_GERG2008, getAlphares_Leachman, getAlphares_Leachman, getAlphares_Vega, getAntoineVaporPressure, getBeta, getComponent, getComponent, getcomponentArray, getComponentNames, getComponents, getComponentWithIndex, getComposition, getCompressibilityX, getCompressibilityY, getCorrectedVolume, getCp, getCp, getCp0, getCv, getCv, getDensity, getDensity, getDensity_AGA8, getDensity_EOSCG, getDensity_GERG2008, getDensity_Leachman, getDensity_Leachman, getDensity_Vega, getEnthalpy, getEnthalpy, getEnthalpydP, getEnthalpydT, getEntropy, getEntropy, getEntropydP, getEntropydT, getExcessGibbsEnergy, getExcessGibbsEnergySymetric, getFlowRate, getFugacity, getFugacity, getGamma, getGamma2, getGibbsEnergy, getHelmholtzEnergy, getInfiniteDiluteFugacity, getInitType, getInternalEnergy, getInternalEnergy, getIsobaricThermalExpansivity, getIsothermalCompressibility, getJouleThomsonCoefficient, getLogActivityCoefficient, getLogInfiniteDiluteFugacity, getLogInfiniteDiluteFugacity, getLogPureComponentFugacity, getMass, getMeanIonicActivity, getMixGibbsEnergy, getMixingRuleType, getModelName, getMolalMeanIonicActivity, getMolarComposition, getMolarMass, getMolarMass, getMolarVolume, getMoleFraction, getNumberOfComponents, getNumberOfIonicComponents, getNumberOfMolecularComponents, getNumberOfMolesInPhase, getOsmoticCoefficient, getOsmoticCoefficientOfWater, getOsmoticCoefficientOfWaterMolality, getpH, getpH, getPhase, getPhaseFraction, getPhaseTypeName, getPhysicalProperties, getPhysicalPropertyModel, getPressure, getPressure, getProperties_EOSCG, getProperties_GERG2008, getProperties_Leachman, getProperties_Leachman, getProperties_Vega, getPseudoCriticalPressure, getPseudoCriticalTemperature, getPureComponentFugacity, getPureComponentFugacity, getRefPhase, getRefPhase, getSoundSpeed, getTemperature, getTemperature, getThermalConductivity, getThermalConductivity, getTotalVolume, getType, getViscosity, getViscosity, getVolume, getVolume, getWaterDensity, getWtFrac, getWtFrac, getWtFraction, getWtFractionOfWaxFormingComponents, getZ, getZvolcorr, hasComponent, hasComponent, hasPlusFraction, hasTBPFraction, init, init, initPhysicalProperties, initPhysicalProperties, initPhysicalProperties, initRefPhases, isAsphalteneRich, isConstantPhaseVolume, isMixingRuleDefined, normalize, removeComponent, resetPhysicalProperties, setAttractiveTerm, setBeta, setComponentArray, setConstantPhaseVolume, setEmptyFluid, setInitType, setMixingRule, setMolarVolume, setMoleFractions, setNumberOfComponents, setParams, setPhaseTypeName, setPhysicalProperties, setPhysicalProperties, setPhysicalPropertyModel, setPpm, setPressure, setProperties, setRefPhase, setRefPhase, setTemperature, setTotalVolume, setType, useVolumeCorrection, useVolumeCorrection
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
logger
static org.apache.logging.log4j.Logger loggerLogger object for class. -
loc_A
private double loc_A -
loc_AT
private double loc_AT -
loc_ATT
private double loc_ATT -
loc_B
private double loc_B -
f_loc
private double f_loc -
g
private double g -
delta1
public double delta1 -
delta2
public double delta2 -
mixSelect
-
mixRule
-
uEOS
double uEOS -
wEOS
double wEOS
-
-
Constructor Details
-
PhaseEos
public PhaseEos()Constructor for PhaseEos.
-
-
Method Details
-
clone
clone.
- Specified by:
clonein interfacePhaseInterface- Overrides:
clonein classPhase- Returns:
- a
PhaseInterfaceobject
-
displayInteractionCoefficients
displayInteractionCoefficients.
- Specified by:
displayInteractionCoefficientsin interfacePhaseEosInterface- Parameters:
intType- aStringobject
-
init
public void init(double totalNumberOfMoles, int numberOfComponents, int initType, PhaseType pt, double beta) init.
initType used in component.init()
Calls component.init(initType)
- Specified by:
initin interfacePhaseInterface- Overrides:
initin classPhase- Parameters:
totalNumberOfMoles- Total number of moles in all phases of Stream.numberOfComponents- Number of components in system.initType- a int. Use 0 to init, and 1 to reset.pt- Type of phase.beta- Mole fraction of this phase in system.
-
getMixingRule
Get mixing rule.- Specified by:
getMixingRulein interfacePhaseInterface- Returns:
- a MixingRulesInterface
-
getEosMixingRule
getEosMixingRule.
- Specified by:
getEosMixingRulein interfacePhaseEosInterface- Returns:
- a
EosMixingRulesInterfaceobject
-
setMixingRule
setMixingRule.
- Specified by:
setMixingRulein interfacePhaseInterface- Parameters:
mr- a MixingRuleTypeInterface
-
setMixingRuleGEModel
setMixingRuleGEModel.
- Specified by:
setMixingRuleGEModelin interfacePhaseInterface- Parameters:
name- aStringobject
-
resetMixingRule
resetMixingRule.
- Specified by:
resetMixingRulein interfacePhaseInterface- Parameters:
mr- a int
-
molarVolume2
public double molarVolume2(double pressure, double temperature, double A, double B, PhaseType pt) throws IsNaNException, TooManyIterationsException molarVolume2.
- Parameters:
pressure- a doubletemperature- a doubleA- a doubleB- a doublept- the PhaseType of the phase- Returns:
- a double
- Throws:
IsNaNException- if any.TooManyIterationsException- if any.
-
molarVolumeAnalytical
private double molarVolumeAnalytical(double pressure, double temperature, PhaseType pt) throws IsNaNException Analytic molar volume solver for cubic equations of state. Used as a fallback when the numerical solver does not converge.- Parameters:
pressure- system pressuretemperature- system temperaturept- phase type (gas or liquid)- Returns:
- molar volume [m3/mol * 1e5]
- Throws:
IsNaNException- if no real roots are found
-
solveCubic
private double[] solveCubic(double c2, double c1, double c0) Solve cubic equation z^3 + c2*z^2 + c1*z + c0 = 0 using Cardano's method.- Parameters:
c2- coefficient for z^2c1- coefficient for zc0- constant term- Returns:
- array containing real roots (non-real roots returned as NaN)
-
molarVolume
public double molarVolume(double pressure, double temperature, double A, double B, PhaseType pt) throws IsNaNException, TooManyIterationsException molarVolume.
- Specified by:
molarVolumein interfacePhaseInterface- Parameters:
pressure- a doubletemperature- a doubleA- a doubleB- a doublept- the PhaseType of the phase- Returns:
- a double
- Throws:
IsNaNException- if any.TooManyIterationsException- if any.
-
getPressureRepulsive
public double getPressureRepulsive()getPressureRepulsive.
- Specified by:
getPressureRepulsivein interfacePhaseEosInterface- Returns:
- a double
-
getPressureAttractive
public double getPressureAttractive()getPressureAttractive.
- Specified by:
getPressureAttractivein interfacePhaseEosInterface- Returns:
- a double
-
getMixingRuleName
getMixingRuleName.
- Specified by:
getMixingRuleNamein interfacePhaseEosInterface- Returns:
- a
Stringobject
-
calcA
calcA.
- Specified by:
calcAin interfacePhaseInterface- Overrides:
calcAin classPhase- Parameters:
phase- aPhaseInterfaceobjecttemperature- a doublepressure- a doublenumbcomp- a int- Returns:
- a double
-
calcB
calcB.
- Specified by:
calcBin interfacePhaseInterface- Overrides:
calcBin classPhase- Parameters:
phase- aPhaseInterfaceobjecttemperature- a doublepressure- a doublenumbcomp- a int- Returns:
- a double
-
calcAi
public double calcAi(int compNumb, PhaseInterface phase, double temperature, double pressure, int numbcomp) calcAi.
- Specified by:
calcAiin interfacePhaseInterface- Overrides:
calcAiin classPhase- Parameters:
compNumb- a intphase- aPhaseInterfaceobjecttemperature- a doublepressure- a doublenumbcomp- a int- Returns:
- a double
-
calcAT
calcAT.
- Parameters:
phase- aPhaseInterfaceobjecttemperature- a doublepressure- a doublenumbcomp- a int- Returns:
- a double
-
calcATT
calcATT.
- Parameters:
phase- aPhaseInterfaceobjecttemperature- a doublepressure- a doublenumbcomp- a int- Returns:
- a double
-
calcAiT
public double calcAiT(int compNumb, PhaseInterface phase, double temperature, double pressure, int numbcomp) calcAiT.
- Specified by:
calcAiTin interfacePhaseInterface- Overrides:
calcAiTin classPhase- Parameters:
compNumb- a intphase- aPhaseInterfaceobjecttemperature- a doublepressure- a doublenumbcomp- a int- Returns:
- a double
-
calcAij
public double calcAij(int compNumb, int j, PhaseInterface phase, double temperature, double pressure, int numbcomp) calcAij.
- Specified by:
calcAijin interfacePhaseInterface- Overrides:
calcAijin classPhase- Parameters:
compNumb- a intj- a intphase- aPhaseInterfaceobjecttemperature- a doublepressure- a doublenumbcomp- a int- Returns:
- a double
-
calcBij
public double calcBij(int compNumb, int j, PhaseInterface phase, double temperature, double pressure, int numbcomp) calcBij.
- Specified by:
calcBijin interfacePhaseInterface- Overrides:
calcBijin classPhase- Parameters:
compNumb- a intj- a intphase- aPhaseInterfaceobjecttemperature- a doublepressure- a doublenumbcomp- a int- Returns:
- a double
-
calcBi
public double calcBi(int compNumb, PhaseInterface phase, double temperature, double pressure, int numbcomp) calcBi.
- Specified by:
calcBiin interfacePhaseInterface- Overrides:
calcBiin classPhase- Parameters:
compNumb- a intphase- aPhaseInterfaceobjecttemperature- a doublepressure- a doublenumbcomp- a int- Returns:
- a double
-
geta
geta.
- Specified by:
getain interfacePhaseInterface- Overrides:
getain classPhase- Parameters:
phase- aPhaseInterfaceobjecttemperature- a doublepressure- a doublenumbcomp- a int- Returns:
- a double
-
geta
double geta()Get a.- Returns:
- double
-
getA
public double getA()getA.
- Specified by:
getAin interfacePhaseInterface- Overrides:
getAin classPhase- Returns:
- a double
-
getb
double getb()getb.- Returns:
- double
-
getb
getb.
- Specified by:
getbin interfacePhaseInterface- Overrides:
getbin classPhase- Parameters:
phase- aPhaseInterfaceobjecttemperature- a doublepressure- a doublenumbcomp- a int- Returns:
- a double
-
getB
public double getB()getB.
- Specified by:
getBin interfacePhaseInterface- Overrides:
getBin classPhase- Returns:
- a double
-
getAT
public double getAT()getAT.
- Specified by:
getATin interfacePhaseInterface- Overrides:
getATin classPhase- Returns:
- a double
-
getATT
public double getATT()getATT.
- Specified by:
getATTin interfacePhaseInterface- Overrides:
getATTin classPhase- Returns:
- a double
-
getAresTV
public double getAresTV()getAresTV.
- Specified by:
getAresTVin interfacePhaseEosInterface- Returns:
- a double
-
getGresTP
public double getGresTP()getGresTP.
- Specified by:
getGresTPin interfacePhaseInterface- Overrides:
getGresTPin classPhase- Returns:
- a double
-
getSresTV
public double getSresTV()getSresTV.
- Specified by:
getSresTVin interfacePhaseEosInterface- Overrides:
getSresTVin classPhase- Returns:
- a double
-
getSresTP
public double getSresTP()getSresTP.
- Specified by:
getSresTPin interfacePhaseInterface- Overrides:
getSresTPin classPhase- Returns:
- a double
-
getHresTP
public double getHresTP()getHresTP.
- Specified by:
getHresTPin interfacePhaseInterface- Overrides:
getHresTPin classPhase- Returns:
- a double
-
getHresdP
-
getCvres
-
getCpres
public double getCpres()getCpres.
- Specified by:
getCpresin interfacePhaseInterface- Overrides:
getCpresin classPhase- Returns:
- a double
-
getKappa
public double getKappa()method to return real gas isentropic exponent (kappa = - Cp/Cv*(v/p)*dp/dv method to return heat capacity ratio/adiabatic index/Poisson constant.method to return real gas isentropic exponent (kappa = - Cp/Cv*(v/p)*dp/dv
- Specified by:
getKappain interfacePhaseInterface- Overrides:
getKappain classPhase- Returns:
- kappa
-
getJouleThomsonCoefficient
public double getJouleThomsonCoefficient()Get the Joule Thomson Coefficient of a phase.- Specified by:
getJouleThomsonCoefficientin interfacePhaseInterface- Overrides:
getJouleThomsonCoefficientin classPhase- Returns:
- Joule Thomson coefficient in K/bar
-
getdPdTVn
public double getdPdTVn()getdPdTVn.
- Specified by:
getdPdTVnin interfacePhaseInterface- Overrides:
getdPdTVnin classPhase- Returns:
- a double
-
getdPdVTn
public double getdPdVTn()getdPdVTn.
- Specified by:
getdPdVTnin interfacePhaseInterface- Overrides:
getdPdVTnin classPhase- Returns:
- a double
-
getdPdrho
public double getdPdrho()getdPdrho.
- Specified by:
getdPdrhoin interfacePhaseInterface- Overrides:
getdPdrhoin classPhase- Returns:
- a double
-
getdrhodP
public double getdrhodP()getdrhodP.
- Specified by:
getdrhodPin interfacePhaseInterface- Overrides:
getdrhodPin classPhase- Returns:
- a double
-
getdrhodT
public double getdrhodT()getdrhodT.
- Specified by:
getdrhodTin interfacePhaseInterface- Overrides:
getdrhodTin classPhase- Returns:
- a double
-
getdrhodN
public double getdrhodN()getdrhodN.
- Specified by:
getdrhodNin interfacePhaseInterface- Overrides:
getdrhodNin classPhase- Returns:
- a double
-
getdVdrho
public double getdVdrho()getdVdrho.
- Returns:
- a double
-
getg
public double getg()getg.
- Specified by:
getgin interfacePhaseInterface- Overrides:
getgin classPhase- Returns:
- a double
-
getf_loc
public double getf_loc()Getter for the field
f_loc.- Returns:
- a double
-
calcg
public double calcg()calcg.
- Returns:
- a double
-
calcf
public double calcf()calcf.
- Returns:
- a double
-
getF
public double getF()getF.
- Returns:
- a double
-
F
-
Fn
public double Fn()Fn.
- Specified by:
Fnin interfacePhaseInterface- Overrides:
Fnin classPhase- Returns:
- a double
-
FT
public double FT()FT.
- Specified by:
FTin interfacePhaseInterface- Overrides:
FTin classPhase- Returns:
- a double
-
FV
public double FV()FV.
- Specified by:
FVin interfacePhaseInterface- Overrides:
FVin classPhase- Returns:
- a double
-
FD
public double FD()FD.
- Specified by:
FDin interfacePhaseInterface- Overrides:
FDin classPhase- Returns:
- a double
-
FB
public double FB()FB.
- Specified by:
FBin interfacePhaseInterface- Overrides:
FBin classPhase- Returns:
- a double
-
gb
public double gb()gb.
- Specified by:
gbin interfacePhaseInterface- Overrides:
gbin classPhase- Returns:
- a double
-
fb
public double fb()fb.
- Specified by:
fbin interfacePhaseInterface- Overrides:
fbin classPhase- Returns:
- a double
-
gV
public double gV()gV.
- Specified by:
gVin interfacePhaseInterface- Overrides:
gVin classPhase- Returns:
- a double
-
fv
public double fv()fv.
- Specified by:
fvin interfacePhaseInterface- Overrides:
fvin classPhase- Returns:
- a double
-
FnV
public double FnV()FnV.
- Specified by:
FnVin interfacePhaseInterface- Overrides:
FnVin classPhase- Returns:
- a double
-
FnB
public double FnB()FnB.
- Specified by:
FnBin interfacePhaseInterface- Overrides:
FnBin classPhase- Returns:
- a double
-
FTT
public double FTT()FTT.
- Specified by:
FTTin interfacePhaseInterface- Overrides:
FTTin classPhase- Returns:
- a double
-
FBT
public double FBT()FBT.
- Specified by:
FBTin interfacePhaseInterface- Overrides:
FBTin classPhase- Returns:
- a double
-
FDT
public double FDT()FDT.
- Specified by:
FDTin interfacePhaseInterface- Overrides:
FDTin classPhase- Returns:
- a double
-
FBV
public double FBV()FBV.
- Specified by:
FBVin interfacePhaseInterface- Overrides:
FBVin classPhase- Returns:
- a double
-
FBB
public double FBB()FBB.
- Specified by:
FBBin interfacePhaseInterface- Overrides:
FBBin classPhase- Returns:
- a double
-
FDV
public double FDV()FDV.
- Specified by:
FDVin interfacePhaseInterface- Overrides:
FDVin classPhase- Returns:
- a double
-
FBD
public double FBD()FBD.
- Specified by:
FBDin interfacePhaseInterface- Overrides:
FBDin classPhase- Returns:
- a double
-
FTV
public double FTV()FTV.
- Specified by:
FTVin interfacePhaseInterface- Overrides:
FTVin classPhase- Returns:
- a double
-
FVV
public double FVV()FVV.
- Specified by:
FVVin interfacePhaseInterface- Overrides:
FVVin classPhase- Returns:
- a double
-
FVVV
public double FVVV()FVVV.
- Returns:
- a double
-
gVV
public double gVV()gVV.
- Specified by:
gVVin interfacePhaseInterface- Overrides:
gVVin classPhase- Returns:
- a double
-
gVVV
public double gVVV()gVVV.
- Returns:
- a double
-
gBV
public double gBV()gBV.
- Specified by:
gBVin interfacePhaseInterface- Overrides:
gBVin classPhase- Returns:
- a double
-
gBB
public double gBB()gBB.
- Specified by:
gBBin interfacePhaseInterface- Overrides:
gBBin classPhase- Returns:
- a double
-
fVV
public double fVV()fVV.
- Specified by:
fVVin interfacePhaseInterface- Overrides:
fVVin classPhase- Returns:
- a double
-
fVVV
public double fVVV()fVVV.
- Returns:
- a double
-
fBV
public double fBV()fBV.
- Specified by:
fBVin interfacePhaseInterface- Overrides:
fBVin classPhase- Returns:
- a double
-
fBB
public double fBB()fBB.
- Specified by:
fBBin interfacePhaseInterface- Overrides:
fBBin classPhase- Returns:
- a double
-
dFdT
public double dFdT()Calculate derivative of F per Temperature, i.e., dF/dT.
- Specified by:
dFdTin interfacePhaseInterface- Overrides:
dFdTin classPhase- Returns:
- a double
-
dFdV
public double dFdV()Calculate derivative of F per Volume, i.e., dF/dV.
- Specified by:
dFdVin interfacePhaseInterface- Overrides:
dFdVin classPhase- Returns:
- a double
-
dFdTdV
public double dFdTdV()Calculate derivative of F per Temperature and Volume, i.e., dF/dT * 1/dV.
- Specified by:
dFdTdVin interfacePhaseInterface- Overrides:
dFdTdVin classPhase- Returns:
- a double
-
dFdVdV
public double dFdVdV()dFdVdV.
- Specified by:
dFdVdVin interfacePhaseInterface- Overrides:
dFdVdVin classPhase- Returns:
- a double
-
dFdVdVdV
public double dFdVdVdV()dFdVdVdV.
- Returns:
- a double
-
dFdTdT
public double dFdTdT()dFdTdT.
- Specified by:
dFdTdTin interfacePhaseInterface- Overrides:
dFdTdTin classPhase- Returns:
- a double
-
calcPressure
public double calcPressure()calcPressure.
- Specified by:
calcPressurein interfacePhaseEosInterface- Returns:
- a double
-
calcPressuredV
public double calcPressuredV()calcPressuredV.
- Specified by:
calcPressuredVin interfacePhaseEosInterface- Returns:
- a double
-
getSoundSpeed
public double getSoundSpeed()Get the speed of sound of a phase note: implemented in phaseEos.- Specified by:
getSoundSpeedin interfacePhaseInterface- Specified by:
getSoundSpeedin classPhase- Returns:
- speed of sound in m/s
-
getdUdSVn
public double getdUdSVn()getdUdSVn.
- Returns:
- a double
-
getdUdVSn
public double getdUdVSn()getdUdVSn.
- Returns:
- a double
-
getdUdSdSVn
public double getdUdSdSVn()getdUdSdSVn.
- Returns:
- a double
-
getdUdVdVSn
getdUdVdVSn.
- Parameters:
phase- aPhaseInterfaceobject- Returns:
- a double
-
getdUdSdVn
getdUdSdVn.
- Parameters:
phase- aPhaseInterfaceobject- Returns:
- a double
-
getdTVndSVnJaobiMatrix
public double[][] getdTVndSVnJaobiMatrix()getdTVndSVnJaobiMatrix.
- Returns:
- an array of type double
-
getGradientVector
public double[] getGradientVector()getGradientVector.
- Returns:
- an array of type double
-
getUSVHessianMatrix
public double[][] getUSVHessianMatrix()getUSVHessianMatrix.
- Returns:
- an array of type double
-
dFdxMatrixSimple
public double[] dFdxMatrixSimple()dFdxMatrixSimple.
- Returns:
- an array of type double
-
dFdxMatrix
public double[] dFdxMatrix()dFdxMatrix.
- Returns:
- an array of type double
-
dFdxdxMatrixSimple
public double[][] dFdxdxMatrixSimple()dFdxdxMatrixSimple.
- Returns:
- an array of type double
-
dFdxdxMatrix
public double[][] dFdxdxMatrix()dFdxdxMatrix.
- Returns:
- an array of type double
-
dFdN
public double dFdN(int i) dFdN.
- Specified by:
dFdNin interfacePhaseEosInterface- Parameters:
i- a int- Returns:
- a double
-
dFdNdN
public double dFdNdN(int i, int j) dFdNdN.
- Specified by:
dFdNdNin interfacePhaseEosInterface- Parameters:
i- a intj- a int- Returns:
- a double
-
dFdNdV
public double dFdNdV(int i) dFdNdV.
- Specified by:
dFdNdVin interfacePhaseEosInterface- Parameters:
i- a int- Returns:
- a double
-
dFdNdT
public double dFdNdT(int i) dFdNdT.
- Specified by:
dFdNdTin interfacePhaseEosInterface- Parameters:
i- a int- Returns:
- a double
-
equals
-