HelmholtzEquationOfStateMoleDensity_FromPressureAndTemperature(DimensionfulQuantity, DimensionfulQuantity, Double) Method |
Get the mole density for a given pressure and temperature.
Namespace: Altaxo.Science.Thermodynamics.FluidsAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntaxpublic virtual DimensionfulQuantity MoleDensity_FromPressureAndTemperature(
DimensionfulQuantity pressure,
DimensionfulQuantity temperature,
double relativeAccuracy = 1E-06
)
Parameters
- pressure DimensionfulQuantity
- The pressure (compatible with Pa).
- temperature DimensionfulQuantity
- The temperature (compatible with Kelvin).
- relativeAccuracy Double (Optional)
- The target relative accuracy of the result. Default is 1E-6.
Return Value
DimensionfulQuantityThe mole density (SIUnit: mol/m³).
RemarksThe density has to be calculated iteratively, using Newton-Raphson.
Therefore we need the target accuracy.
The iteration is ended if the pressure calculated back from the density compared with the pressure given in the argument
is within the relative accuracy.
See Also