The latest Released version: 0.96 - Email Address: BraineryWiz@Gmail.com.

PlotAnime Command (Plot Animation)#

PlotAnime is the command that should be used to show an animation of recorded steps. Users initially should record the desired steps using Record() command. The Record() command records the required data for creating animation and in each desired step user should call the Record() command. Finally, when all desired steps recording finished, by calling PlotAnime command, the animation of the plot will be shown. Using RecordReset() command the recorded steps will be reset.

The structure of the command#
import openseespy.opensees as ops
import BraineryWiz as bz

#...
#codes of creating OpenSees model
#...

numberOfSteps=100    #Imagine the number of steps that want to be recorded are 100 steps

bz.RecorderReset()   #Reset the recorder to prevent adding new steps (slides) to previous recorded slides

for i in range(numberOfSteps):

     ops.analyze(1,0.01) #One step analysis
     bz.Record()         #Record the analyzed step


bz.PlotAnime (plotmode=1, dt=0.01, **kwargs) #Show animation of the recorded steps

Click on Pause botton and then click on Play button on the below animation to watch the created animation as a sample.

ConstrainedFrame Elements BraineryWiz AnimationlllllllllPlayPause

PlotAnime command options#

  • plotmode

    For different python editors there is a need to consider some settings to plot the figure. There are different modes to plot figures and if your editor does not show the figure change the number of the mode! (1,2,3,4,5,6)

  • dt

    Determines the time distance between steps. (Default=0.01)

  • **kwargs

    Stands for other options that user can use to provide desired changes in the plot. In the following the existing options are described.

PlotAnime Related Commands