total_energy#
- shock.total_energy(p0: Any) int #
Specify the total energy variable to use in creating/updating a shock part or the default attributes.
Although the specification of this variable is optional, if it exists, its specification will save the creation of a temporary variable.This variable is required for the creation of Pressure if Pressure does not exist. If Pressure exists, no need to create this variable, unless you would like to use this as the shock creation variable for the Surface method.- Args:
- p0:
‘variable_name’ name of the total energy variable (the default <none> means to use nothing)
- Examples:
ensight.variables.activate("TotalEnergy") ensight.vortexcore.select_default() ensight.part.modify_begin() ensight.shock.velocity("TotalEnergy") ensight.part.modify_end()
- Returns:
zero on success, non-zero on error