FiberSecVis#
- class opstool.vis.FiberSecVis(ele_tag, sec_tag, results_dir='opstool_output', line_width=0.75, line_color='k', colormap='viridis', opacity=0.75)[source]#
A class to vis the fiber section in OpenSeesPy.
Parameters#
- ele_tag: int
The element tag to which the section is to be displayed.
- sec_tag: int
Which integration point section is displayed, tag from 1 from segment i to j.
- results_dir: str, default=”opstool_output”
The dir that results saved.
- line_width: float, default = 0.75
The line width of mesh edges.
- line_color: str, default = “k”
The color of mesh edges.
- colormap: str, default = “jet”
Color map used to display the response.
- opacity: float, default=0.75
Transparency of mesh.
Returns#
FiberSecVis instance.
- animation(output_file, input_file='FiberRespStepData-1.hdf5', show_variable='strain', show_mats=None, framerate=24)[source]#
fiber section response animation.
Parameters#
- output_file: str
The output file name, must end with .gif.
- input_file: str, default=’FiberRespStepData-1.hdf5’
The file name that fiber section responses saved.
- show_variable: str, default=’strain
Response type to display, optional “stress” or “strain”.
- show_mats: Union[int, list[int], tuple[int]], default=None
Mat tag to dispaly. If None, all tags will display.
- framerate: int, default=24
The number of frames per second.
Returns#
None
- resp_vis(input_file='FiberRespStepData-1.hdf5', step=None, show_variable='strain', show_mats=None)[source]#
fiber section response vis.
Parameters#
- input_file: str, default=’FiberRespStepData-1.hdf5’
The file name that fiber section responses saved.
- step: int, default = None
Analysis step to display. If None, the step that max response; If -1, the final step; Else, the other step.
- show_variable: str, default = ‘srain’
Response type to display, optional “stress” or “strain”.
- show_mats: Union[int, list[int], tuple[int]]
matTags to dispaly. matTag is the material tag defined in openseespy, bu it must in the section. If None, all tags will display.
Returns#
None
- sec_vis(input_file='FiberData.hdf5', mat_color=None)[source]#
plot the fiber section.
Parameters#
- input_file: str, default=’FiberData.hdf5’
The file name that fiber section data saved.
Warning
Be careful not to include any path, only filename, the file will be saved to the directory
results_dir.- mat_color: dict
Dict for assign color by matTag, {matTag1:color1,matTag2:color2, and so on} matTag is the material tag defined in openseespy, bu it must in the section.
Returns#
None