momentum#

sepattach.momentum(p0: Any) int#

Specify the momentum variable to use in creating/updating the default separation and attachment line part attributes and/or the selected separation and attachment line part(s).

This variable is assigned automatically if the variable name description <Momentum> exists. Since the computation of separation and attachment lines depend 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 momentum variable (the default <none> means to use nothing)

Examples:
ensight.variables.activate("Momentum")
ensight.sepattach.select_default()
ensight.part.modify_begin()
ensight.sepattach.momentum("Momentum")
ensight.part.modify_end()
Returns:

zero on success, non-zero on error