component#

contour.component(p0: str) int#

If contouring by a vector specifies component or magnitude.

If not specified “magnitude” is used.
Args:
p0:

‘vector_component’

  • One of the following:

  • x

  • y

  • z

  • magnitude

Examples:
#
# Create contours of the x-component
# of velocity on part 2
#
ensight.part.select_begin(2)
ensight.contour.begin()
ensight.contour.variable("velocity")
ensight.contour.component("x")
ensight.contour.end()
ensight.contour.create()
Returns:

zero on success, non-zero on error