public class GasEosVirial extends GasEos
| Modifier and Type | Class and Description |
|---|---|
static class |
GasEosVirial.corrTypeB
Available correlations for the 2nd virial coefficient B
|
| Constructor and Description |
|---|
GasEosVirial() |
| Modifier and Type | Method and Description |
|---|---|
double |
evalFugacityCoefficientV(double P0,
double P,
double T)
Evaluates pure species vapor phase fugacity coefficient
|
double |
evalLiquidVolume(double P,
double T)
Evaluates liquid molar volume with eos.
|
double |
evalPressure(double V,
double T)
Evalutes fluid pressure with eos.
|
double |
evalResidualEnthalpyV(double P0,
double P,
double T)
Evaluates vapor phase residual entropy from the definition
|
double |
evalResidualEntropyV(double P0,
double P,
double T)
Evaluates vapor phase residual entropy by numerical differentiation of
the equation of state at constant pressure.
|
double |
evalTemperature(double P,
double V)
Evaluates fluid temperature with eos.
|
double |
evalVaporVolume(double P,
double T)
Evaluates vapor molar volume with eos.
|
double |
evalZv(double P,
double T) |
double |
getB() |
double |
getB2() |
GasEosVirial.corrTypeB |
getModelB() |
void |
init(double[] aPc,
double[] aVc,
double[] aTc,
double[] aAcFac,
double[] y,
double[] p,
GasEosVirial.corrTypeB modelB)
Initializes the model.
|
void |
init(double[] aPc,
double[] aVc,
double[] aTc,
double[] aAcFac,
double[] y,
GasEosVirial.corrTypeB modelB)
Initializes the solver without providing parameters vector p to the model
|
boolean |
isConsistent(double P,
double V,
double T)
Checks if state variables are all consistent with the eos
|
void |
setModelB(GasEosVirial.corrTypeB modelB)
Sets the model to be used for the evaluation of 2nd virial coefficient B
|
evalFugacityCoefficientL, evalFugacityL, evalFugacityV, evalResidualEnthalpyL, evalResidualEntropyL, evalResidualGibbsFreeEnergyL, evalResidualGibbsFreeEnergyV, evalResidualInternalEnergyV, evalSatPressure, evalZ, evalZl, evalZl, evalZv, getP, getPsat, getT, getVl, getVv, setP, setPsat, setT, setVl, setVvapplyMixRule, getConvAdd, getConvFact, getDescription, getFixedValue, getInputRanges, getLabel, getOutputRanges, getPar, getStatus, setConvAdd, setConvFact, setDescription, setFixedValue, setLabel, setPar, setParameterByIndex, toStringSummarypublic GasEosVirial.corrTypeB getModelB()
public void setModelB(GasEosVirial.corrTypeB modelB)
modelB - the selected correlation for Bpublic void init(double[] aPc,
double[] aVc,
double[] aTc,
double[] aAcFac,
double[] y,
GasEosVirial.corrTypeB modelB)
aPc - array with pure components critical pressureaVc - array with pure components critical volumeaTc - array with pure components critical temperatureaAcFac - array with pure components acentric factory - array with vapor phase mole fractionsmodelB - choosen model for the evaluation of 2nd virial coefficientpublic void init(double[] aPc,
double[] aVc,
double[] aTc,
double[] aAcFac,
double[] y,
double[] p,
GasEosVirial.corrTypeB modelB)
aPc - array with pure components critical pressureaVc - array with pure components critical volumeaTc - array with pure components critical temperatureaAcFac - array with pure components acentric factory - array with vapor phase mole fractionsp - array with parameters for the calculation of 2nd virial coefficientmodelB - the choosen model for the evaluation of 2nd virial coefficientpublic double evalTemperature(double P,
double V)
GasEosevalTemperature in class GasEospublic double evalPressure(double V,
double T)
GasEosevalPressure in class GasEospublic double evalVaporVolume(double P,
double T)
GasEosevalVaporVolume in class GasEospublic double evalLiquidVolume(double P,
double T)
GasEosevalLiquidVolume in class GasEospublic double evalResidualEntropyV(double P0,
double P,
double T)
GasEosevalResidualEntropyV in class GasEosP0 - reference pressure, normally 0P - system pressureT - system temperaturepublic double evalResidualEnthalpyV(double P0,
double P,
double T)
GasEosevalResidualEnthalpyV in class GasEosP0 - reference pressure, normally 0P - system pressureT - system temperaturepublic double evalFugacityCoefficientV(double P0,
double P,
double T)
GasEosevalFugacityCoefficientV in class GasEosP0 - reference pressure, normally 0P - system pressureT - system temperaturepublic boolean isConsistent(double P,
double V,
double T)
GasEosisConsistent in class GasEosP - pressure [Pa]V - colume [m3/mol]T - temperature [K]public double getB()
public double getB2()