Click or drag to resize

HelmholtzEquationOfStateMassDensity_FromPressureAndTemperature(DimensionfulQuantity, DimensionfulQuantity, Double, DimensionfulQuantity) Method

Gets the mass density from a given pressure and temperature.

Namespace: Altaxo.Science.Thermodynamics.Fluids
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public DimensionfulQuantity MassDensity_FromPressureAndTemperature(
	DimensionfulQuantity pressure,
	DimensionfulQuantity temperature,
	double relativeAccuracy,
	DimensionfulQuantity massDensityStartValue
)

Parameters

pressure  DimensionfulQuantity
The pressure (compatible with Pa).
temperature  DimensionfulQuantity
The temperature (compatible with Kelvin).
relativeAccuracy  Double
The target relative accuracy of the result.
massDensityStartValue  DimensionfulQuantity
The start value for the density to search for (compatible with kg/m³).

Return Value

DimensionfulQuantity
The mass density in (SIUnit: 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