energyt#

ens_calculator.energyt(source_parts: List[ENS_PART] | List[int] | List[str] | ENS_PART | int | str, density: ENS_VAR | str | int | float, pressure: ENS_VAR | str | int, velocity: ENS_VAR | str | int, ratio: ENS_VAR | str | int | float, output_varname: str | None = None) ENS_VAR#

Compute a scalar variable defined as the total energy per unit volume given density, pressure, velocity, and ratio of specific heats.

Args:
source_parts:

Any part(s) or a part number.

density:

A density variable or a value.

pressure:

A pressure variable.

velocity:

A velocity variable.

ratio:

A ‘ratio of specific heats’ variable or a value.

output_varname:

The name of the newly created variable

Returns:

New ENS_VAR instance or None

Note:

See EnergyT() for function details.