Click or drag to resize

HelmholtzEquationOfStateMassDensity_FromPressureAndTemperature(Double, Double, Double) Method

Gets the mass density for 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 virtual double MassDensity_FromPressureAndTemperature(
	double pressure,
	double temperature,
	double relativeAccuracy = 1E-06
)

Parameters

pressure  Double
The pressure in Pa.
temperature  Double
The temperature in Kelvin.
relativeAccuracy  Double  (Optional)
The target relative accuracy of the result.

Return Value

Double
The mass density in kg/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