13.2.7. anim_defo (ops_vis)

ops_vis.anim_defo(Eds, timeV, sfac, nep=17, unDefoFlag=1, fmt_undefo='g--', interpFlag=1, endDispFlag=1, fmt_interp='b-', fmt_nodes='b-', az_el=(-60.0, 30.0), fig_lbrt=(0.04, 0.04, 0.96, 0.96), fig_wi_he=(16.0, 10.0), xlim=[0, 1], ylim=[0, 1])[source]

Make animation of the deformed shape computed by transient analysis

  • 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_interp (string) – 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.
  • fmt_nodes (string) – format string for the marks of element ends
  • 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



See also: