Class SystemGERG2008Eos
- All Implemented Interfaces:
Serializable, Cloneable, SystemInterface
The system can use either the standard GERG-2008 model or the GERG-2008-H2 variant with improved hydrogen parameters. The default is the standard GERG-2008 model.
- Version:
- $Id: $Id
- Author:
- victorigi
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate GERG2008TypeThe GERG-2008 model variant to use.private static final longSerialization version UID.Fields inherited from class SystemThermo
a, allowPhaseShift, attractiveTermNumber, beta, CapeOpenProperties10, CapeOpenProperties11, characterization, checkStability, chemicalReactionOperations, chemicalSystem, componentNameTag, criticalPressure, criticalTemperature, enhancedMultiPhaseCheck, fluidInfo, fluidName, hydrateCheck, interfaceProp, isInitialized, logger, maxNumberOfPhases, modelName, multiPhaseCheck, numberOfComponents, numberOfPhases, numericDerivatives, oilAssayCharacterisation, phaseArray, phaseIndex, phaseType, resultTable, solidPhaseCheck, standard, waxCharacterisation -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for SystemGERG2008Eos.SystemGERG2008Eos(double T, double P) Constructor for SystemGERG2008Eos.SystemGERG2008Eos(double T, double P, boolean checkForSolids) Constructor for SystemGERG2008Eos. -
Method Summary
Modifier and TypeMethodDescriptionclone()clone.voidcommonInitialization.Get the current GERG-2008 model type.booleanCheck if the hydrogen-enhanced GERG-2008-H2 model is being used.voidsetGergModelType(GERG2008Type modelType) Set the GERG-2008 model type.voidEnable the GERG-2008-H2 model with improved hydrogen parameters.Methods inherited from class SystemThermo
addCapeOpenProperty, addCharacterized, addComponent, addComponent, addComponent, addComponent, addComponent, addComponent, addComponent, addComponent, addFluid, addFluid, addGasToLiquid, addHydratePhase, addHydratePhase2, addLiquidToGas, addOilFractions, addOilFractions, addPhase, addPhaseFractionToPhase, addPhaseFractionToPhase, addPlusFraction, addSalt, addSolidComplexPhase, addSolidPhase, addTBPfraction, addTBPfraction, addTBPfraction2, addTBPfraction3, addTBPfraction4, addToComponentNames, allowPhaseShift, allowPhaseShift, autoSelectMixingRule, autoSelectModel, calc_x_y, calc_x_y_nonorm, calcHenrysConstant, calcInterfaceProperties, calcKIJ, calculateDensityFromBoilingPoint, calculateMolarMassFromDensityAndBoilingPoint, changeComponentName, checkStability, checkStability, chemicalReactionInit, clearAll, createDatabase, createTable, deleteFluidPhase, display, doEnhancedMultiPhaseCheck, doMultiPhaseCheck, doSolidPhaseCheck, getAntoineVaporPressure, getBeta, getBeta, getCapeOpenProperties10, getCapeOpenProperties11, getCASNumbers, getCharacterization, getChemicalReactionOperations, getCompFormulaes, getCompIDs, getCompNames, getComponentNameTag, getCorrectedVolume, getCorrectedVolumeFraction, getCp, getCp, getCv, getCv, getDensity, getDensity, getdPdVtn, getdVdPtn, getdVdTpn, getEmptySystemClone, getEnthalpy, getEnthalpy, getEntropy, getEntropy, getExergy, getExergy, getFlowRate, getFluidInfo, getFluidName, getGamma, getGasPhase, getGibbsEnergy, getHeatOfVaporization, getHelmholtzEnergy, getHydrateCheck, getIdealLiquidDensity, getInterfacialTension, getInterfacialTension, getInterfacialTension, getInternalEnergy, getInternalEnergy, getInterphaseProperties, getJouleThomsonCoefficient, getJouleThomsonCoefficient, getKappa, getKinematicViscosity, getKinematicViscosity, getKvector, getLiquidPhase, getLiquidVolume, getLowestGibbsEnergyPhase, getMass, getMaxNumberOfPhases, getMixingRule, getMixingRuleName, getModelName, getMolarComposition, getMolarMass, getMolarMass, getMolarRate, getMolarVolume, getMolarVolume, getMolecularWeights, getMoleFraction, getMoleFractionsSum, getNormalBoilingPointTemperatures, getNumberOfComponents, getNumberOfOilFractionComponents, getNumberOfPhases, getOilAssayCharacterisation, getOilFractionIDs, getOilFractionLiquidDensityAt25C, getOilFractionMolecularMass, getOilFractionNormalBoilingPoints, getPC, getPhase, getPhase, getPhase, getPhaseFraction, getPhaseIndex, getPhaseIndex, getPhaseIndex, getPhaseNumberOfPhase, getPhaseOfType, getPhases, getPressure, getPressure, getPressure, getProperties, getProperty, getProperty, getProperty, getResultTable, getSoundSpeed, getSoundSpeed, getStandard, getStandard, getSumBeta, getTC, getTemperature, getTemperature, getTemperature, getThermalConductivity, getThermalConductivity, getTotalNumberOfMoles, getViscosity, getViscosity, getVolume, getVolume, getVolumeFraction, getWaxCharacterisation, getWaxModel, getWeightBasedComposition, getWtFraction, getZ, getzvector, getZvolcorr, hasPhaseType, hasPlusFraction, hasTBPFraction, init, init, init_x_y, initAnalytic, initAnalytic, initBeta, initNumeric, initNumeric, initNumeric, initPhysicalProperties, initPhysicalProperties, initRefPhases, initTotalNumberOfMoles, invertPhaseTypes, isBetaValid, isChemicalSystem, isChemicalSystem, isForcePhaseTypes, isImplementedCompositionDeriativesofFugacity, isImplementedCompositionDeriativesofFugacity, isImplementedPressureDeriativesofFugacity, isImplementedTemperatureDeriativesofFugacity, isInitialized, isMultiphaseWaxCheck, isNumericDerivatives, isPhase, normalizeBeta, orderByDensity, phaseToSystem, phaseToSystem, phaseToSystem, phaseToSystem, readFluid, readObject, readObjectFromFile, reInitPhaseInformation, reInitPhaseType, removeComponent, removePhase, removePhaseKeepTotalComposition, renameComponent, replacePhase, reset, reset_x_y, resetCharacterisation, resetDatabase, resetPhysicalProperties, save, saveFluid, saveFluid, saveObject, saveObjectToFile, saveToDataBase, setAllComponentsInPhase, setAllPhaseType, setAttractiveTerm, setBeta, setBeta, setBinaryInteractionParameter, setBinaryInteractionParameter, setBmixType, setComponentCriticalParameters, setComponentCriticalParameters, setComponentFlowRates, setComponentNames, setComponentNameTag, setComponentNameTagOnNormalComponents, setComponentVolumeCorrection, setComponentVolumeCorrection, setEmptyFluid, setEnhancedMultiPhaseCheck, setFluidInfo, setFluidName, setForcePhaseTypes, setForceSinglePhase, setForceSinglePhase, setHeavyTBPfractionAsPlusFraction, setHydrateCheck, setImplementedCompositionDeriativesofFugacity, setImplementedPressureDeriativesofFugacity, setImplementedTemperatureDeriativesofFugacity, setLastTBPasPlus, setMaxNumberOfPhases, setMixingRule, setMixingRule, setMixingRuleGEmodel, setMixingRuleParametersForComponent, setModel, setModelName, setMolarComposition, setMolarCompositionOfNamedComponents, setMolarCompositionOfPlusFluid, setMolarCompositionPlus, setMolarFlowRates, setMultiPhaseCheck, setMultiphaseWaxCheck, setNumberOfPhases, setNumericDerivatives, setPC, setPhase, setPhaseIndex, setPhaseType, setPhaseType, setPressure, setPressure, setSolidPhaseCheck, setSolidPhaseCheck, setStandard, setTC, setTemperature, setTemperature, setTemperature, setTotalFlowRate, setTotalNumberOfMoles, setUseTVasIndependentVariables, toCompJson, toJson, tuneModel, useTVasIndependentVariables, useVolumeCorrection, write, writeMethods inherited from class Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SystemInterface
addComponent, addComponents, addComponents, calcResultTable, display, getComponent, getComponent, getComponentNames, getGamma2, getHydrateFraction, getHydratePhase, getNumberOfMoles, getPhaseNumberOfPhase, hasComponent, hasComponent, hashCode, hasHydratePhase, hasPhaseType, hasSolidPhase, initPhysicalProperties, initProperties, initThermoProperties, prettyPrint, setMixingRule, setMixingRule, setPhysicalPropertyModel, setPhysicalPropertyModel, validateSetup
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
gergModelType
The GERG-2008 model variant to use. Default is STANDARD.
-
-
Constructor Details
-
SystemGERG2008Eos
public SystemGERG2008Eos()Constructor for SystemGERG2008Eos.
-
SystemGERG2008Eos
public SystemGERG2008Eos(double T, double P) Constructor for SystemGERG2008Eos.
- Parameters:
T- The temperature in unit KelvinP- The pressure in unit bara (absolute pressure)
-
SystemGERG2008Eos
public SystemGERG2008Eos(double T, double P, boolean checkForSolids) Constructor for SystemGERG2008Eos.
- Parameters:
T- The temperature in unit KelvinP- The pressure in unit bara (absolute pressure)checkForSolids- Set true to do solid phase check and calculations
-
-
Method Details
-
clone
clone.
- Specified by:
clonein interfaceSystemInterface- Overrides:
clonein classSystemThermo- Returns:
- a
SystemInterfaceobject
-
commonInitialization
public void commonInitialization()commonInitialization.
-
getGergModelType
Get the current GERG-2008 model type.- Returns:
- the GERG model type (STANDARD or HYDROGEN_ENHANCED)
-
setGergModelType
Set the GERG-2008 model type.Use
GERG2008Type.STANDARDfor the original GERG-2008 model, orGERG2008Type.HYDROGEN_ENHANCEDfor the GERG-2008-H2 model with improved hydrogen parameters from Beckmüller et al. (2022).- Parameters:
modelType- the GERG model type to use
-
useHydrogenEnhancedModel
public void useHydrogenEnhancedModel()Enable the GERG-2008-H2 model with improved hydrogen parameters.This is a convenience method equivalent to calling
setGergModelType(GERG2008Type.HYDROGEN_ENHANCED).Reference: Beckmüller, R., Thol, M., Sampson, I., Lemmon, E.W., Span, R. (2022). "Extension of the equation of state for natural gases GERG-2008 with improved hydrogen parameters". Fluid Phase Equilibria, 557, 113411.
-
isUsingHydrogenEnhancedModel
public boolean isUsingHydrogenEnhancedModel()Check if the hydrogen-enhanced GERG-2008-H2 model is being used.- Returns:
- true if using GERG-2008-H2, false if using standard GERG-2008
-