public class ViscosityMixRuleLiq extends ViscosityModel
Constructor and Description |
---|
ViscosityMixRuleLiq() |
Modifier and Type | Method and Description |
---|---|
double |
applyMixRule()
Applies mixing rule once viscosity of each species is available
ln(mu_mix) = sum(x_i * mu_i)
See Perry - 2-367 |
double |
evalViscosity(double t,
double p)
Applies mixing rule evaluating also species viscosity
ln(mu) = sum_i(x_i * ln(mu_i)) mu = exp(ln(mu))
|
void |
init(double[] molX,
ChemicalSpecies[] species)
Initialization providing chemical species with properly initialized
viscosity model inside.
|
void |
init(double[] x,
double[] mu)
Initialize with species viscosities from external calculation
|
evalViscosity
getConvAdd, getConvFact, getDescription, getFixedValue, getInputRanges, getLabel, getOutputRanges, getPar, getStatus, setConvAdd, setConvFact, setDescription, setFixedValue, setLabel, setPar, setParameterByIndex, toStringSummary
public void init(double[] x, double[] mu)
x
- array of mole fractionsmu
- array of viscositiespublic void init(double[] molX, ChemicalSpecies[] species)
molX
- species
- public double evalViscosity(double t, double p)
evalViscosity
in class ViscosityModel
public double applyMixRule()
ln(mu_mix) = sum(x_i * mu_i)
See Perry - 2-367applyMixRule
in class PropertyEquation