HelmholtzEquationOfStateMoleDensity_FromPressureAndTemperature(Double, Double, Double, Double) Method |
Gets the mole density from a given pressure and temperature.
Namespace: Altaxo.Science.Thermodynamics.FluidsAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public double MoleDensity_FromPressureAndTemperature(
double pressure,
double temperature,
double relativeAccuracy,
double moleDensityStartValue
)
Parameters
- pressure Double
- The pressure in Pa.
- temperature Double
- The temperature in Kelvin.
- relativeAccuracy Double
- The target relative accuracy of the result.
- moleDensityStartValue Double
- The start value for the density to search for.
Return Value
DoubleThe density in mol/m³
Remarks The 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