tensor#

class ansys.api.pyensight.ensight_api.tensor(session: Session)#

Class wrapper for EnSight tensor module

This class acts as a proxy for the EnSight Python module ensight.tensor

Methods

tensor.begin()

Delimit the modifications for tensor parts.

tensor.color_by(p0)

Sets the method by which a tensor glyph part is colored.

tensor.compression_line_width(p0)

Sets the line width (in pixels) that will be used for the compression portion of a tensor glyph if the "tensor: line_width_by" command method is set to "direction".

tensor.compression_rgb(p0, p1, p2)

Sets the color that will be used for the compression portion of a tensor glyph if the "tensor: color_by" command method is set to "direction".

tensor.create()

Causes a tensor glyph part to be created according to previously set attributes or defaults.

tensor.display_compression(p0)

Specifies whether the compression portion of a tensor glyph will be displayed or not.

tensor.display_major(p0)

Specifies whether the major, middle, or minor eigenvectors of a tensor glyph will be displayed.

tensor.display_middle(p0)

Specifies whether the major, middle, or minor eigenvectors of a tensor glyph will be displayed.

tensor.display_minor(p0)

Specifies whether the major, middle, or minor eigenvectors of a tensor glyph will be displayed.

tensor.display_tension(p0)

Specifies whether the tension portion of a tensor glyph will be displayed.

tensor.end()

Delimit the modifications for tensor parts.

tensor.line_width_by(p0)

Sets the method by which a tensor glyph part's line width is controlled.

tensor.scale_factor(p0)

Sets the scale factor to be applied to the tensor glyph.

tensor.select_default()

Sets default as the current tensor glyph selection, so subsequent attribute modifications will affect the default.

tensor.tension_line_width(p0)

Sets the line width (in pixels) that will be used for the tension portion of a tensor glyph if the "tensor: line_width_by" command method is set to "direction".

tensor.tension_rgb(p0, p1, p2)

Sets the color that will be used for the tension portion of a tensor glyph if the "tensor: color_by" command method is set to "direction".

tensor.tip_shape(p0)

Sets the shape of the tips on the tensor glyphs

tensor.tip_size(p0)

Sets the size of the tips on the tensor glyphs

tensor.tip_size_rep(p0)

Tensor: tip_size_rep

tensor.variable(p0)

Specifies the name of the tensor variable that the tensor glyphs will represent.