HelmholtzEquationOfStateMassDensity_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 MassDensity_FromPressureAndTemperature(
double pressure,
double temperature,
double relativeAccuracy,
double massDensityStartValue
)
Parameters
- pressure Double
- The pressure in Pa.
- temperature Double
- The temperature in Kelvin.
- relativeAccuracy Double
- The target relative accuracy of the result.
- massDensityStartValue Double
- The start value for the density to search for (kg/m³).
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