enthalpy#

shock.enthalpy(p0: Any) int#

Specify the enthalpy variable to use in creating/updating a shock part or the default attributes.

This variable is not needed unless you are computing the shock via the Region method and transient (moving) shocks are specified via the “test: toggle_moving_shock” command.
Args:
p0:

‘variable_name’ name of the enthalpy variable (the default name <none> means to use nothing).

Examples:
ensight.variables.activate("Enthalpy")
ensight.shock.select_default()
ensight.part.modify_begin()
ensight.shock.density("Enthalpy")
ensight.part.modify_end()
Returns:

zero on success, non-zero on error