ospgrillage.postprocessing.plot_defo#

plot_defo(ospgrillage_obj, result_obj=None, member: str | None = None, component: str | None = None, option: str = 'nodes', loadcase: str | None = None)#

Plots displacements of the provided OspGrillage and xarray (result) objects for a specified component and LoadCase’s.

Note

For “shell_beam” model type, the function only plots the force diagrams for beam elements only.

Parameters:
  • ospgrillage_obj (OspGrillage) – Grillage model object

  • result_obj (xarray DataSet) – xarray DataSet of results

  • component (str) – Force component to plot

  • member (str) – member

  • option (str) – option of get_element(), either “nodes” or “element” (Default nodes)

  • loadcase (str) – name string of load case to plot. If not provided, plots from first load case in the order of xarray loadcase coordinate

Returns:

Matplotlib figure

Return type:

(Figure)