Skip to content

Junjun1guo/SectionMCPy

Repository files navigation

SectionMCPy

python programming based moment curvature analysis for structural sections

Download sectionMCPy from (https://fbs.sh/JunjunGuo/sectionMCPy/sectionMCPySetup.exe) (windows version)

[Citation] Guo, Junjun, Chao Chen, Hui Jiang, Penghui Zhang, Xingji Lu, Chen Liang, and Xinzhi Dang. "SectionMCPy: Python programming-based moment-curvature analysis for cross-sections." SoftwareX 31 (2025): 102365.(https://www.sciencedirect.com/science/article/pii/S2352711025003310)



Tutorials-1

Circle section example

  1. Prepare your own section based on the template DXF file (circle_solid.dxf in the current example). The scale factor is 1, and the unit is cm in the template. The border lines are drawn with a layer named "lines", and the reinforcing bars are drawn with layers named "bars_1", "bars_2", etc. The numbering of the bars must start from 1. Bars in different layers mean having different properties, such as diameter or material. (see Figure 1.1)
  2. Then, open the program, click the "fiber mesh" button, and select the working directory. Click the "dxf section" button or the "open database" button. The first selection means conducting new sectional fiber discretization, and the second selection means displaying the generated section fibers that are stored in the database. In the current example, a new analysis is considered, and the "dxf section" button is selected. Enter the parameters based on your section, and use the provided tips to assist with entering parameter values. After input parameters, click the "mesh fiber!" button to discretize the section, and the generated fibers are automatically saved in the database. Moreover, users can also output the generated fibers in txt format by clicking the "output mesh!" button. (see Figure 1.2)
  3. Click the "moment curvature analysis" button to conduct moment curvature analysis for the section. Select the "circle" radio button for the current example, and input the necessary parameter values based on the tips. It should be noted that the user rebar materials used in the current example (https://openseespydoc.readthedocs.io/en/latest/index.html) and the material tags correspond to the rebar numbering in the DXF file. Then, click "start analysis!" to conduct moment curvature analysis. (see Figure 1.3)
  4. After finishing the analyses, users can switch to the "moment curvature curve" page and the "fiber response" page to check the result figures. (see Figure 1.4)

Figure 1.1

Figure 1.2

Figure 1.3

Figure 1.4


Tutorials-2

Polygon section example

  1. Prepare your own section based on the template DXF file (polygon_solid.dxf in the current example). The scale factor is 1, and the unit is cm in the template. The border lines are drawn with a layer named "lines", and the reinforcing bars are drawn with layers named "bars_1", "bars_2", etc. The numbering of the bars must start from 1. Bars in different layers mean having different properties, such as diameter or material. (see Figure 2.1)
  2. Then, open the program, click the "fiber mesh" button, and select the working directory. Click the "dxf section" button or the "open database" button. The first selection means conducting new sectional fiber discretization, and the second selection means displaying the generated section fibers that are stored in the database. In the current example, a new analysis is considered, and the "dxf section" button is selected. Enter the parameters based on your section, and use the provided tips to assist with entering parameter values. After input parameters, click the "mesh fiber!" button to discretize the section, and the generated fibers are automatically saved in the database. Moreover, users can also output the generated fibers in txt format by clicking the "output mesh!" button. (see Figure 2.2)
  3. Click the "moment curvature analysis" button to conduct moment curvature analysis for the section. Select the "rectangle" radio button for the current example, and input the necessary parameter values based on the tips. Then, click "start analysis!" to conduct moment curvature analysis. (see Figure 2.3)
  4. After finishing the analyses, users can switch to the "moment curvature curve" page and the "fiber response" page to check the result figures. (see Figure 2.4)

Figure 2.1

Figure 2.2

Figure 2.3

Figure 2.4

About

python programming based moment curvature analysis for structural sections

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages