Class ComponentGEUnifacUMRPRU
java.lang.Object
neqsim.thermo.component.Component
neqsim.thermo.component.ComponentGE
neqsim.thermo.component.ComponentGEUniquac
neqsim.thermo.component.ComponentGEUnifac
neqsim.thermo.component.ComponentGEUnifacUMRPRU
- All Implemented Interfaces:
Serializable, Cloneable, ComponentGEInterface, ComponentInterface, ThermodynamicConstantsInterface
ComponentGEUnifacUMRPRU class.
- Version:
- $Id: $Id
- Author:
- Even Solbraa
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) double[][](package private) double[][](package private) double[][](package private) static org.apache.logging.log4j.LoggerLogger object for class.(package private) int(package private) double(package private) doubleprivate static final longSerialization version UID.(package private) double[](package private) double[](package private) double[](package private) double[](package private) double[](package private) double[](package private) double[][]Fields inherited from class ComponentGEUnifac
lnGammakComp, lnGammakMix, Q, R, unifacGroups, unifacGroupsArrayFields inherited from class ComponentGEUniquac
q, rFields inherited from class ComponentGE
dlngammadn, dlngammadp, dlngammadt, dlngammadtdt, gamma, gammaRefCor, lngammaFields inherited from class Component
acentricFactor, aCPA, AntoineA, AntoineASolid, AntoineB, AntoineBSolid, AntoineC, AntoineCSolid, AntoineD, AntoineE, antoineLiqVapPresType, associationEnergy, associationScheme, associationVolume, attractiveTermNumber, bCPA, calcActivity, componentName, componentNumber, criticalPressure, criticalTemperature, criticalViscosity, criticalVolume, debyeDipoleMoment, dfugdn, dfugdp, dfugdt, dfugdx, dielectricParameter, dqPuredT, dqPuredTdT, elements, epsikSAFT, fugacityCoefficient, gibbsEnergyOfFormation, heatOfVaporizationCoefs, henryCoefParameter, Hsub, idealGasAbsoluteEntropy, idealGasGibbsEnergyOfFormation, index, ionicCharge, isIon, isNormalComponent, isPlusFraction, isTBPfraction, K, lennardJonesEnergyParameter, lennardJonesMolecularDiameter, liquidConductivityParameter, liquidDensityCoefs, liquidViscosityModel, liquidViscosityParameter, matiascopemanParams, matiascopemanParamsPR, matiascopemanParamsUMRPRU, matiascopemanSolidParams, mCPA, meltingPointTemperature, molarMass, mSAFTi, normalBoilingPoint, normalLiquidDensity, numberOfAssociationSites, numberOfMoles, numberOfMolesInPhase, parachorParameter, paulingAnionicDiameter, qPure, racketZ, referencePotential, referenceStateType, schwartzentruberParams, sigmaSAFTi, solidCheck, solidDensityCoefs, sphericalCoreRadius, srkacentricFactor, standardDensity, stokesCationicDiameter, surfTensInfluenceParam, triplePointDensity, triplePointPressure, TwuCoonParams, viscosityCorrectionFactor, viscosityFrictionK, voli, x, zFields inherited from interface ThermodynamicConstantsInterface
atm, avagadroNumber, boltzmannConstant, electronCharge, faradayConstant, gravity, molarMassAir, normalStateTemperature, pi, planckConstant, referencePressure, referenceTemperature, standardStateTemperature, vacumPermittivity -
Constructor Summary
ConstructorsConstructorDescriptionComponentGEUnifacUMRPRU(String name, double moles, double molesInPhase, int compIndex) Constructor for ComponentGEUnifacUMRPRU. -
Method Summary
Modifier and TypeMethodDescriptiondoublecalcaij(PhaseInterface phase, int i, int j) calcaij.doublecalcaijdT(PhaseInterface phase, int i, int j) calcaijdT.doublecalcaijdTdT(PhaseInterface phase, int i, int j) calcaijdTdT.voidcalcGammaNumericalDerivatives(PhaseInterface phase, int numberOfComponents, double temperature, double pressure, PhaseType pt) calcGammaNumericalDerivatives.voidcalclnGammak(int k, PhaseInterface phase) calclnGammak.voidcalclnGammakdn(int k, PhaseInterface phase, int derCompNumb) calclnGammakdn.voidcalclnGammakdTdT(int k, PhaseInterface phase) calclnGammakdTdT.voidcalcSum2Comp.voidcalcSum2CompdTdT(PhaseInterface phase) calcSum2CompdTdT.voidcalcTempExpaij(PhaseInterface phase) calcTempExpaij.voidcalcUnifacGroupParams.voidcalcUnifacGroupParamsdT.doublegetaij(int i, int j) Getter for the fieldaij.doublegetaijdT(int i, int j) Getter for the fieldaijdT.doublegetaijdTdT(int i, int j) Getter for the fieldaijdTdT.doublegetGamma(PhaseInterface phase, int numberOfComponents, double temperature, double pressure, PhaseType pt) getGamma.Methods inherited from class ComponentGEUnifac
addUNIFACgroup, fugcoef, fugcoefDiffPres, fugcoefDiffTemp, getNumberOfUNIFACgroups, getQ, getR, getUnifacGroup, getUnifacGroup2, getUnifacGroups, getUnifacGroups2, setQ, setR, setUnifacGroupsMethods inherited from class ComponentGEUniquac
getGamma, getlnGammadn, getlnGammadt, getq, getrMethods inherited from class ComponentGE
fugcoef, fugcoefDiffPres, fugcoefDiffTemp, getGamma, getGammaRefCor, getlnGamma, getlnGammadtdt, setlnGammadnMethods inherited from class Component
addMolesChemReac, calcActivity, clone, createComponent, doSolidCheck, equals, Finit, fugcoefDiffPresNumeric, fugcoefDiffTempNumeric, getAcentricFactor, getAntoineASolid, getAntoineBSolid, getAntoineCSolid, getAntoineVaporPressure, getAntoineVaporPressuredT, getAntoineVaporTemperature, getAssociationEnergy, getAssociationEnergySAFT, getAssociationScheme, getAssociationVolume, getAssociationVolumeSAFT, getAttractiveTerm, getAttractiveTermNumber, getCASnumber, getCCsolidVaporPressure, getCCsolidVaporPressuredT, getChemicalPotential, getChemicalPotential, getChemicalPotentialdN, getChemicalPotentialdNTV, getChemicalPotentialdP, getChemicalPotentialdP, getChemicalPotentialdT, getChemicalPotentialdV, getChemicalPotentialIdealReference, getComponentName, getComponentNumber, getComponentType, getCp0, getCpA, getCpB, getCpC, getCpD, getCpE, getCriticalCompressibilityFactor, getCriticalViscosity, getCriticalVolume, getCv0, getDebyeDipoleMoment, getdfugdn, getdfugdp, getdfugdt, getdfugdx, getDiElectricConstant, getDiElectricConstantdT, getDiElectricConstantdTdT, getdrhodN, getElements, getEnthalpy, getEntropy, getEpsikSAFT, getFlowRate, getFormulae, getFugacityCoefficient, getFugacitydN, getGibbsEnergy, getGibbsEnergyOfFormation, getGresTP, getHeatOfFusion, getHeatOfVapourization, getHenryCoef, getHenryCoefdT, getHenryCoefParameter, getHID, getHresTP, getHsub, getIdealGasAbsoluteEntropy, getIdealGasEnthalpyOfFormation, getIdealGasGibbsEnergyOfFormation, getIdEntropy, getIndex, getIonicCharge, getIonicDiameter, getK, getLennardJonesEnergyParameter, getLennardJonesMolecularDiameter, getLiquidConductivityParameter, getLiquidViscosityModel, getLiquidViscosityParameter, getMatiascopemanParams, getMatiascopemanParams, getMatiascopemanParamsPR, getMatiascopemanParamsUMRPRU, getMatiascopemanSolidParams, getMeltingPointTemperature, getMolality, getMolarity, getMolarMass, getMolarMass, getmSAFTi, getName, getNormalBoilingPoint, getNormalBoilingPoint, getNormalLiquidDensity, getNormalLiquidDensity, getNumberOfAssociationSites, getNumberOfmoles, getNumberOfMolesInPhase, getOrginalNumberOfAssociationSites, getParachorParameter, getPaulingAnionicDiameter, getPC, getPC, getPureComponentCpLiquid, getPureComponentCpSolid, getPureComponentHeatOfVaporization, getPureComponentLiquidDensity, getPureComponentSolidDensity, getRacketZ, getRacketZCPA, getRate, getReferenceEnthalpy, getReferencePotential, getReferenceStateType, getSchwartzentruberParams, getSigmaSAFTi, getSolidVaporPressure, getSolidVaporPressuredT, getSphericalCoreRadius, getSresTP, getStandardDensity, getStokesCationicDiameter, getSurfaceTenisionInfluenceParameter, getSurfTensInfluenceParam, getTC, getTC, getTotalFlowRate, getTriplePointDensity, getTriplePointPressure, getTriplePointTemperature, getTwuCoonParams, getViscosityCorrectionFactor, getViscosityFrictionK, getVoli, getVolumeCorrection, getVolumeCorrectionConst, getVolumeCorrectionT, getVolumeCorrectionT_CPA, getx, getz, hasVolumeCorrection, init, insertComponentIntoDatabase, isHydrateFormer, isHydrocarbon, isInert, isIsHydrateFormer, isIsIon, isIsNormalComponent, isIsPlusFraction, isIsTBPfraction, isWaxFormer, logfugcoefdN, logfugcoefdNi, logfugcoefdP, logfugcoefdT, reducedPressure, reducedTemperature, seta, setAcentricFactor, setAntoineASolid, setAntoineBSolid, setAntoineCSolid, setAssociationEnergy, setAssociationEnergySAFT, setAssociationScheme, setAssociationVolume, setAssociationVolumeSAFT, setAttractiveTerm, setb, setCASnumber, setComponentName, setComponentNumber, setComponentType, setCpA, setCpB, setCpC, setCpD, setCpE, setCriticalCompressibilityFactor, setCriticalViscosity, setCriticalVolume, setdfugdn, setdfugdp, setdfugdt, setdfugdx, setEpsikSAFT, setFormulae, setFugacityCoefficient, setHeatOfFusion, setHenryCoefParameter, setIdealGasEnthalpyOfFormation, setIsAllTypesFalse, setIsHydrateFormer, setIsIon, setIsNormalComponent, setIsPlusFraction, setIsTBPfraction, setK, setLennardJonesEnergyParameter, setLennardJonesMolecularDiameter, setLiquidConductivityParameter, setLiquidViscosityModel, setLiquidViscosityParameter, setMatiascopemanParams, setMatiascopemanParams, setMatiascopemanParamsPR, setMatiascopemanSolidParams, setMolarMass, setMolarMass, setmSAFTi, setNormalBoilingPoint, setNormalLiquidDensity, setNumberOfAssociationSites, setNumberOfmoles, setNumberOfMolesInPhase, setParachorParameter, setPaulingAnionicDiameter, setPC, setPC, setProperties, setRacketZ, setRacketZCPA, setReferenceEnthalpy, setReferencePotential, setSchwartzentruberParams, setSigmaSAFTi, setSolidCheck, setSphericalCoreRadius, setStandardDensity, setStokesCationicDiameter, setSurfTensInfluenceParam, setTC, setTC, setTriplePointTemperature, setTwuCoonParams, setViscosityAssociationFactor, setViscosityFrictionK, setVoli, setVolumeCorrection, setVolumeCorrectionConst, setVolumeCorrectionT, setVolumeCorrectionT_CPA, setWaxFormer, setx, setzMethods inherited from class Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ComponentInterface
addMoles, addMolesChemReac, addMolesChemReac, calcActivity, clone, createComponent, doSolidCheck, Finit, fugcoefDiffPresNumeric, fugcoefDiffTempNumeric, getAcentricFactor, getAntoineASolid, getAntoineBSolid, getAntoineCSolid, getAntoineVaporPressure, getAntoineVaporPressuredT, getAntoineVaporTemperature, getAssociationEnergy, getAssociationEnergySAFT, getAssociationScheme, getAssociationVolume, getAssociationVolumeSAFT, getAttractiveTerm, getAttractiveTermNumber, getCASnumber, getCCsolidVaporPressure, getCCsolidVaporPressuredT, getChemicalPotential, getChemicalPotential, getChemicalPotentialdN, getChemicalPotentialdNTV, getChemicalPotentialdP, getChemicalPotentialdT, getChemicalPotentialdV, getChemicalPotentialIdealReference, getComponentName, getComponentNumber, getComponentType, getCp0, getCpA, getCpB, getCpC, getCpD, getCpE, getCriticalCompressibilityFactor, getCriticalViscosity, getCriticalVolume, getCv0, getDebyeDipoleMoment, getdfugdn, getdfugdp, getdfugdt, getdfugdx, getDiElectricConstant, getDiElectricConstantdT, getDiElectricConstantdTdT, getdrhodN, getElements, getEnthalpy, getEntropy, getEpsikSAFT, getFlowRate, getFormulae, getFugacityCoefficient, getGibbsEnergy, getGibbsEnergyOfFormation, getGresTP, getHeatOfFusion, getHeatOfVapourization, getHenryCoef, getHenryCoefdT, getHenryCoefParameter, getHID, getHresTP, getHsub, getIdealGasAbsoluteEntropy, getIdealGasEnthalpyOfFormation, getIdealGasGibbsEnergyOfFormation, getIdEntropy, getIndex, getIonicCharge, getK, getLennardJonesEnergyParameter, getLennardJonesMolecularDiameter, getLiquidConductivityParameter, getLiquidViscosityModel, getLiquidViscosityParameter, getLogFugacityCoefficient, getMatiascopemanParams, getMatiascopemanSolidParams, getMeltingPointTemperature, getMolality, getMolarity, getMolarMass, getMolarMass, getmSAFTi, getName, getNormalBoilingPoint, getNormalBoilingPoint, getNormalLiquidDensity, getNormalLiquidDensity, getNumberOfAssociationSites, getNumberOfmoles, getNumberOfMolesInPhase, getOrginalNumberOfAssociationSites, getParachorParameter, getPaulingAnionicDiameter, getPC, getPC, getPureComponentCpLiquid, getPureComponentCpSolid, getPureComponentHeatOfVaporization, getPureComponentLiquidDensity, getPureComponentSolidDensity, getRacketZ, getRacketZCPA, getRate, getReferencePotential, getReferenceStateType, getSchwartzentruberParams, getSigmaSAFTi, getSolidVaporPressure, getSolidVaporPressuredT, getSphericalCoreRadius, getSresTP, getStokesCationicDiameter, getSurfaceTenisionInfluenceParameter, getSurfTensInfluenceParam, getTC, getTC, getTotalFlowRate, getTriplePointDensity, getTriplePointPressure, getTriplePointTemperature, getTwuCoonParams, getViscosityCorrectionFactor, getViscosityFrictionK, getVoli, getVolumeCorrection, getVolumeCorrectionConst, getVolumeCorrectionT, getVolumeCorrectionT_CPA, getx, getz, init, insertComponentIntoDatabase, isHydrateFormer, isHydrocarbon, isInert, isIsIon, isIsNormalComponent, isIsPlusFraction, isIsTBPfraction, isWaxFormer, logfugcoefdN, logfugcoefdNi, logfugcoefdP, logfugcoefdT, reducedPressure, reducedTemperature, seta, setAcentricFactor, setAntoineASolid, setAntoineBSolid, setAntoineCSolid, setAssociationEnergy, setAssociationEnergySAFT, setAssociationScheme, setAssociationVolume, setAssociationVolumeSAFT, setAttractiveTerm, setb, setCASnumber, setComponentName, setComponentNumber, setComponentType, setCpA, setCpB, setCpC, setCpD, setCpE, setCriticalCompressibilityFactor, setCriticalViscosity, setCriticalVolume, setdfugdn, setdfugdp, setdfugdt, setdfugdx, setEpsikSAFT, setFormulae, setFugacityCoefficient, setHeatOfFusion, setHenryCoefParameter, setIdealGasEnthalpyOfFormation, setIsHydrateFormer, setIsIon, setIsNormalComponent, setIsPlusFraction, setIsTBPfraction, setK, setLennardJonesEnergyParameter, setLennardJonesMolecularDiameter, setLiquidConductivityParameter, setLiquidViscosityModel, setLiquidViscosityParameter, setMatiascopemanParams, setMatiascopemanParams, setMolarMass, setMolarMass, setmSAFTi, setNormalBoilingPoint, setNormalLiquidDensity, setNumberOfAssociationSites, setNumberOfmoles, setNumberOfMolesInPhase, setParachorParameter, setPC, setPC, setProperties, setRacketZ, setRacketZCPA, setReferencePotential, setSchwartzentruberParams, setSigmaSAFTi, setSolidCheck, setSphericalCoreRadius, setStokesCationicDiameter, setSurfTensInfluenceParam, setTC, setTC, setTriplePointTemperature, setTwuCoonParams, setViscosityAssociationFactor, setViscosityFrictionK, setVolumeCorrection, setVolumeCorrectionConst, setVolumeCorrectionT, setVolumeCorrectionT_CPA, setWaxFormer, setx, setz
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
logger
static org.apache.logging.log4j.Logger loggerLogger object for class. -
numberOfUnifacSubGroups
int numberOfUnifacSubGroups -
aij
double[][] aij -
aijdT
double[][] aijdT -
aijdTdT
double[][] aijdTdT -
tempExpaij
double[][] tempExpaij -
oldTemperature
double oldTemperature -
old2Temperature
double old2Temperature -
sum2Comp
double[] sum2Comp -
sum2Mix
double[] sum2Mix -
sum2CompdT
double[] sum2CompdT -
sum2CompdTdT
double[] sum2CompdTdT -
sum2MixdT
double[] sum2MixdT -
sum2MixdTdT
double[] sum2MixdTdT
-
-
Constructor Details
-
ComponentGEUnifacUMRPRU
Constructor for ComponentGEUnifacUMRPRU.
- Parameters:
name- Name of component.moles- Total number of moles of component.molesInPhase- Number of moles in phase.compIndex- Index number of component in phase object component array.
-
-
Method Details
-
calcTempExpaij
calcTempExpaij.
- Parameters:
phase- aPhaseInterfaceobject
-
calcSum2Comp
public void calcSum2Comp()calcSum2Comp.
-
calcSum2CompdTdT
calcSum2CompdTdT.
- Parameters:
phase- aPhaseInterfaceobject
-
calclnGammak
calclnGammak.
- Overrides:
calclnGammakin classComponentGEUnifac- Parameters:
k- a intphase- aPhaseInterfaceobject
-
calclnGammakdn
calclnGammakdn.
- Parameters:
k- a intphase- aPhaseInterfaceobjectderCompNumb- a int
-
calclnGammakdTdT
calclnGammakdTdT.
- Parameters:
k- a intphase- aPhaseInterfaceobject
-
getGamma
public double getGamma(PhaseInterface phase, int numberOfComponents, double temperature, double pressure, PhaseType pt) getGamma.
- Overrides:
getGammain classComponentGEUnifac- Parameters:
phase- aPhaseInterfaceobjectnumberOfComponents- a inttemperature- a doublepressure- a doublept- the PhaseType of the phase- Returns:
- a double
-
calcUnifacGroupParams
calcUnifacGroupParams.
- Parameters:
phase- aPhaseInterfaceobject
-
calcUnifacGroupParamsdT
calcUnifacGroupParamsdT.
- Parameters:
phase- aPhaseInterfaceobject
-
calcGammaNumericalDerivatives
public void calcGammaNumericalDerivatives(PhaseInterface phase, int numberOfComponents, double temperature, double pressure, PhaseType pt) calcGammaNumericalDerivatives.
- Parameters:
phase- aPhaseInterfaceobjectnumberOfComponents- a inttemperature- a doublepressure- a doublept- the PhaseType of the phase
-
getaij
public double getaij(int i, int j) Getter for the field
aij.- Parameters:
i- a intj- a int- Returns:
- a double
-
getaijdT
public double getaijdT(int i, int j) Getter for the field
aijdT.- Parameters:
i- a intj- a int- Returns:
- a double
-
getaijdTdT
public double getaijdTdT(int i, int j) Getter for the field
aijdTdT.- Parameters:
i- a intj- a int- Returns:
- a double
-
calcaij
calcaij.
- Parameters:
phase- aPhaseInterfaceobjecti- a intj- a int- Returns:
- a double
-
calcaijdT
calcaijdT.
- Parameters:
phase- aPhaseInterfaceobjecti- a intj- a int- Returns:
- a double
-
calcaijdTdT
calcaijdTdT.
- Parameters:
phase- aPhaseInterfaceobjecti- a intj- a int- Returns:
- a double
-