anim_defo

opsvis.anim_defo(Eds, timeV, sfac, nep=17, unDefoFlag=1, fmt_defo={'color': 'blue', 'linestyle': 'solid', 'linewidth': 1.2, 'marker': '', 'markersize': 1}, fmt_undefo={'color': 'green', 'linestyle': (0, (1, 5)), 'linewidth': 1.2, 'marker': '', 'markersize': 1}, interpFlag=1, endDispFlag=1, az_el=(-60.0, 30.0), fig_wi_he=False, fig_lbrt=False, xlim=[0, 1], ylim=[0, 1], ax=False)[source]

Make animation of the deformed shape computed by transient analysis

Parameters
  • Eds (ndarray) – A 3d array (n_steps x n_eles x n_dof_per_element) containing the collected displacements per element for all time steps.

  • timeV (1darray) – vector of discretized time values

  • sfac (float) – scale factor

  • nep (integer) – number of evaluation points inside the element and including both element ends

  • unDefoFlag (integer) – 1 - plot the undeformed model (mesh), 0 - do not plot the mesh

  • interpFlag (integer) – 1 - interpolate deformation inside element, 0 - no interpolation

  • endDispFlag (integer) – 1 - plot marks at element ends, 0 - no marks

  • fmt_defo (dict) – format line string for interpolated (continuous) deformated shape. The format contains information on line color, style and marks as in the standard matplotlib plot function.

  • az_el (tuple) – a tuple containing the azimuth and elevation

  • fig_lbrt (tuple) – a tuple contating left, bottom, right and top offsets

  • fig_wi_he (tuple) – contains width and height of the figure

Examples:

Notes:

See also: