get_directions_plotter#
- ansys.acp.core.get_directions_plotter(*, model, mesh=None, components, culling_factor=1, length_factor=1.0, **kwargs)#
Get a pyvista plotter that shows the specified directions on the mesh.
- Parameters:
model (Model) – ACP model. Determines the average element size used for scaling the arrows. Unless explicitly specified, the model also determines the mesh to plot.
mesh (MeshData | None) – Mesh defining the scope of the plot. If not provided, the full mesh of the model is used.
components (Sequence[VectorData | None]) – List of components to plot.
culling_factor (int) – If set to a value other than
1
, add only every n-th data point to the PyVista object. This is useful especially for vector data, where the arrows can be too dense.length_factor (float) – Factor to scale the length of the arrows.
kwargs (Any) – Keyword arguments passed to the PyVista object constructor.
- Return type:
Examples using get_directions_plotter#
CDB to PyMechanical shell workflow