Read Local States#

After dehomogenization and/or failure analysis, local state fields (strain/stress/displacement/failure index/strength ratio) of the SG can be read using the sgio.readOutputState() function.

Read VABS Element Local Strain and Stress Fields and Visualize in Gmsh#

Consider the following VABS output file (sgio/examples/files/cs_box_t_vabs41.sg.ELE) after dehomogenization. This file contains the local strains and stresses of each element of the cross-section, in both the global and material coordinate systems.

To read the data, we need to first read the cross-sectional data using sgio.read(). Then read the local state fields using sgio.readOutputState(). The returned object is a list of N sgio.model.StateCase objects corresponding to N load cases.

Then, we need to add the local state fields to the cross-sectional data.

Finally, we need to write the cross-sectional data to a Gmsh file.

The following figure shows the visualization of the local stress field of the cross-section in the material coordinate system.

../../examples/files/cs_box_t_vabs41_ele_sm11.msh.png