velocity#

shock.velocity(p0: Any) int#

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

Since the computation of shock depends on velocity, either the velocity variable must be defined or both the density and momentum variables must be defined to obtain the velocity variable.
Args:
p0:

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

Examples:
ensight.variables.activate("Velocity")
ensight.shock.select_default()
ensight.part.modify_begin()
ensight.shock.velocity("Velocity")
ensight.part.modify_end()
Returns:

zero on success, non-zero on error