Class PhaseEOSCGEos
java.lang.Object
neqsim.thermo.phase.Phase
neqsim.thermo.phase.PhaseEos
neqsim.thermo.phase.PhaseGERG2008Eos
neqsim.thermo.phase.PhaseEOSCGEos
- All Implemented Interfaces:
Serializable, Cloneable, PhaseEosInterface, PhaseInterface, ThermodynamicConstantsInterface
Phase implementation using the EOS-CG mixture model.
- See Also:
-
Field Summary
FieldsFields inherited from class PhaseGERG2008Eos
a0, ar, CpGERG2008, CvGERG2008, enthalpy, entropy, gibbsEnergy, internalEnery, IPHASE, JTcoef, kappa, okVolume, WFields 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.clone()clone.doubledFdN(int i) dFdN.doubledFdNdN(int i, int j) dFdNdN.doubledFdNdT(int i) dFdNdT.doubledFdNdV(int i) dFdNdV.org.netlib.util.doubleW[]Overloaded method to get the Leachman a0matrix with default hydrogen type ('normal').org.netlib.util.doubleW[][]Overloaded method to get the Leachman armatrix with default hydrogen type ('normal').doublegetdPdTVn.double[]Get GERG properties of a phase using the GERG-2008 EoS.voidinit.Methods inherited from class PhaseGERG2008Eos
calcPressure, calcPressuredV, dFdTdV, dFdVdV, getAlpha0, getAlphaRes, getCp, getCv, getDensity, getDensity_GERG2008, getdPdrho, getdPdVTn, getEnthalpy, getEntropy, getGergModelType, getGibbsEnergy, getGresTP, getHresTP, getInternalEnergy, getJouleThomsonCoefficient, getZ, molarVolume, setGergModelTypeMethods inherited from class PhaseEos
calcA, calcAi, calcAij, calcAiT, calcAT, calcATT, calcB, calcBi, calcBij, calcf, calcg, dFdT, dFdTdT, dFdV, dFdVdVdV, dFdxdxMatrix, dFdxdxMatrixSimple, dFdxMatrix, dFdxMatrixSimple, displayInteractionCoefficients, equals, F, fb, FB, fBB, FBB, FBD, FBT, fBV, FBV, FD, FDT, FDV, Fn, FnB, FnV, FT, FTT, FTV, fv, FV, fVV, FVV, fVVV, FVVV, gb, gBB, gBV, geta, geta, getA, getAresTV, getAT, getATT, getb, getb, getB, getCpres, getCvres, getdrhodN, getdrhodP, getdrhodT, getdTVndSVnJaobiMatrix, getdUdSdSVn, getdUdSdVn, getdUdSVn, getdUdVdVSn, getdUdVSn, getdVdrho, getEosMixingRule, getF, getf_loc, getg, getGradientVector, getHresdP, getKappa, getMixingRule, getMixingRuleName, getPressureAttractive, getPressureRepulsive, getSoundSpeed, getSresTP, getSresTV, getUSVHessianMatrix, gV, gVV, gVVV, 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_Leachman, getAlpha0_Leachman, getAlpha0_Vega, getAlphares_EOSCG, getAlphares_Leachman, getAlphares_Leachman, getAlphares_Vega, getAntoineVaporPressure, getBeta, getBi, getComponent, getComponent, getcomponentArray, getComponentNames, getComponents, getComponentWithIndex, getComposition, getCompressibilityX, getCompressibilityY, getCorrectedVolume, getCp, getCp0, getCv, getDensity, getDensity_AGA8, getDensity_EOSCG, getDensity_Leachman, getDensity_Leachman, getDensity_Vega, getDiElectricConstant, getEnthalpy, getEnthalpydP, getEnthalpydT, getEntropy, getEntropydP, getEntropydT, getExcessGibbsEnergy, getExcessGibbsEnergySymetric, getFlowRate, getFugacity, getFugacity, getGamma, getHelmholtzEnergy, getHID, getInfiniteDiluteFugacity, getInfiniteDiluteFugacity, getInitType, 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_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, 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_Leachman, getAlpha0_Leachman, getAlpha0_Vega, getAlphares_EOSCG, getAlphares_Leachman, getAlphares_Leachman, getAlphares_Vega, getAntoineVaporPressure, getBeta, getComponent, getComponent, getcomponentArray, getComponentNames, getComponents, getComponentWithIndex, getComposition, getCompressibilityX, getCompressibilityY, getCorrectedVolume, getCp, getCp0, getCv, getDensity, getDensity_AGA8, getDensity_EOSCG, getDensity_Leachman, getDensity_Leachman, getDensity_Vega, getEnthalpy, getEnthalpydP, getEnthalpydT, getEntropy, getEntropydP, getEntropydT, getExcessGibbsEnergy, getExcessGibbsEnergySymetric, getFlowRate, getFugacity, getFugacity, getGamma, getGamma2, getHelmholtzEnergy, getInfiniteDiluteFugacity, getInitType, 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_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, 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 serialVersionUID- See Also:
-
-
Constructor Details
-
PhaseEOSCGEos
public PhaseEOSCGEos()
-
-
Method Details
-
clone
Description copied from class:PhaseGERG2008Eosclone.
- Specified by:
clonein interfacePhaseInterface- Overrides:
clonein classPhaseGERG2008Eos- Returns:
- a
PhaseInterfaceobject
-
addComponent
Description copied from class:PhaseGERG2008EosAdd component to component array and update moles variables.
- Specified by:
addComponentin interfacePhaseInterface- Overrides:
addComponentin classPhaseGERG2008Eos- 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.
-
init
public void init(double totalNumberOfMoles, int numberOfComponents, int initType, PhaseType pt, double beta) Description copied from class:PhaseGERG2008Eosinit.
initType used in component.init()
Calls component.init(initType)
- Specified by:
initin interfacePhaseInterface- Overrides:
initin classPhaseGERG2008Eos- 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.
-
getProperties_GERG2008
public double[] getProperties_GERG2008()Description copied from class:PhaseGERG2008EosGet GERG properties of a phase using the GERG-2008 EoS.
- Specified by:
getProperties_GERG2008in interfacePhaseInterface- Overrides:
getProperties_GERG2008in classPhaseGERG2008Eos- Returns:
- an array of type double
-
getAlpha0_GERG2008
public org.netlib.util.doubleW[] getAlpha0_GERG2008()Description copied from class:PhaseGERG2008EosOverloaded method to get the Leachman a0matrix with default hydrogen type ('normal').- Specified by:
getAlpha0_GERG2008in interfacePhaseInterface- Overrides:
getAlpha0_GERG2008in classPhaseGERG2008Eos- Returns:
- matrix of the reduced ideal helmholtz free energy and its derivatives
-
getAlphares_GERG2008
public org.netlib.util.doubleW[][] getAlphares_GERG2008()Description copied from class:PhaseGERG2008EosOverloaded method to get the Leachman armatrix with default hydrogen type ('normal').- Specified by:
getAlphares_GERG2008in interfacePhaseInterface- Overrides:
getAlphares_GERG2008in classPhaseGERG2008Eos- Returns:
- matrix of the reduced residual helmholtz free energy and its derivatives
-
dFdN
public double dFdN(int i) Description copied from class:PhaseGERG2008EosdFdN.
- Specified by:
dFdNin interfacePhaseEosInterface- Overrides:
dFdNin classPhaseGERG2008Eos- Parameters:
i- a int- Returns:
- a double
-
dFdNdN
public double dFdNdN(int i, int j) Description copied from class:PhaseGERG2008EosdFdNdN.
- Specified by:
dFdNdNin interfacePhaseEosInterface- Overrides:
dFdNdNin classPhaseGERG2008Eos- Parameters:
i- a intj- a int- Returns:
- a double
-
dFdNdV
public double dFdNdV(int i) Description copied from class:PhaseGERG2008EosdFdNdV.
- Specified by:
dFdNdVin interfacePhaseEosInterface- Overrides:
dFdNdVin classPhaseGERG2008Eos- Parameters:
i- a int- Returns:
- a double
-
dFdNdT
public double dFdNdT(int i) Description copied from class:PhaseGERG2008EosdFdNdT.
- Specified by:
dFdNdTin interfacePhaseEosInterface- Overrides:
dFdNdTin classPhaseGERG2008Eos- Parameters:
i- a int- Returns:
- a double
-
getdPdTVn
public double getdPdTVn()Description copied from class:PhaseGERG2008EosgetdPdTVn.
- Specified by:
getdPdTVnin interfacePhaseInterface- Overrides:
getdPdTVnin classPhaseGERG2008Eos- Returns:
- a double
-