Click or drag to resize

HelmholtzEquationOfStateMoleDensity_FromPressureAndTemperature(Double, Double, Double, Double) Method

Gets the mole density from a given pressure and temperature.

Namespace: Altaxo.Science.Thermodynamics.Fluids
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
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

Double
The 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