Fiber section mesh generation¤
This live script is written as a guided walkthrough for a post-processing workflow. It focuses on retrieving, organizing, and visualizing model or response data after an OpenSees analysis. Read the text cells first, then run each code cell in order so that the variables, model state, and recorded results are available for the later sections.
Here we demonstrate how to generate fiber cross sections using Matlab and OpenSees.
The Partial Differential Equation Toolbox - MATLAB is required.
1 | |
1 2 3 4 | |
Output
FiberSectionMesh with properties:
parts: [1x1 struct]
rebars: []
secTag: NaN
meshFibers: []
sectionProps: []
EXAMPLE 1 — Steel section¤
This section defines the material or section properties. These choices control stiffness, strength, and the nonlinear behavior observed later.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
Output
Meshing complete: 146 fiber cells generated.
1 2 3 | |
Output
========== Cross-Section Properties ==========
Total area A = 8192.0000
Centroid Cy = 0.0000
Cz = -0.0000
2nd moment (horiz) Iy = 229587479.4079
2nd moment (vert) Iz = 17296957.8172
Product of inertia Iyz = 6713.8078
Radius of gyration ry = 167.4091
rz = 45.9505
Principal inertia I1 = 229587479.6202
I2 = 17296957.6049
Principal angle theta = 89.9982 deg
===============================================
1 2 | |
1 2 3 | |
Output
build: section Fiber 1 written to ops (146 solid fibers, GJ = 1e+12).
1 | |
1 | |
EXAMPLE 2 — RC box section¤
Matlab's geometric functions: Polygonal Shapes - MATLAB & Simulink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | |
1 2 3 | |
Output
Meshing complete: 1268 fiber cells generated.
1 2 3 | |
Output
========== Cross-Section Properties ==========
Total area A = 2080000.0000
Centroid Cy = -0.0000
Cz = 0.0000
2nd moment (horiz) Iy = 641139454973.3724
2nd moment (vert) Iz = 1115233182245.6404
Product of inertia Iyz = -31533.9437
Radius of gyration ry = 555.1938
rz = 732.2362
Principal inertia I1 = 1115233182245.6423
I2 = 641139454973.3702
Principal angle theta = -0.0000 deg
===============================================
1 2 | |
1 2 3 | |
Output
build: section Fiber 2 written to ops (1268 solid fibers, 84 rebar fibers, GJ = 1e+12).
1 | |
1 | |