Class PhaseSrkEosvolcor
java.lang.Object
neqsim.thermo.phase.Phase
neqsim.thermo.phase.PhaseEos
neqsim.thermo.phase.PhaseSrkEos
neqsim.thermo.phase.PhaseSrkEosvolcor
- All Implemented Interfaces:
Serializable, Cloneable, PhaseEosInterface, PhaseInterface, ThermodynamicConstantsInterface
PhasePrEosvolcor class.
- Version:
- $Id: $Id
- Author:
- Even Solbraa
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoubleprivate double[]private double[][]private double[]private doubledouble(package private) doubleprivate static final longSerialization version UID.Fields 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 TypeMethodDescriptionvoidaddComponent(String name, double moles, double molesInPhase, int compNumber) Add component to component array and update moles variables.doublecalcC(PhaseInterface phase, double temperature, double pressure, int numbcomp) calcC.doublecalcCi(int compNumb, PhaseInterface phase, double temperature, double pressure, int numbcomp) calcCi.doublecalcCij(int compNumb, int compNumbj, PhaseInterface phase, double temperature, double pressure, int numbcomp) calcCij.doublecalcCiT(int compNumb, PhaseInterface phase, double temperature, double pressure, int numbcomp) calcCiT.doublecalcCT(PhaseInterface phase, double temperature, double pressure, int numbcomp) calcCT.doublecalcf()calcf.doublecalcg()calcg.clone()clone.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.private voidensureCiCache(int numbcomp) private voidensureCijCache(int numbcomp) private voidensureCiTCache(int numbcomp) doubleF()F.doublefb()fb.doublefBB()fBB.doublefbc()fbc.doubleFBC()FBC.doublefBV()fBV.doublefc()fc.doubleFC()FC.doublefcc()fcc.doubleFCC()FCC.doubleFCD()FCD.doublefcv()fcv.doubleFCV()FCV.doubleFnC()FnC.doubleFTC()FTC.doublefv()fv.doublefVV()fVV.doublefVVV()fVVV.doublegb()gb.doublegBB()gBB.doublegBC()gBC.doublegBV()gBV.doublegc()gc.doublegCC()gCC.doublegCV()gCV.doublegetc()getc.doublegetC()getC.doublegetcij(ComponentEosInterface compArray, ComponentEosInterface compArray2) getcij.doublegetcijT(ComponentEosInterface compArray, ComponentEosInterface compArray2) getcijT.doublegetcijTT(ComponentSrkvolcor compi, ComponentSrkvolcor compj) getcijTT.doublegetCT()getCT.doublegetCTT()getCTT.doublegV()gV.doublegVV()gVV.doublegVVV()gVVV.voidinit.private doubleloc_C()Methods inherited from class PhaseEos
calcA, calcAi, calcAij, calcAiT, calcAT, calcATT, calcB, calcBi, calcBij, calcPressure, calcPressuredV, dFdN, dFdNdN, dFdNdT, dFdNdV, dFdxdxMatrix, dFdxdxMatrixSimple, dFdxMatrix, dFdxMatrixSimple, displayInteractionCoefficients, equals, FB, FBB, FBD, FBT, FBV, FD, FDT, FDV, Fn, FnB, FnV, FT, FTT, FTV, FV, FVV, FVVV, geta, geta, getA, getAresTV, getAT, getATT, getb, getb, getB, getCpres, getCvres, getdPdrho, getdPdTVn, getdPdVTn, getdrhodN, getdrhodP, getdrhodT, getdTVndSVnJaobiMatrix, getdUdSdSVn, getdUdSdVn, getdUdSVn, getdUdVdVSn, getdUdVSn, getdVdrho, getEosMixingRule, getF, getf_loc, getg, getGradientVector, getGresTP, getHresdP, getHresTP, getJouleThomsonCoefficient, getKappa, getMixingRule, getMixingRuleName, getPressureAttractive, getPressureRepulsive, getSoundSpeed, getSresTP, getSresTV, getUSVHessianMatrix, molarVolume, molarVolume2, resetMixingRule, setMixingRule, setMixingRuleGEModelMethods 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
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:
-
loc_C
double loc_C -
CT
private double CT -
C
public double C -
Ctot
public double Ctot -
cachedCi
private double[] cachedCi -
cachedCiT
private double[] cachedCiT -
cachedCij
private double[][] cachedCij
-
-
Constructor Details
-
PhaseSrkEosvolcor
public PhaseSrkEosvolcor()Creates new PhaseSrkEos.
-
-
Method Details
-
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 classPhaseEos- 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.
-
getCT
public double getCT()getCT.
- Returns:
- a double
-
getCTT
public double getCTT()getCTT.
- Returns:
- a double
-
calcg
-
calcf
-
dFdV
public double dFdV()Calculate derivative of F per Volume, i.e., dF/dV.
- Specified by:
dFdVin interfacePhaseInterface- Overrides:
dFdVin classPhaseEos- Returns:
- a double
-
getcij
getcij.
- Parameters:
compArray- aComponentEosInterfaceobjectcompArray2- aComponentEosInterfaceobject- Returns:
- a double
-
getcijT
getcijT.
- Parameters:
compArray- aComponentEosInterfaceobjectcompArray2- aComponentEosInterfaceobject- Returns:
- a double
-
getcijTT
getcijTT.
- Parameters:
compi- aComponentSrkvolcorobjectcompj- aComponentSrkvolcorobject- Returns:
- a double
-
calcCi
public double calcCi(int compNumb, PhaseInterface phase, double temperature, double pressure, int numbcomp) calcCi.
- Parameters:
compNumb- a intphase- aPhaseInterfaceobjecttemperature- a doublepressure- a doublenumbcomp- a int- Returns:
- a double
-
calcCij
public double calcCij(int compNumb, int compNumbj, PhaseInterface phase, double temperature, double pressure, int numbcomp) calcCij.
- Parameters:
compNumb- a intcompNumbj- a intphase- aPhaseInterfaceobjecttemperature- a doublepressure- a doublenumbcomp- a int- Returns:
- a double
-
calcCiT
public double calcCiT(int compNumb, PhaseInterface phase, double temperature, double pressure, int numbcomp) calcCiT.
- Parameters:
compNumb- a intphase- aPhaseInterfaceobjecttemperature- a doublepressure- a doublenumbcomp- a int- Returns:
- a double
-
ensureCiCache
private void ensureCiCache(int numbcomp) -
ensureCiTCache
private void ensureCiTCache(int numbcomp) -
ensureCijCache
private void ensureCijCache(int numbcomp) -
calcCT
calcCT.
- Parameters:
phase- aPhaseInterfaceobjecttemperature- a doublepressure- a doublenumbcomp- a int- Returns:
- a double
-
calcC
calcC.
- Parameters:
phase- aPhaseInterfaceobjecttemperature- a doublepressure- a doublenumbcomp- a int- Returns:
- a double
-
loc_C
private double loc_C() -
getc
public double getc()getc.
- Returns:
- a double
-
getC
public double getC()getC.
- Returns:
- a double
-
gV
public double gV()gV.
- Specified by:
gVin interfacePhaseInterface- Overrides:
gVin classPhaseEos- Returns:
- a double
-
gVV
public double gVV()gVV.
- Specified by:
gVVin interfacePhaseInterface- Overrides:
gVVin classPhaseEos- Returns:
- a double
-
gVVV
-
fv
public double fv()fv.
- Specified by:
fvin interfacePhaseInterface- Overrides:
fvin classPhaseEos- Returns:
- a double
-
fVV
public double fVV()fVV.
- Specified by:
fVVin interfacePhaseInterface- Overrides:
fVVin classPhaseEos- Returns:
- a double
-
fVVV
-
gb
public double gb()gb.
- Specified by:
gbin interfacePhaseInterface- Overrides:
gbin classPhaseEos- Returns:
- a double
-
gc
public double gc()gc.
- Returns:
- a double
-
fc
public double fc()fc.
- Returns:
- a double
-
fb
public double fb()fb.
- Specified by:
fbin interfacePhaseInterface- Overrides:
fbin classPhaseEos- Returns:
- a double
-
fcc
public double fcc()fcc.
- Returns:
- a double
-
fbc
public double fbc()fbc.
- Returns:
- a double
-
fcv
public double fcv()fcv.
- Returns:
- a double
-
fBV
public double fBV()fBV.
- Specified by:
fBVin interfacePhaseInterface- Overrides:
fBVin classPhaseEos- Returns:
- a double
-
fBB
public double fBB()fBB.
- Specified by:
fBBin interfacePhaseInterface- Overrides:
fBBin classPhaseEos- Returns:
- a double
-
gBV
public double gBV()gBV.
- Specified by:
gBVin interfacePhaseInterface- Overrides:
gBVin classPhaseEos- Returns:
- a double
-
gBB
public double gBB()gBB.
- Specified by:
gBBin interfacePhaseInterface- Overrides:
gBBin classPhaseEos- Returns:
- a double
-
gBC
public double gBC()gBC.
- Returns:
- a double
-
gCV
public double gCV()gCV.
- Returns:
- a double
-
gCC
public double gCC()gCC.
- Returns:
- a double
-
F
public double F()F.
- Specified by:
Fin interfacePhaseEosInterface- Overrides:
Fin classPhaseEos- Returns:
- a double
-
FC
public double FC()FC.
- Returns:
- a double
-
FnC
public double FnC()FnC.
- Returns:
- a double
-
FTC
public double FTC()FTC.
- Returns:
- a double
-
FBC
public double FBC()FBC.
- Returns:
- a double
-
FCV
public double FCV()FCV.
- Returns:
- a double
-
FCC
public double FCC()FCC.
- Returns:
- a double
-
FCD
public double FCD()FCD.
- Returns:
- a double
-
dFdVdV
public double dFdVdV()dFdVdV.
- Specified by:
dFdVdVin interfacePhaseInterface- Overrides:
dFdVdVin classPhaseEos- Returns:
- a double
-
dFdVdVdV
-
dFdTdV
public double dFdTdV()Calculate derivative of F per Temperature and Volume, i.e., dF/dT * 1/dV.
- Specified by:
dFdTdVin interfacePhaseInterface- Overrides:
dFdTdVin classPhaseEos- Returns:
- a double
-
dFdT
public double dFdT()Calculate derivative of F per Temperature, i.e., dF/dT.
- Specified by:
dFdTin interfacePhaseInterface- Overrides:
dFdTin classPhaseEos- Returns:
- a double
-
dFdTdT
public double dFdTdT()dFdTdT.
- Specified by:
dFdTdTin interfacePhaseInterface- Overrides:
dFdTdTin classPhaseEos- Returns:
- a double
-
clone
clone.
- Specified by:
clonein interfacePhaseInterface- Overrides:
clonein classPhaseSrkEos- Returns:
- a
PhaseInterfaceobject
-
addComponent
Add component to component array and update moles variables.
- Specified by:
addComponentin interfacePhaseInterface- Overrides:
addComponentin classPhaseSrkEos- Parameters:
name- Name of component.moles- Total number of moles of component.molesInPhase- Number of moles in phase.compNumber- Index number of component in phase object component array.
-