density#

shock.density(p0: Any) int#

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

This variable is assigned automatically if the variable name <Density> exists.
Since the computation of separation and attachment lines depend on density, either the density variable must be defined or both the pressure and temperature variables must be defined to obtain the density variable.
Args:
p0:

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

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

zero on success, non-zero on error