entropy#

ens_calculator.entropy(source_parts: List[ENS_PART] | List[int] | List[str], density: ENS_VAR | str | int | float, total_energy: ENS_VAR | str | int, velocity: ENS_VAR | str | int, ratio: ENS_VAR | str | int | float, gas: ENS_VAR | str | int | float, free_density: ENS_VAR | str | int | float, free_speed_of_sound: ENS_VAR | str | int | float, output_varname: str | None = None) ENS_VAR#

Computes a scalar variable defined as the entropy given total energy, density, velocity, ratio of specific heats, gas constant, and freestream values

Args:
source_parts:

Any part(s) or a part number.

density:

A density variable or a value.

total_energy:

A total energy variable.

velocity:

A velocity variable.

ratio:

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

gas:

A gas constant variable or value(>0.0).

free_density:

A ‘freestream density’ variable or a value(>=1.0).

free_speed_of_sound:

A ‘freestream speed of sound’ variable or a value(>=1.0).

output_varname:

The name of the newly created variable

Returns:

New ENS_VAR instance or None

Note:

See Entropy() for function details.