Class PhaseGE
java.lang.Object
neqsim.thermo.phase.Phase
neqsim.thermo.phase.PhaseGE
- All Implemented Interfaces:
Serializable, Cloneable, PhaseGEInterface, PhaseInterface, ThermodynamicConstantsInterface
- Direct Known Subclasses:
PhaseDesmukhMather, PhaseDuanSun, PhaseGENRTL, PhaseGEUniquac, PhaseGEWilson, PhasePitzer
Abstract class PhaseGE.
- Version:
- $Id: $Id
- Author:
- Even Solbraa
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static org.apache.logging.log4j.LoggerLogger object for class.(package private) EosMixingRulesInterface(package private) EosMixingRuleHandlerprivate 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 TypeMethodDescriptiondoublegetActivityCoefficient(int k) getActivityCoefficient.doublegetActivityCoefficientInfDil(int k) getActivityCoefficientInfDil.doublegetActivityCoefficientInfDilWater(int k, int p) getActivityCoefficientInfDilWater.doublegetActivityCoefficientSymetric.doublegetCp()method to return specific heat capacity (Cp).doublegetCv()method to return specific heat capacity (Cv).doubleGet density of a phase note: does not use Peneloux volume correction.doublemethod to return enthalpy of a phase in unit Joule.doublemethod to return entropy of the phase.doubleGet the Joule Thomson Coefficient of a phase.Get mixing rule.doublemethod to return molar volume of the phase note: without Peneloux volume correction.doubleGet the speed of sound of a phase note: implemented in phaseEos.doublegetZ()getZ.voidinit(double temperature, double pressure, double totalNumberOfMoles, double beta, int numberOfComponents, PhaseType pt, int phaseNum) init.voidinit.voidresetMixingRule.voidsetMixingRule.voidsetMixingRuleGEModel(String name) setMixingRuleGEModel.Methods inherited from class Phase
addComponent, addMoles, addMolesChemReac, calcA, calcA, calcAi, calcAij, calcAiT, calcAT, calcB, calcBi, calcBij, calcDiElectricConstant, calcDiElectricConstantdT, calcDiElectricConstantdTdT, calcMolarVolume, calcR, clone, dFdT, dFdTdT, dFdTdV, dFdV, dFdVdV, equals, fb, FB, fBB, FBB, FBD, FBT, fBV, FBV, FD, FDT, FDV, Fn, FnB, FnV, FT, FTT, FTV, fv, FV, fVV, FVV, gb, gBB, gBV, geta, getA, getActivityCoefficient, getActivityCoefficient, getActivityCoefficientUnSymetric, getAiT, getAlpha0_EOSCG, getAlpha0_GERG2008, getAlpha0_Leachman, getAlpha0_Leachman, getAlpha0_Vega, getAlphares_EOSCG, getAlphares_GERG2008, getAlphares_Leachman, getAlphares_Leachman, getAlphares_Vega, getAntoineVaporPressure, getAT, getATT, getb, getB, getBeta, getBi, getComponent, getComponent, getcomponentArray, getComponentNames, getComponents, getComponentWithIndex, getComposition, getCompressibilityX, getCompressibilityY, getCorrectedVolume, getCp, getCp0, getCpres, getCv, getCvres, getDensity, getDensity_AGA8, getDensity_EOSCG, getDensity_GERG2008, getDensity_Leachman, getDensity_Leachman, getDensity_Vega, getDiElectricConstant, getdPdrho, getdPdTVn, getdPdVTn, getdrhodN, getdrhodP, getdrhodT, getEnthalpy, getEnthalpydP, getEnthalpydT, getEntropy, getEntropydP, getEntropydT, getExcessGibbsEnergy, getExcessGibbsEnergySymetric, getFlowRate, getFugacity, getFugacity, getg, getGamma, getGibbsEnergy, getGresTP, getHelmholtzEnergy, getHID, getHresdP, getHresTP, getInfiniteDiluteFugacity, getInfiniteDiluteFugacity, getInitType, getInternalEnergy, getInternalEnergy, getIsobaricThermalExpansivity, getIsothermalCompressibility, getJouleThomsonCoefficient, getKappa, getLogActivityCoefficient, getLogInfiniteDiluteFugacity, getLogInfiniteDiluteFugacity, getLogPureComponentFugacity, getLogPureComponentFugacity, getMass, getMeanIonicActivity, getMixGibbsEnergy, getMixingRuleType, getModelName, getMolalMeanIonicActivity, getMolarComposition, getMolarMass, getMolarMass, 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, getSresTP, getSresTV, getTemperature, getTemperature, getThermalConductivity, getThermalConductivity, getThermoPropertyModelName, getTotalVolume, getType, getViscosity, getViscosity, getVolume, getVolume, getWaterDensity, getWtFrac, getWtFrac, getWtFraction, getWtFractionOfWaxFormingComponents, getZvolcorr, groupTBPfractions, gV, gVV, 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 PhaseGEInterface
getExcessGibbsEnergy, setAlpha, setDij, setDijTMethods inherited from interface PhaseInterface
addComponent, addMolesChemReac, getGamma2, getPhaseFraction, getPhaseTypeName, hasComponent, init, init, initPhysicalProperties, isAsphalteneRich, molarVolume, setMixingRule, setPhaseTypeName, setPhysicalProperties
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
logger
static org.apache.logging.log4j.Logger loggerLogger object for class. -
mixSelect
EosMixingRuleHandler mixSelect -
mixRule
EosMixingRulesInterface mixRule
-
-
Constructor Details
-
PhaseGE
public PhaseGE()Constructor for PhaseGE.
-
-
Method Details
-
init
public void init(double temperature, double pressure, double totalNumberOfMoles, double beta, int numberOfComponents, PhaseType pt, int phaseNum) init.
- Parameters:
temperature- a doublepressure- a doubletotalNumberOfMoles- a doublebeta- a doublenumberOfComponents- a intpt- the PhaseType of the phasephaseNum- a int
-
init
public void init(double totalNumberOfMoles, int numberOfComponents, int initType, PhaseType pt, double beta) init.
initType used in component.init()
- 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.
-
setMixingRuleGEModel
setMixingRuleGEModel.
- Specified by:
setMixingRuleGEModelin interfacePhaseInterface- Parameters:
name- aStringobject
-
getMixingRule
Get mixing rule.- Specified by:
getMixingRulein interfacePhaseInterface- Returns:
- a MixingRulesInterface
-
setMixingRule
setMixingRule.
- Specified by:
setMixingRulein interfacePhaseInterface- Parameters:
mr- a MixingRuleTypeInterface
-
resetMixingRule
resetMixingRule.
- Specified by:
resetMixingRulein interfacePhaseInterface- Parameters:
mr- a int
-
getActivityCoefficientSymetric
public double getActivityCoefficientSymetric(int k) getActivityCoefficientSymetric.
- Specified by:
getActivityCoefficientSymetricin interfacePhaseInterface- Overrides:
getActivityCoefficientSymetricin classPhase- Parameters:
k- a int- Returns:
- a double
-
getActivityCoefficient
public double getActivityCoefficient(int k) getActivityCoefficient.
- Specified by:
getActivityCoefficientin interfacePhaseInterface- Overrides:
getActivityCoefficientin classPhase- Parameters:
k- a int- Returns:
- a double
-
getActivityCoefficientInfDilWater
public double getActivityCoefficientInfDilWater(int k, int p) getActivityCoefficientInfDilWater.
- Parameters:
k- a intp- a int- Returns:
- a double
-
getActivityCoefficientInfDil
public double getActivityCoefficientInfDil(int k) getActivityCoefficientInfDil.
- Parameters:
k- a int- Returns:
- a double
-
getEnthalpy
public double getEnthalpy()method to return enthalpy of a phase in unit Joule.- Specified by:
getEnthalpyin interfacePhaseInterface- Overrides:
getEnthalpyin classPhase- Returns:
- a double
-
getEntropy
public double getEntropy()method to return entropy of the phase.- Specified by:
getEntropyin interfacePhaseInterface- Overrides:
getEntropyin classPhase- Returns:
- a double
-
getCp
public double getCp()method to return specific heat capacity (Cp).- Specified by:
getCpin interfacePhaseInterface- Overrides:
getCpin classPhase- Returns:
- Cp in unit J/K
-
getCv
public double getCv()method to return specific heat capacity (Cv).- Specified by:
getCvin interfacePhaseInterface- Overrides:
getCvin classPhase- Returns:
- Cv in unit J/K
-
getZ
public double getZ()getZ.
- Specified by:
getZin interfacePhaseInterface- Overrides:
getZin classPhase- 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
-
getJouleThomsonCoefficient
public double getJouleThomsonCoefficient()Get the Joule Thomson Coefficient of a phase.Return speed of JT coefficient of water at K/bar (assumed constant) -0.0125
- Specified by:
getJouleThomsonCoefficientin interfacePhaseInterface- Overrides:
getJouleThomsonCoefficientin classPhase- Returns:
- Joule Thomson coefficient in K/bar
-
getDensity
public double getDensity()Get density of a phase note: does not use Peneloux volume correction.note: at the moment return density of water (997 kg/m3)
- Specified by:
getDensityin interfacePhaseInterface- Overrides:
getDensityin classPhase- Returns:
- density with unit kg/m3
-
getMolarVolume
public double getMolarVolume()method to return molar volume of the phase note: without Peneloux volume correction.- Specified by:
getMolarVolumein interfacePhaseInterface- Overrides:
getMolarVolumein classPhase- Returns:
- molar volume volume in unit m3/mol*1e5
-