mach#
- shock.mach(p0: Any) int #
Specify the mach 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. If this variable is not specified or does not exist, it will be created on-the-fly temporarily as needed from dependent density, energy or pressure, velocity or momentum, and ratio of specific heats variables and values.- Args:
- p0:
‘variable_name’ name of the mach variable (the default name <none> means to use nothing)
- Examples:
ensight.variables.activate("Mach") ensight.vortexcore.select_default() ensight.part.modify_begin() ensight.vortexcore.density("Mach") ensight.part.modify_end()
- Returns:
zero on success, non-zero on error