density#
- ens_calculator.density(source_parts: List[ENS_PART] | List[int] | List[str], pressure: ENS_VAR | str | int, temperature: ENS_VAR | str | int, gas_constant: ENS_VAR | str | int | float, output_varname: str | None = None) ENS_VAR #
Computes a scalar variable defined as the density as a function of pressure, temperature, and gas constant
- Args:
- source_parts:
Any part(s) or a part number.
- pressure:
A pressure variable.
- temperature:
A temperature variable.
- gas_constant:
A specific gas constant variable or a constant value.
- output_varname:
The name of the newly created variable
- Returns:
New ENS_VAR instance or None
- Note:
See Density() for function details.