plot_model¶
- opstool.vis.pyvista.plot_model(odb_tag=None, show_node_numbering=False, show_ele_numbering=False, style='surface', color=None, show_bc=True, bc_scale=1.0, show_link=True, show_mp_constraint=True, show_constraint_dofs=False, show_nodal_loads=False, show_ele_loads=False, load_scale=1.0, show_local_axes=False, local_axes_scale=1.0, show_outline=False, show_legend=False, cpos='iso')[source]¶
Geometric model visualization based on
pyvista.- Return type:
Plotter
Parameters¶
- odb_tag: Union[int, str], default: None
Tag of output databases (ODB) to be visualized. If None, data will be extracted from the current running memory.
- show_node_numbering: bool, default: False
Whether to display node tag labels.
- show_ele_numbering: bool, default: False
Whether to display element tag labels.
- style: str, default: surface
Visualization mesh style of surfaces and solids. One of the following: style=’surface’, style=’wireframe’, style=’points’, style=’points_gaussian’. Defaults to ‘surface’. Note that ‘wireframe’ only shows a wireframe of the outer geometry.
- color: str, default: black
Model display color.
- show_bc: bool, default: True
Whether to display boundary supports.
- bc_scale: float, default: 1.0
Scale the size of boundary support display.
- show_link: bool, default: True
Whether to show link elements.
- show_mp_constraint: bool, default: True
Whether to show multipoint (MP) constraint.
- show_constraint_dofs: bool, default: False
Whether to show dofs of mp-constraints.
- show_nodal_loads: bool, default: False
Whether to show nodal loads.
- show_ele_loads: bool, default: False
Whether to show element loads.
- load_scale: float, default: 1.0
Scale the size of load arrow presentation.
- show_local_axes: bool, default: False
Whether to display element local axes, including
beam-column,link, andshellelements.- local_axes_scale: float, default: 1.0
Scales the presentation size of the local axes.
- show_outline: bool, default: False
Whether to display the outline of the model.
- show_legend: bool, default: False
Whether to show legend.
- cpos: str, default: iso
Model display perspective, optional: “iso”, “xy”, “yx”, “xz”, “zx”, “yz”, “zy”. If 3d, defaults to “iso”. If 2d, defaults to “xy”.
Returns¶
Plotting object of PyVista to display vtk meshes or numpy arrays. See pyvista.Plotter.
You can use Plotter.show. to display the plotting window.
You can also use Plotter.export_html. to export this plotter as an interactive scene to an HTML file.