pressure#

shock.pressure(p0: Any) int#

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

This variable is used throughout the shock calculation. Although the specification of this variable is optional, if it exists, its specification will save the creation of a temporary variable. If this variable is not specified or does not exist, it will be created on-the-fly temporarily as needed from dependent density, energy, velocity or momentum, and ratio of specific heats variables and values.
Args:
p0:

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

Examples:
ensight.variables.activate("Pressure")
ensight.shock.select_default()
ensight.part.modify_begin()
ensight.shock.pressure("Pressure")
ensight.part.modify_end()
Returns:

zero on success, non-zero on error