Class PhaseElectrolyteCPA
- All Implemented Interfaces:
Serializable, Cloneable, PhaseCPAInterface, PhaseEosInterface, PhaseInterface, ThermodynamicConstantsInterface
- Direct Known Subclasses:
PhaseElectrolyteCPAstatoil
PhaseElectrolyteCPA class.
- Version:
- $Id: $Id
- Author:
- Even Solbraa
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class PhaseModifiedFurstElectrolyteEos
PhaseModifiedFurstElectrolyteEos.DielectricMixingRule -
Field Summary
FieldsModifier and TypeFieldDescription(package private) int[](package private) org.ejml.data.DMatrixRMaj(package private) org.ejml.data.DMatrixRMaj(package private) org.ejml.data.DMatrixRMaj(package private) int(package private) int[][][][]private double[][]private double[][]private double[][]private double[][](package private) double(package private) double(package private) double(package private) double(package private) double(package private) double(package private) double(package private) doubleprivate double(package private) double(package private) doubleprivate double[][](package private) doubleprivate org.ejml.simple.SimpleMatrixprivate org.ejml.simple.SimpleMatrixprivate org.ejml.simple.SimpleMatrixprivate double[][][]private org.ejml.simple.SimpleMatrixprivate org.ejml.simple.SimpleMatrixprivate org.ejml.simple.SimpleMatrixprivate org.ejml.simple.SimpleMatrixprivate org.ejml.simple.SimpleMatrixprivate org.ejml.simple.SimpleMatrixprivate org.ejml.simple.SimpleMatrixprivate double[](package private) static org.apache.logging.log4j.LoggerLogger object for class.(package private) int[]private org.ejml.simple.SimpleMatrix(package private) intprivate org.ejml.simple.SimpleMatrix(package private) int[][][]private static final longSerialization version UID.private intprivate org.ejml.simple.SimpleMatrixprivate org.ejml.simple.SimpleMatrixprivate org.ejml.simple.SimpleMatrixprivate org.ejml.simple.SimpleMatrixFields inherited from class PhaseModifiedFurstElectrolyteEos
alphaLR2, alphaLRdT, alphaLRdTdT, alphaLRdTdV, alphaLRdV, alphaLRdVdV, bornOn, bornX, diElectricConstantdT, diElectricConstantdTdT, diElectricConstantdTdV, diElectricConstantdV, diElectricConstantdVdV, electrolyteMixingRule, eps, epsdV, epsdVdV, epsIonic, epsIonicdV, epsIonicdVdV, gamma, gammaold, lrOn, shieldingParameter, shieldingParameterdT, solventDiElectricConstant, solventDiElectricConstantdT, solventDiElectricConstantdTdT, sr2On, W, WT, WTT, XLR, XLRdTFields 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.voidcalcDelta.doublecalcPressure.doublecalcRootVolFinder.voidcalcXsitedV.clone()clone.double[][]croeneckerProduct(double[][] a, double[][] b) croeneckerProduct.doubledFCPAdT()dFCPAdT.doubledFCPAdTdT.doubledFCPAdTdV.doubledFCPAdV()dFCPAdV.doubledFCPAdVdV.doubledFCPAdVdVdV.doubledFdT()Calculate derivative of F per Temperature, i.e., dF/dT.doubledFdTdT()dFdTdT.doubledFdTdV()Calculate derivative of F per Temperature and Volume, i.e., dF/dT * 1/dV.doubledFdV()Calculate derivative of F per Volume, i.e., dF/dV.doubledFdVdV()dFdVdV.doubledFdVdVdV()dFdVdVdV.doubleFCPA()FCPA.getCpaMixingRule.intgetCrossAssosiationScheme(int comp1, int comp2, int site1, int site2) getCrossAssosiationScheme.doublegetF()getF.doublegetGcpa()getGcpa.doublegetGcpav()getGcpav.doubleGetter for property hcpatot.intgetTotalNumberOfAccociationSites.voidinit.voidinitCPAMatrix(int type) initCPAMatrix.doublemolarVolume(double pressure, double temperature, double A, double B, PhaseType pt) molarVolume.doublemolarVolume2(double pressure, double temperature, double A, double B, PhaseType pt) molarVolume2.doublemolarVolumeChangePhase(double pressure, double temperature, double A, double B, PhaseType pt) molarVolumeChangePhase.voidsetGcpav(double gcpav) Setter for the fieldgcpav.voidsetHcpatot(double hcpatot) Setter for property hcpatot.voidsetMixingRule.voidsetTotalNumberOfAccociationSites(int totalNumberOfAccociationSites) setTotalNumberOfAccociationSites.booleansolveX()solveX.booleansolveX2(int maxIter) solveX2.Methods inherited from class PhaseModifiedFurstElectrolyteEos
calcBornX, calcDiElectricConstant, calcDiElectricConstantdT, calcDiElectricConstantdTdT, calcDiElectricConstantdTdV, calcDiElectricConstantdV, calcDiElectricConstantdVdV, calcEps, calcEpsIonic, calcEpsIonicdV, calcEpsIonicdVdV, calcEpsV, calcEpsVV, calcGammaLRdV, calcShieldingParameter, calcShieldingParameterdT, calcSolventDiElectricConstant, calcSolventDiElectricConstantdT, calcSolventDiElectricConstantdTdT, calcW, calcWi, calcWij, calcWiT, calcXLR, calcXLRdT, dFBorndT, dFBorndTdT, dFdAlphaLR, dFdAlphaLRdAlphaLR, dFdAlphaLRdGamma, dFdAlphaLRdV, dFdAlphaLRdX, dFLRdT, dFLRdTdT, dFLRdTdV, dFLRdV, dFLRdVdV, dFLRdVdVdV, dFSR2dT, dFSR2dTdT, dFSR2dTdV, dFSR2dV, dFSR2dVdV, dFSR2dVdVdV, FBorn, FBornD, FBornDD, FBornDX, FBornT, FBornTD, FBornTT, FBornTX, FBornX, FBornXX, FLR, FLRGammaLR, FLRV, FLRVV, FLRXLR, FSR2, FSR2eps, FSR2epseps, FSR2epsepseps, FSR2epsepsV, FSR2epsV, FSR2epsW, FSR2n, FSR2neps, FSR2nn, FSR2nT, FSR2nV, FSR2nW, FSR2T, FSR2Teps, FSR2Tn, FSR2TT, FSR2TV, FSR2TW, FSR2V, FSR2VV, FSR2VVeps, FSR2VVV, FSR2VW, FSR2W, FSR2WW, getAlphaLR2, getAlphaLRT, getAlphaLRV, getDielectricConstant, getDiElectricConstantdT, getDiElectricConstantdV, getDielectricMixingRule, getDielectricT, getDielectricV, getElectrolyteMixingRule, getEps, getEpsdV, getEpsdVdV, getEpsIonic, getEpsIonicdV, getEpsIonicdVdV, getShieldingParameter, getSolventDiElectricConstant, getSolventDiElectricConstantdT, getSolventDiElectricConstantdTdT, getW, getWT, getXLR, reInitFurstParam, setDielectricMixingRule, setFurstIonicCoefficient, volInit, XBorndndn, XLRdGammaLR, XLRdndnMethods inherited from class PhaseEos
calcA, calcAi, calcAij, calcAiT, calcAT, calcATT, calcB, calcBi, calcBij, calcf, calcg, calcPressuredV, dFdN, dFdNdN, dFdNdT, dFdNdV, dFdxdxMatrix, dFdxdxMatrixSimple, dFdxMatrix, dFdxMatrixSimple, displayInteractionCoefficients, equals, F, fb, FB, fBB, FBB, FBD, FBT, fBV, FBV, FD, FDT, FDV, Fn, FnB, FnV, FT, FTT, FTV, fv, FV, fVV, FVV, fVVV, FVVV, gb, gBB, gBV, geta, geta, getA, getAresTV, getAT, getATT, getb, getb, getB, getCpres, getCvres, getdPdrho, getdPdTVn, getdPdVTn, getdrhodN, getdrhodP, getdrhodT, getdTVndSVnJaobiMatrix, getdUdSdSVn, getdUdSdVn, getdUdSVn, getdUdVdVSn, getdUdVSn, getdVdrho, getEosMixingRule, getf_loc, getg, getGradientVector, getGresTP, getHresdP, getHresTP, getJouleThomsonCoefficient, getKappa, getMixingRule, getMixingRuleName, getPressureAttractive, getPressureRepulsive, getSoundSpeed, getSresTP, getSresTV, getUSVHessianMatrix, gV, gVV, gVVV, resetMixingRule, setMixingRuleGEModelMethods inherited from class Phase
addComponent, addMoles, addMolesChemReac, calcA, calcAT, calcMolarVolume, calcR, getActivityCoefficient, getActivityCoefficient, getActivityCoefficient, getActivityCoefficientSymetric, getActivityCoefficientUnSymetric, getAiT, getAlpha0_EOSCG, getAlpha0_GERG2008, getAlpha0_Leachman, getAlpha0_Leachman, getAlpha0_Vega, getAlphares_EOSCG, getAlphares_GERG2008, getAlphares_Leachman, getAlphares_Leachman, getAlphares_Vega, getAntoineVaporPressure, getBeta, getBi, getComponent, getComponent, getcomponentArray, getComponentNames, getComponents, getComponentWithIndex, getComposition, getCompressibilityX, getCompressibilityY, getCorrectedVolume, getCp, getCp, getCp0, getCv, getCv, getDensity, getDensity, getDensity_AGA8, getDensity_EOSCG, getDensity_GERG2008, getDensity_Leachman, getDensity_Leachman, getDensity_Vega, getDiElectricConstant, getEnthalpy, getEnthalpy, getEnthalpydP, getEnthalpydT, getEntropy, getEntropy, getEntropydP, getEntropydT, getExcessGibbsEnergy, getExcessGibbsEnergySymetric, getFlowRate, getFugacity, getFugacity, getGamma, getGibbsEnergy, getHelmholtzEnergy, getHID, getInfiniteDiluteFugacity, getInfiniteDiluteFugacity, getInitType, getInternalEnergy, getInternalEnergy, getIsobaricThermalExpansivity, getIsothermalCompressibility, getJouleThomsonCoefficient, getLogActivityCoefficient, getLogInfiniteDiluteFugacity, getLogInfiniteDiluteFugacity, getLogPureComponentFugacity, getLogPureComponentFugacity, getMass, getMeanIonicActivity, getMixGibbsEnergy, getMixingRuleType, getModelName, getMolalMeanIonicActivity, getMolarComposition, getMolarMass, getMolarMass, getMolarVolume, 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, getTemperature, getTemperature, getThermalConductivity, getThermalConductivity, getThermoPropertyModelName, getTotalVolume, getType, getViscosity, getViscosity, getVolume, getVolume, getWaterDensity, getWtFrac, getWtFrac, getWtFraction, getWtFractionOfWaxFormingComponents, getZ, getZvolcorr, groupTBPfractions, 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 PhaseCPAInterface
calc_g, calc_hCPA, calc_lngV, calc_lngVV, calc_lngVVVMethods inherited from interface PhaseEosInterface
calcPressuredV, dFdN, dFdNdN, dFdNdT, dFdNdV, displayInteractionCoefficients, F, getAresTV, getEosMixingRule, getMixingRuleName, getMolarVolume, getPressureAttractive, getPressureRepulsive, getSresTVMethods inherited from interface PhaseInterface
addMoles, addMolesChemReac, addMolesChemReac, calcA, calcAi, calcAij, calcAiT, calcAT, calcB, calcBi, calcBij, calcMolarVolume, calcR, 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, getActivityCoefficient, getActivityCoefficientSymetric, getActivityCoefficientUnSymetric, 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, getComponent, getComponent, getcomponentArray, getComponentNames, getComponents, getComponentWithIndex, getComposition, getCompressibilityX, getCompressibilityY, getCorrectedVolume, getCp, getCp, getCp0, getCpres, getCv, getCv, getDensity, getDensity, getDensity_AGA8, getDensity_EOSCG, getDensity_GERG2008, getDensity_Leachman, getDensity_Leachman, getDensity_Vega, getdPdrho, getdPdTVn, getdPdVTn, getdrhodN, getdrhodP, getdrhodT, getEnthalpy, getEnthalpy, getEnthalpydP, getEnthalpydT, getEntropy, getEntropy, getEntropydP, getEntropydT, getExcessGibbsEnergy, getExcessGibbsEnergySymetric, getFlowRate, getFugacity, getFugacity, getg, getGamma, getGamma2, getGibbsEnergy, getGresTP, getHelmholtzEnergy, getHresTP, getInfiniteDiluteFugacity, getInitType, getInternalEnergy, getInternalEnergy, getIsobaricThermalExpansivity, getIsothermalCompressibility, getJouleThomsonCoefficient, getJouleThomsonCoefficient, getKappa, getLogActivityCoefficient, getLogInfiniteDiluteFugacity, getLogInfiniteDiluteFugacity, getLogPureComponentFugacity, getMass, getMeanIonicActivity, getMixGibbsEnergy, getMixingRule, getMixingRuleType, getModelName, getMolalMeanIonicActivity, getMolarComposition, getMolarMass, getMolarMass, getMolarVolume, getMoleFraction, getNumberOfComponents, getNumberOfIonicComponents, getNumberOfMolecularComponents, getNumberOfMolesInPhase, getOsmoticCoefficient, getOsmoticCoefficientOfWater, getOsmoticCoefficientOfWaterMolality, getpH, getpH, getPhase, getPhaseFraction, getPhaseTypeName, getPhysicalProperties, getPhysicalPropertyModel, getPressure, getPressure, getProperties_EOSCG, getProperties_GERG2008, getProperties_Leachman, getProperties_Leachman, getProperties_Vega, getPseudoCriticalPressure, getPseudoCriticalTemperature, getPureComponentFugacity, getPureComponentFugacity, getRefPhase, getRefPhase, getSoundSpeed, getSoundSpeed, getSresTP, getTemperature, getTemperature, getThermalConductivity, getThermalConductivity, getTotalVolume, getType, getViscosity, getViscosity, getVolume, getVolume, getWaterDensity, getWtFrac, getWtFrac, getWtFraction, getWtFractionOfWaxFormingComponents, getZ, getZvolcorr, gV, gVV, hasComponent, hasComponent, hasPlusFraction, hasTBPFraction, init, init, initPhysicalProperties, initPhysicalProperties, initPhysicalProperties, initRefPhases, isAsphalteneRich, isConstantPhaseVolume, isMixingRuleDefined, normalize, removeComponent, resetMixingRule, resetPhysicalProperties, setAttractiveTerm, setBeta, setComponentArray, setConstantPhaseVolume, setEmptyFluid, setInitType, setMixingRule, setMixingRuleGEModel, setMolarVolume, setMoleFractions, setNumberOfComponents, setParams, setPhaseTypeName, setPhysicalProperties, setPhysicalProperties, setPhysicalPropertyModel, setPpm, setPressure, setProperties, setRefPhase, setRefPhase, setTemperature, setTotalVolume, setType, useVolumeCorrection, useVolumeCorrection
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
logger
static org.apache.logging.log4j.Logger loggerLogger object for class. -
cpaSelect
-
cpamix
-
gcpavv
double gcpavv -
gcpavvv
double gcpavvv -
gcpa
double gcpa -
hcpatot
double hcpatot -
FCPA
double FCPA -
dFCPAdTdV
double dFCPAdTdV -
dFCPAdTdT
double dFCPAdTdT -
dFCPAdT
double dFCPAdT -
dFCPAdV
double dFCPAdV -
dFCPAdVdV
double dFCPAdVdV -
dFCPAdVdVdV
double dFCPAdVdVdV -
gcpav
private double gcpav -
cpaon
int cpaon -
oldTotalNumberOfAccociationSites
int oldTotalNumberOfAccociationSites -
totalNumberOfAccociationSites
private int totalNumberOfAccociationSites -
selfAccociationScheme
int[][][] selfAccociationScheme -
crossAccociationScheme
int[][][][] crossAccociationScheme -
moleculeNumber
int[] moleculeNumber -
assSiteNumber
int[] assSiteNumber -
gvector
private double[][] gvector -
delta
private double[][] delta -
deltaNog
private double[][] deltaNog -
deltadT
private double[][] deltadT -
deltadTdT
private double[][] deltadTdT -
Klkni
private double[][][] Klkni -
KlkTVMatrix
private org.ejml.simple.SimpleMatrix KlkTVMatrix -
KlkTTMatrix
private org.ejml.simple.SimpleMatrix KlkTTMatrix -
KlkTMatrix
private org.ejml.simple.SimpleMatrix KlkTMatrix -
udotTimesmMatrix
private org.ejml.simple.SimpleMatrix udotTimesmMatrix -
mVector
private org.ejml.simple.SimpleMatrix mVector -
udotMatrix
private org.ejml.simple.SimpleMatrix udotMatrix -
uMatrix
private org.ejml.simple.SimpleMatrix uMatrix -
QMatksiksiksi
private org.ejml.simple.SimpleMatrix QMatksiksiksi -
KlkVVVMatrix
private org.ejml.simple.SimpleMatrix KlkVVVMatrix -
KlkVVMatrix
private org.ejml.simple.SimpleMatrix KlkVVMatrix -
udotTimesmiMatrix
private org.ejml.simple.SimpleMatrix udotTimesmiMatrix -
ksiMatrix
private org.ejml.simple.SimpleMatrix ksiMatrix -
KlkMatrix
private org.ejml.simple.SimpleMatrix KlkMatrix -
hessianMatrix
private org.ejml.simple.SimpleMatrix hessianMatrix -
hessianInvers
private org.ejml.simple.SimpleMatrix hessianInvers -
KlkVMatrix
private org.ejml.simple.SimpleMatrix KlkVMatrix -
corr2Matrix
org.ejml.data.DMatrixRMaj corr2Matrix -
corr3Matrix
org.ejml.data.DMatrixRMaj corr3Matrix -
corr4Matrix
org.ejml.data.DMatrixRMaj corr4Matrix -
lngi
private double[] lngi
-
-
Constructor Details
-
PhaseElectrolyteCPA
public PhaseElectrolyteCPA()Constructor for PhaseElectrolyteCPA.
-
-
Method Details
-
clone
clone.
- Specified by:
clonein interfacePhaseInterface- Overrides:
clonein classPhaseModifiedFurstElectrolyteEos- Returns:
- a
PhaseInterfaceobject
-
setMixingRule
setMixingRule.
- Specified by:
setMixingRulein interfacePhaseInterface- Overrides:
setMixingRulein classPhaseEos- Parameters:
mr- a MixingRuleTypeInterface
-
init
public void init(double totalNumberOfMoles, int numberOfComponents, int initType, PhaseType pt, double beta) init.
initType used in component.init()
Calls component.init(initType)
- Specified by:
initin interfacePhaseInterface- Overrides:
initin classPhaseModifiedFurstElectrolyteEos- 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.
-
calcDelta
public void calcDelta()calcDelta.
-
initCPAMatrix
public void initCPAMatrix(int type) initCPAMatrix.
- Parameters:
type- a int
-
addComponent
Add component to component array and update moles variables.
- Specified by:
addComponentin interfacePhaseInterface- Overrides:
addComponentin classPhaseModifiedFurstElectrolyteEos- 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.
-
getF
public double getF()getF.
- Overrides:
getFin classPhaseModifiedFurstElectrolyteEos- Returns:
- a double
-
dFdT
public double dFdT()Calculate derivative of F per Temperature, i.e., dF/dT.
- Specified by:
dFdTin interfacePhaseInterface- Overrides:
dFdTin classPhaseModifiedFurstElectrolyteEos- Returns:
- a double
-
dFdTdV
public double dFdTdV()Calculate derivative of F per Temperature and Volume, i.e., dF/dT * 1/dV.
- Specified by:
dFdTdVin interfacePhaseInterface- Overrides:
dFdTdVin classPhaseModifiedFurstElectrolyteEos- Returns:
- a double
-
dFdV
public double dFdV()Calculate derivative of F per Volume, i.e., dF/dV.
- Specified by:
dFdVin interfacePhaseInterface- Overrides:
dFdVin classPhaseModifiedFurstElectrolyteEos- Returns:
- a double
-
dFdVdV
public double dFdVdV()dFdVdV.
- Specified by:
dFdVdVin interfacePhaseInterface- Overrides:
dFdVdVin classPhaseModifiedFurstElectrolyteEos- Returns:
- a double
-
dFdVdVdV
public double dFdVdVdV()dFdVdVdV.
- Overrides:
dFdVdVdVin classPhaseModifiedFurstElectrolyteEos- Returns:
- a double
-
dFdTdT
public double dFdTdT()dFdTdT.
- Specified by:
dFdTdTin interfacePhaseInterface- Overrides:
dFdTdTin classPhaseModifiedFurstElectrolyteEos- Returns:
- a double
-
FCPA
public double FCPA()FCPA.
- Returns:
- a double
-
dFCPAdV
public double dFCPAdV()dFCPAdV.
- Returns:
- a double
-
dFCPAdVdV
public double dFCPAdVdV()dFCPAdVdV.
- Returns:
- a double
-
dFCPAdVdVdV
public double dFCPAdVdVdV()dFCPAdVdVdV.
- Returns:
- a double
-
dFCPAdT
public double dFCPAdT()dFCPAdT.
- Returns:
- a double
-
dFCPAdTdT
public double dFCPAdTdT()dFCPAdTdT.
- Returns:
- a double
-
dFCPAdTdV
public double dFCPAdTdV()dFCPAdTdV.
- Returns:
- a double
-
calcXsitedV
public void calcXsitedV()calcXsitedV.
-
solveX
public boolean solveX()solveX.
- Returns:
- a boolean
-
solveX2
public boolean solveX2(int maxIter) solveX2.
- Parameters:
maxIter- a int- Returns:
- a boolean
-
getHcpatot
public double getHcpatot()Getter for property hcpatot.
- Specified by:
getHcpatotin interfacePhaseCPAInterface- Returns:
- a double
-
setHcpatot
public void setHcpatot(double hcpatot) Setter for property hcpatot.- Parameters:
hcpatot- New value of property hcpatot.
-
getGcpa
public double getGcpa()getGcpa.
- Specified by:
getGcpain interfacePhaseCPAInterface- Returns:
- a double
-
calcRootVolFinder
calcRootVolFinder.
- Parameters:
pt- the PhaseType of the phase- Returns:
- a double
-
molarVolume2
public double molarVolume2(double pressure, double temperature, double A, double B, PhaseType pt) throws IsNaNException, TooManyIterationsException molarVolume2.
- Overrides:
molarVolume2in classPhaseEos- 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.
-
molarVolume
public double molarVolume(double pressure, double temperature, double A, double B, PhaseType pt) throws IsNaNException, TooManyIterationsException molarVolume.
- Specified by:
molarVolumein interfacePhaseInterface- Overrides:
molarVolumein classPhaseModifiedFurstElectrolyteEos- 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.
-
molarVolumeChangePhase
public double molarVolumeChangePhase(double pressure, double temperature, double A, double B, PhaseType pt) throws IsNaNException, TooManyIterationsException molarVolumeChangePhase.
- 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.
-
getGcpav
public double getGcpav()getGcpav.
- Specified by:
getGcpavin interfacePhaseCPAInterface- Returns:
- a double
-
setGcpav
public void setGcpav(double gcpav) Setter for the field
gcpav.- Parameters:
gcpav- a double
-
getCpaMixingRule
getCpaMixingRule.
- Specified by:
getCpaMixingRulein interfacePhaseCPAInterface- Returns:
- a
CPAMixingRulesInterfaceobject
-
calcPressure
public double calcPressure()calcPressure.
- Specified by:
calcPressurein interfacePhaseEosInterface- Overrides:
calcPressurein classPhaseEos- Returns:
- a double
-
getCrossAssosiationScheme
public int getCrossAssosiationScheme(int comp1, int comp2, int site1, int site2) getCrossAssosiationScheme.
- Specified by:
getCrossAssosiationSchemein interfacePhaseCPAInterface- Parameters:
comp1- a intcomp2- a intsite1- a intsite2- a int- Returns:
- a int
-
croeneckerProduct
public double[][] croeneckerProduct(double[][] a, double[][] b) croeneckerProduct.
- Parameters:
a- an array of type doubleb- an array of type double- Returns:
- an array of type double
-
getTotalNumberOfAccociationSites
public int getTotalNumberOfAccociationSites()getTotalNumberOfAccociationSites.
- Specified by:
getTotalNumberOfAccociationSitesin interfacePhaseCPAInterface- Returns:
- a int
-
setTotalNumberOfAccociationSites
public void setTotalNumberOfAccociationSites(int totalNumberOfAccociationSites) setTotalNumberOfAccociationSites.
- Specified by:
setTotalNumberOfAccociationSitesin interfacePhaseCPAInterface- Parameters:
totalNumberOfAccociationSites- a int
-