Class ComponentLeachmanEos
java.lang.Object
neqsim.thermo.component.Component
neqsim.thermo.component.ComponentEos
neqsim.thermo.component.ComponentLeachmanEos
- All Implemented Interfaces:
Serializable, Cloneable, ComponentEosInterface, ComponentInterface, ThermodynamicConstantsInterface
ComponentLeachman class.
- Version:
- $Id: $Id
- Author:
- Even Solbraa
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longSerialization version UID.Fields inherited from class ComponentEos
a, aDern, aDerT, aDerTn, aDerTT, aDiffDiffT, aDiffT, Ai, Aij, AiT, alpha, aT, b, bDern, bDerTn, Bi, Bij, dAdndn, dBdndn, delta1, delta2, logger, mFields 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, R, referencePressure, referenceTemperature, standardStateTemperature, vacumPermittivity -
Constructor Summary
ConstructorsConstructorDescriptionComponentLeachmanEos(int number, double TC, double PC, double M, double a, double moles) Constructor for ComponentLeachman.ComponentLeachmanEos(String name, double moles, double molesInPhase, int compIndex) Constructor for ComponentLeachman. -
Method Summary
Modifier and TypeMethodDescriptiondoublealpha(double temperature) alpha.doublecalca()calca.doublecalcb()calcb.clone()clone.doubledFdN(PhaseInterface phase, int numberOfComponents, double temperature, double pressure) dFdN.doubledFdNdN(int i, PhaseInterface phase, int numberOfComponents, double temperature, double pressure) dFdNdN.doubledFdNdT(PhaseInterface phase, int numberOfComponents, double temperature, double pressure) dFdNdT.doubledFdNdV(PhaseInterface phase, int numberOfComponents, double temperature, double pressure) dFdNdV.doublediffaT(double temperature) diffaT.doublediffdiffaT(double temperature) diffdiffaT.voidFinit(PhaseInterface phase, double T, double p, double totalNumberOfMoles, double beta, int numberOfComponents, int initType) Finit.doublefugcoef(PhaseInterface phase) Calculate, set and return fugacity coefficient.doublegetVolumeCorrection.Methods inherited from class ComponentEos
aT, diffalphaT, diffdiffalphaT, equals, geta, getAder, getaDiffDiffT, getaDiffT, getAi, getAij, getAiT, getAresnTV, getaT, getAttractiveParameter, getAttractiveTerm, getb, getBder, getBi, getBij, getChemicalPotential, getdAdndn, getdAdT, getdAdTdn, getdAdTdT, getdBdndn, getdBdndT, getdBdT, getDeltaEosParameters, getdUdndnSV, getdUdnSV, getdUdSdnV, getdUdVdnS, getSurfaceTenisionInfluenceParameter, init, logfugcoefdN, logfugcoefdNi, logfugcoefdP, logfugcoefdT, seta, setAder, setAttractiveParameter, setAttractiveTerm, setb, setBder, setdAdndn, setdAdT, setdAdTdn, setdAdTdT, setdBdndn, setdBdndT, setdBdTdTMethods inherited from class Component
addMolesChemReac, calcActivity, createComponent, doSolidCheck, fugcoefDiffPresNumeric, fugcoefDiffTempNumeric, getAcentricFactor, getAntoineASolid, getAntoineBSolid, getAntoineCSolid, getAntoineVaporPressure, getAntoineVaporPressuredT, getAntoineVaporTemperature, getAssociationEnergy, getAssociationEnergySAFT, getAssociationScheme, getAssociationVolume, getAssociationVolumeSAFT, getAttractiveTermNumber, getCASnumber, getCCsolidVaporPressure, getCCsolidVaporPressuredT, 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, getSurfTensInfluenceParam, getTC, getTC, getTotalFlowRate, getTriplePointDensity, getTriplePointPressure, getTriplePointTemperature, getTwuCoonParams, getViscosityCorrectionFactor, getViscosityFrictionK, getVoli, getVolumeCorrectionConst, getVolumeCorrectionT, getVolumeCorrectionT_CPA, getx, getz, hasVolumeCorrection, insertComponentIntoDatabase, isHydrateFormer, isHydrocarbon, isInert, isIsHydrateFormer, isIsIon, isIsNormalComponent, isIsPlusFraction, isIsTBPfraction, isWaxFormer, reducedPressure, reducedTemperature, setAcentricFactor, setAntoineASolid, setAntoineBSolid, setAntoineCSolid, setAssociationEnergy, setAssociationEnergySAFT, setAssociationScheme, setAssociationVolume, setAssociationVolumeSAFT, 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, createComponent, doSolidCheck, fugcoefDiffPresNumeric, fugcoefDiffTempNumeric, getAcentricFactor, getAntoineASolid, getAntoineBSolid, getAntoineCSolid, getAntoineVaporPressure, getAntoineVaporPressuredT, getAntoineVaporTemperature, getAssociationEnergy, getAssociationEnergySAFT, getAssociationScheme, getAssociationVolume, getAssociationVolumeSAFT, getAttractiveTermNumber, getCASnumber, getCCsolidVaporPressure, getCCsolidVaporPressuredT, 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, getSurfTensInfluenceParam, getTC, getTC, getTotalFlowRate, getTriplePointDensity, getTriplePointPressure, getTriplePointTemperature, getTwuCoonParams, getViscosityCorrectionFactor, getViscosityFrictionK, getVoli, getVolumeCorrectionConst, getVolumeCorrectionT, getVolumeCorrectionT_CPA, getx, getz, insertComponentIntoDatabase, isHydrateFormer, isHydrocarbon, isInert, isIsIon, isIsNormalComponent, isIsPlusFraction, isIsTBPfraction, isWaxFormer, reducedPressure, reducedTemperature, setAcentricFactor, setAntoineASolid, setAntoineBSolid, setAntoineCSolid, setAssociationEnergy, setAssociationEnergySAFT, setAssociationScheme, setAssociationVolume, setAssociationVolumeSAFT, 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:
-
-
Constructor Details
-
ComponentLeachmanEos
Constructor for ComponentLeachman.
- 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.
-
ComponentLeachmanEos
public ComponentLeachmanEos(int number, double TC, double PC, double M, double a, double moles) Constructor for ComponentLeachman.
- Parameters:
number- a int. Not used.TC- Critical temperature [K]PC- Critical pressure [bara]M- Molar massa- Acentric factormoles- Total number of moles of component.
-
-
Method Details
-
clone
clone.
- Specified by:
clonein interfaceComponentInterface- Overrides:
clonein classComponentEos- Returns:
- a
ComponentInterfaceobject
-
getVolumeCorrection
public double getVolumeCorrection()getVolumeCorrection.
- Specified by:
getVolumeCorrectionin interfaceComponentInterface- Overrides:
getVolumeCorrectionin classComponent- Returns:
- a double
-
Finit
public void Finit(PhaseInterface phase, double T, double p, double totalNumberOfMoles, double beta, int numberOfComponents, int initType) Finit.
- Specified by:
Finitin interfaceComponentInterface- Overrides:
Finitin classComponentEos- Parameters:
phase- aPhaseInterfaceobjectT- a doublep- a doubletotalNumberOfMoles- a doublebeta- a doublenumberOfComponents- a intinitType- a int
-
calca
public double calca()calca.
- Specified by:
calcain interfaceComponentEosInterface- Specified by:
calcain classComponentEos- Returns:
- a double
-
calcb
public double calcb()calcb.
- Specified by:
calcbin interfaceComponentEosInterface- Specified by:
calcbin classComponentEos- Returns:
- a double
-
alpha
public double alpha(double temperature) alpha.
- Overrides:
alphain classComponentEos- Parameters:
temperature- a double- Returns:
- a double
-
diffaT
public double diffaT(double temperature) diffaT.
- Specified by:
diffaTin interfaceComponentEosInterface- Overrides:
diffaTin classComponentEos- Parameters:
temperature- a double- Returns:
- a double
-
diffdiffaT
public double diffdiffaT(double temperature) diffdiffaT.
- Specified by:
diffdiffaTin interfaceComponentEosInterface- Overrides:
diffdiffaTin classComponentEos- Parameters:
temperature- a double- Returns:
- a double
-
dFdN
public double dFdN(PhaseInterface phase, int numberOfComponents, double temperature, double pressure) dFdN.
- Specified by:
dFdNin interfaceComponentEosInterface- Overrides:
dFdNin classComponentEos- Parameters:
phase- aPhaseInterfaceobjectnumberOfComponents- a inttemperature- a doublepressure- a double- Returns:
- a double
-
dFdNdN
public double dFdNdN(int i, PhaseInterface phase, int numberOfComponents, double temperature, double pressure) dFdNdN.
- Specified by:
dFdNdNin interfaceComponentEosInterface- Overrides:
dFdNdNin classComponentEos- Parameters:
i- a intphase- aPhaseInterfaceobjectnumberOfComponents- a inttemperature- a doublepressure- a double- Returns:
- a double
-
dFdNdV
public double dFdNdV(PhaseInterface phase, int numberOfComponents, double temperature, double pressure) dFdNdV.
- Specified by:
dFdNdVin interfaceComponentEosInterface- Overrides:
dFdNdVin classComponentEos- Parameters:
phase- aPhaseInterfaceobjectnumberOfComponents- a inttemperature- a doublepressure- a double- Returns:
- a double
-
dFdNdT
public double dFdNdT(PhaseInterface phase, int numberOfComponents, double temperature, double pressure) dFdNdT.
- Specified by:
dFdNdTin interfaceComponentEosInterface- Overrides:
dFdNdTin classComponentEos- Parameters:
phase- aPhaseInterfaceobjectnumberOfComponents- a inttemperature- a doublepressure- a double- Returns:
- a double
-
fugcoef
Calculate, set and return fugacity coefficient.
- Specified by:
fugcoefin interfaceComponentInterface- Overrides:
fugcoefin classComponentEos- Parameters:
phase- aPhaseInterfaceobject to get fugacity coefficient of.- Returns:
- Fugacity coefficient
-