Plotting

These functions are for visualizing simulation results.

Trajectory

GeometricallyExactString.plotTipTrajectory(x, T, nt)

Plot the x-position of the tip of the string.

Parameters:
  • x (jnp.ndarray) – solution trajectory.

  • T (float) – simulation time.

  • nt (int) – number of time steps.

Return type:

None.

Animation

GeometricallyExactString.createAnimation(x, string, T, nt)

Create an animation of the y-z plane.

Parameters:
  • x (jnp.ndarray) – positions of all nodes of the string over time.

  • string (GES) – Geometrically exact string.

  • T (float) – simulation time.

  • nt (int) – number of time steps.

Return type:

None.