RealTimeObj Command (Plot at Each desired Time Step)#
Using this command users be able to plot the model and watch the deformation of the model during the analysis (PlotAnime creates animation at the end of analysis But this command shows the deformation at each time step). To use this command :
User befor start of analysis should create the plot using RealTimeObj command.
After creating the mentioned plot, by calling RealTimeUpdate command at each desired step the created plot (using RealTimeObj) will be updated.
Attention: This command currently availables only on Jupyter Notebook Editors
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.RealTimeObj(plotmode=1, **kwargs) #Create the Plot
for i in range(numberOfSteps):
ops.analyze(1,0.01) #One step analysis
bz.RealTimeUpdate(**RUkwargs) #Update the created plot
RealTimeObj 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)
- **kwargs
Stands for other options that user can use to provide desired changes in the plot. In the following the existing options are described.
- draw_wire_shadow Option
- draw_nodes Option
- show_nodes_tag Option
- show_elemens_tag Option
- onhover_message Option
- title Option
- fig_width and fig_height Options
- image_type and image_filename Options
- plot_legends Option
- vertical_axis Option
- show_constrained and not_show_retained_list and constrained_size Options
- Nodes_Size_tag and Nodes_Size Options
- Nodes_color_tag and Nodes_color Options
- Element_color_tag and Elements_color Options
- Elements_width Option
- supports_size and show_supports_desc Options
RealTimeUpdate command options#
- **RUkwargs
Stands for other options that user can use to provide desired changes in the plot. In the following the existing options are described.