Class PhaseDesmukhMather
java.lang.Object
neqsim.thermo.phase.Phase
neqsim.thermo.phase.PhaseGE
neqsim.thermo.phase.PhaseDesmukhMather
- All Implemented Interfaces:
Serializable, Cloneable, PhaseGEInterface, PhaseInterface, ThermodynamicConstantsInterface
PhaseDesmukhMather 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.private 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 TypeMethodDescriptionvoidaddComponent(String name, double moles, double molesInPhase, int compNumber) Add component to component array and update moles variables.doublegetActivityCoefficient(int k) getActivityCoefficient.doublegetActivityCoefficient(int k, int p) getActivityCoefficient.doublegetAij(int i, int j) Getter for the fieldaij.doublegetBetaDesMatij(int i, int j) getBetaDesMatij.doublegetBij(int i, int j) Getter for the fieldbij.doublegetExcessGibbsEnergy.doublegetExcessGibbsEnergy(PhaseInterface phase, int numberOfComponents, double temperature, double pressure, PhaseType pt) getExcessGibbsEnergy.doublegetGibbsEnergy.doublegetIonicStrength.doublegetSolventDensity.doublegetSolventMolarMass.doublegetSolventWeight.voidinit.doublemolarVolume(double pressure, double temperature, double A, double B, PhaseType pt) molarVolume.voidsetAij(double[][] alpha) Setter for the fieldaij.voidsetAlpha(double[][] alpha) setAlpha.voidsetBij(double[][] Bij) Setter for the fieldbij.voidsetDij(double[][] Dij) setDij.voidsetDijT(double[][] DijT) setDijT.voidsetMixingRule.Methods inherited from class PhaseGE
getActivityCoefficientInfDil, getActivityCoefficientInfDilWater, getActivityCoefficientSymetric, getCp, getCv, getDensity, getEnthalpy, getEntropy, getJouleThomsonCoefficient, getMixingRule, getMolarVolume, getSoundSpeed, getZ, init, resetMixingRule, setMixingRuleGEModelMethods 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, 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, getExcessGibbsEnergySymetric, getFlowRate, getFugacity, getFugacity, getg, getGamma, 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 PhaseInterface
addMolesChemReac, getGamma2, getPhaseFraction, getPhaseTypeName, hasComponent, init, init, initPhysicalProperties, isAsphalteneRich, 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. -
GE
double GE -
aij
double[][] aij -
bij
double[][] bij
-
-
Constructor Details
-
PhaseDesmukhMather
public PhaseDesmukhMather()Constructor for PhaseDesmukhMather.
-
-
Method Details
-
addComponent
Add component to component array and update moles variables.
- 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) init.
initType used in component.init()
- Specified by:
initin interfacePhaseInterface- Overrides:
initin classPhaseGE- 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.
-
setMixingRule
setMixingRule.
- Specified by:
setMixingRulein interfacePhaseInterface- Overrides:
setMixingRulein classPhaseGE- Parameters:
mr- a MixingRuleTypeInterface
-
setAlpha
public void setAlpha(double[][] alpha) setAlpha.
- Parameters:
alpha- an array of type double
-
getAij
public double getAij(int i, int j) Getter for the field
aij.- Parameters:
i- a intj- a int- Returns:
- a double
-
setAij
public void setAij(double[][] alpha) Setter for the field
aij.- Parameters:
alpha- an array of type double
-
setBij
public void setBij(double[][] Bij) Setter for the field
bij.- Parameters:
Bij- an array of type double
-
setDij
public void setDij(double[][] Dij) setDij.
- Parameters:
Dij- an array of type double
-
setDijT
public void setDijT(double[][] DijT) setDijT.
- Parameters:
DijT- an array of type double
-
getBetaDesMatij
public double getBetaDesMatij(int i, int j) getBetaDesMatij.
- Parameters:
i- a intj- a int- Returns:
- a double
-
getBij
public double getBij(int i, int j) Getter for the field
bij.- Parameters:
i- a intj- a int- Returns:
- a double
-
getGibbsEnergy
public double getGibbsEnergy()getGibbsEnergy.
- Specified by:
getGibbsEnergyin interfacePhaseInterface- Overrides:
getGibbsEnergyin classPhase- Returns:
- a double
-
getExcessGibbsEnergy
public double getExcessGibbsEnergy()getExcessGibbsEnergy.
- Specified by:
getExcessGibbsEnergyin interfacePhaseInterface- Overrides:
getExcessGibbsEnergyin classPhase- Returns:
- a double
-
getExcessGibbsEnergy
public double getExcessGibbsEnergy(PhaseInterface phase, int numberOfComponents, double temperature, double pressure, PhaseType pt) getExcessGibbsEnergy.
- Parameters:
phase- aPhaseInterfaceobjectnumberOfComponents- a inttemperature- a doublepressure- a doublept- the PhaseType of the phase- Returns:
- a double
-
getActivityCoefficient
public double getActivityCoefficient(int k, int p) getActivityCoefficient.
- Specified by:
getActivityCoefficientin interfacePhaseInterface- Overrides:
getActivityCoefficientin classPhase- Parameters:
k- a intp- a int- Returns:
- a double
-
getActivityCoefficient
public double getActivityCoefficient(int k) getActivityCoefficient.
- Specified by:
getActivityCoefficientin interfacePhaseInterface- Overrides:
getActivityCoefficientin classPhaseGE- Parameters:
k- a int- Returns:
- a double
-
getIonicStrength
public double getIonicStrength()getIonicStrength.
- Returns:
- a double
-
getSolventWeight
public double getSolventWeight()getSolventWeight.
- Returns:
- a double
-
getSolventDensity
public double getSolventDensity()getSolventDensity.
- Returns:
- a double
-
getSolventMolarMass
public double getSolventMolarMass()getSolventMolarMass.
- Returns:
- a double
-
molarVolume
public double molarVolume(double pressure, double temperature, double A, double B, PhaseType pt) throws IsNaNException, TooManyIterationsException molarVolume.
- Parameters:
pressure- a doubletemperature- a doubleA- a doubleB- a doublept- the PhaseType of the phase- Returns:
- a double
- Throws:
IsNaNException- if any.TooManyIterationsException- if any.
-