Next Article in Journal
Enhancing Pedestrian Satisfaction: A Quantitative Study of Visual Perception Elements
Previous Article in Journal
Ultimate Bearing Capacity of Vertically Uniform Loaded Strip Foundations near Slopes Considering Heterogeneity, Anisotropy, and Intermediate Principal Stress Effects
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Linear Seismic Analysis and Structural Optimization of Reinforced Concrete Frames Using OpenSeesPy

Escuela Profesional de Ingeniería Civil, Universidad Nacional Mayor de San Marcos, Lima 15081, Peru
*
Author to whom correspondence should be addressed.
Buildings 2025, 15(23), 4388; https://doi.org/10.3390/buildings15234388
Submission received: 21 August 2025 / Revised: 12 September 2025 / Accepted: 14 September 2025 / Published: 4 December 2025

Abstract

Seismic design of reinforced concrete buildings in highly active seismic regions is challenging, as structural members are often oversized due to conservative design practices, leading to inefficient use of materials. This study proposes an optimization methodology based on the Peruvian seismic code E.030, implemented with the OpenSeesPy library for modeling and numerical analysis. The methodology automates the linear analysis of frame structures through the parametrization of member dimensions, span lengths, and material properties. Optimization is carried out using the Hill Climbing algorithm, which iteratively explores design alternatives and verifies compliance with code requirements for interstory drift and base shear. Results show material savings of up to 20% in beams and columns. Although interstory drifts increased by 60–85% compared to the initial configuration, they remained within code limits. The methodology establishes a framework for integrating optimization techniques into the seismic design of reinforced concrete frame buildings.

1. Introduction

Reinforced concrete moment-resisting frames constitute a predominant structural system in regions of high seismicity. However, these systems often face issues related to the oversizing of structural elements, primarily due to conservative design practices and the lack of coordination between architectural and structural disciplines during the early design stage [1]. Such practices result in excessive material consumption and higher construction costs, ultimately reducing structural efficiency. To address these limitations, recent years have witnessed increasing reliance on digital tools and optimization methodologies within the architecture, engineering, and construction (AEC) industry. Several studies have demonstrated the potential of integrating metaheuristic algorithms, artificial intelligence, and building information modeling (BIM) to improve both efficiency and sustainability in structural design. For instance, ref. [2] emphasized the evolution of generative design towards models incorporating artificial intelligence, genetic algorithms, and topology optimization, which facilitate the development of efficient structural solutions that also ensure architectural adaptability. Along this line, ref. [3] proposed a conceptual structural design framework based on genetic algorithms that evaluates alternatives in terms of cost, sustainability, and technical feasibility. Their approach enabled the simultaneous minimization of carbon emissions and construction costs, thereby supporting decision-making during the early design stage. Similarly, ref. [4] presented an automated approach for reinforced concrete slab design that, through BIM integration and open-source programming tools, achieved significant reductions in design time while improving accuracy. Additional studies, such as those of [5], further demonstrated the effectiveness of metaheuristic optimization methods for large-scale steel design problems, underscoring the importance of structural optimization during preliminary stages. Recent reviews on seismic design improvements of steel frames highlight the need for innovative strategies that combine rehabilitation and optimization techniques [6]. In parallel, machine-learning-based surrogate modeling has gained attention, with approaches such as recurrent conditional GANs (rcGAN) enabling accurate prediction of nonlinear seismic responses and facilitating structural optimization [7]. A complementary line of research has explored hybrid methodologies that integrate artificial intelligence with multi-objective optimization algorithms to enhance seismic performance and cost efficiency in reinforced concrete and steel frame systems [8]. More recently, optimization-based approaches have been applied to the development of hybrid shell/frame systems for long-span buildings, where geometric form finding and shell thickness distribution are optimized to improve seismic efficiency and minimize material usage. Nonlinear dynamic analyses of these systems demonstrated favorable interaction effects, with suspended steel frames acting as tuned mass dampers that significantly reduce stresses and displacements in the shell, highlighting the potential of optimization-driven methodologies for advancing sustainable seismic design [9]. Parallel to these developments, the adoption of open-source simulation platforms has gained relevance. In particular, OpenSeesPy has emerged as a powerful Python 3.9.13 interface for structural analysis, overcoming limitations of the legacy TCL environment. Recent contributions [10] highlighted the advantages of the opseestools library, which streamlines modeling, analysis, and post-processing within Python. Likewise, ref. [11] developed opstool, a complementary library that improves the efficiency of nonlinear simulations by automating workflows and integrating scientific libraries. Additional advances, such as OPS-ITO [12], combined isogeometric analysis and topology optimization within OpenSees, enabling the modeling of complex geometries and advancing sustainable design practices. Other applications have validated the capabilities of OpenSees for simulating reinforced concrete shear walls [13] and unreinforced masonry structures [14], thereby confirming its reliability for both conventional and innovative structural systems. Despite these advances, the automation of seismic analysis combined with optimization strategies for reinforced concrete frame structures remains limited, particularly under regional seismic design codes such as the Peruvian Seismic Code E.030 [15]. Most contributions in the literature have focused either on nonlinear modeling or on conceptual optimization frameworks, leaving a gap in practical methodologies that integrate automated linear analysis and optimization techniques tailored to real building configurations. In light of this background, the present study develops a computational model for the automated analysis and optimization of reinforced concrete frame structures using the OpenSeesPy library in combination with a Hill Climbing algorithm. The proposed approach, implemented in Python and applied to case studies representative of Lima, aims to improve the efficiency of preliminary structural design by reducing oversizing, lowering material consumption, and ensuring compliance with seismic safety requirements. In doing so, this research provides a practical foundation for advancing towards more sophisticated methodologies that incorporate nonlinear effects, seismic risk assessment, and long-term deterioration mechanisms.

2. Methodology

Currently, OpenSeesPy is a Python library that enables structural analysis of buildings through the finite element method. This tool allows the evaluation of structural performance under both static and dynamic loads, making it particularly useful for the development of advanced applications in structural engineering. The parametric model developed automates the generation and analysis of multiple frame system configurations, varying in structural geometry, member dimensions, and material properties. In this study, the evaluation is restricted to linear analysis, since the Peruvian Seismic Code E.030 establishes compliance criteria primarily based on elastic response parameters such as interstory drift and base shear. Complementarily, the Peruvian Load Code E.020 [16] specifies the gravitational actions considered in the model. Although the present implementation relies on the provisions of the Peruvian seismic code E.030 and load code E.020, the procedure is not limited to this regulatory framework. The response spectra were represented as mathematical functions defined by code parameters, which allows the methodology to be adapted to other seismic design codes by modifying these definitions accordingly. Regarding the optimization procedure, although more robust optimization methods exist, they often involve higher computational cost or complex sensitivity requirements. In this work, the Hill Climbing algorithm was adopted for its accessibility and efficiency, enabling rapid exploration of structural alternatives under the linear framework imposed by the Peruvian code. The model must comply with the seismic-resistant criteria of the Peruvian Seismic Code E.030, after which the Hill Climbing algorithm is applied to optimize the structural geometry. As illustrated in Figure 1, a logical sequence of steps is followed to obtain the results.

2.1. Geometric Definition and Structural Parameters

A regular square-plan reinforced concrete space frame system was considered, representative of mid-rise buildings in Lima, Peru. The building consists of four stories, with three bays in the X direction and four bays in the Y direction. Table 1 summarizes the adopted geometric parameters.
The model was automatically generated in OpenSeesPy, defining the nodes and elements according to the adopted configuration. Figure 2 shows the three-dimensional frame model with node and element numbering, providing a clear view of the structural grid and connectivity. For better interpretation, Figure 3 presents an extruded view, highlighting the volumetric representation of beams and columns.

2.2. Material Properties

The materials were modeled as linear-elastic, consistent with the scope of this study. Table 2 lists the adopted properties for concrete.

2.3. Load Definition

The loads applied to the structural model follow the Peruvian code E.020 for gravity loads and E.030 for seismic actions. Table 3 summarizes the adopted values.
The self-weight of beams and columns is automatically computed by OpenSeesPy using the unit weight of concrete. Loads are distributed using a tributary area function, which assigns to each node the corresponding portion of the applied loads based on geometry and position.

2.4. Seismic Parameters

For seismic analysis, the elastic response spectrum defined in the Peruvian seismic code E.030 was employed. Table 4 summarizes the adopted site parameters.

2.5. Modeling and Boundary Conditions

The structural model was generated automatically in OpenSeesPy, with beams and columns modeled as frame elements. Rigid diaphragms were assigned at each story level by linking floor nodes to the corresponding center of mass. The base of the structure was modeled with fixed supports, assuming no soil–structure interaction.

2.6. Execution of Structural Analysis and Result Extraction

For each generated configuration, the following analyses are carried out in OpenSeesPy:
  • Modal analysis: determination of the natural vibration periods and modal mass participation ratios.
  • Linear static analysis: evaluation of displacements, internal forces, and the static base shear.
  • Response spectrum analysis: calculation of the dynamic base shear and lateral displacements in accordance with the Peruvian Seismic Code E.030.
  • Interstory drift verification: checking compliance with the maximum allowable drift specified by the code.
  • Force diagrams: extraction of bending moment (BMD), shear force (SFD), and axial force (AFD) diagrams to assess structural behavior in detail.

2.7. Verification According to the Peruvian Seismic Code

The results obtained from the structural analyses are verified according to the requirements of the Peruvian Seismic Code E.030, with an emphasis on
  • Interstory drift: verification against the maximum allowable limit of 7‰ of the story height.
  • Modal mass participation: ensuring that the cumulative participation of the modes considered reaches at least 90%.
  • Base shear scaling: checking whether the dynamic base shear requires scaling in order to satisfy the minimum base shear provision established by the code.
This verification ensures that all analyzed configurations comply with the seismic safety and performance standards mandated by the Peruvian code.

2.8. Parametric Optimization

The Hill Climbing algorithm is a local search optimization method that iteratively explores neighboring solutions and retains those that improve the objective function [17]. In this study, the algorithm was adapted to simultaneously vary the dimensions of beams and columns, as well as the value of f c , with the objective of reducing the total sectional area and, consequently, the stiffness of the structure. The optimization was constrained to satisfy the maximum drift limits specified by the Peruvian seismic code E.030 and to comply with basic design principles such as the “strong column–weak beam” criterion and the minimum section dimension of 0.25 m for structural elements. The objective function, or score, combines the total cross-sectional area with a penalty factor for the use of higher-strength concrete. Additional constraints invalidate a solution if the maximum interstory drift exceeds 7‰, if the beam inertia surpasses that of the column, or if the geometric ratio between beam depth and span is not admissible. Mathematically, the score function is defined as
s c o r e = , i f   a n y   c o n s t r a i n t s   a r e   n o   s a t i s f i e d a 2 + b     h     f a c t o r f c , o t h e r w i s e
where
  • a = column side;
  • b = beam width (m);
  • h = beam depth (m).
  • The factor f c   takes the value of 1.0 for f c = 210 kg/cm2 and 1.15 for f c = 280 kg/cm2.
  • A solution is deemed infeasible (score = ∞) if any of the following constraints are not satisfied:
    Maximum interstory drift exceeds 7 ‰ (Peruvian Seismic Code E.030).
    Beam inertia ( I c =   b h 3 / 12 )   is greater than column inertia ( I c = a 4 / 12 )   (strong column–weak beam criterion).
    Beam depth-to-span ratio is outside admissible bounds.
    Minimum cross-sectional dimension of 0.25 m is not met.
Figure 4 illustrates the internal operation of the Hill Climbing algorithm, showing the iterative search process toward an optimal feasible solution.

3. Results

3.1. Modal Analysis and Mass Participation According to E.030

A modal analysis was conducted in compliance with the Peruvian Seismic Design Code E.030, which requires that the considered vibration modes account for at least 90% of the total mass participation in both principal directions. The analysis was performed on the initial structural configuration prior to optimization. Table 5 summarizes the fundamental vibration periods for the first three relevant modes: translational motion in the X direction, translational motion in the Y direction, and torsional motion about the Z axis. These modes represent the dominant dynamic characteristics of the structure.
The computed vibration periods correspond to an elastic model without considering the effect of cracking, in accordance with the provisions of the Peruvian Seismic Code E.030. For validation, the approximate expression established in E.030 ( T H n / C T ) where H n is the total building height and ( C T = 35 ) for reinforced concrete moment-resisting frames. With ( H n = 12   m ), the estimated period is ( T 0.343   s ) s, which is in close agreement with the numerical result presented in Table 5. The corresponding modal shapes are illustrated in Figure 5a, translation in the X direction; Figure 5b, translation in the Y direction; and Figure 5c, torsion about the Z axis.

3.2. Modal Mass Participation

The modal analysis confirms that the cumulative modal mass participation exceeds 90% in both the X and Y directions, in compliance with the Peruvian Seismic Code E.030. Detailed numerical values for the twelve modes considered are presented in Appendix A.

3.3. Static Analysis: Base Shear and Displacements

Using the response spectrum function defined in the Peruvian seismic design code (E.030), a static equivalent lateral force analysis was performed with OpenseesPy to obtain the base shear forces and maximum displacements in both principal directions.

3.3.1. Static Analysis in the X Direction

Table 6 presents the results obtained for the equivalent static analysis in the X direction.

3.3.2. Static Analysis in the Y-Direction

Table 7 presents the results obtained from the static analysis in the Y-direction.
Furthermore, as shown in Figure 6, the distribution of shear forces at each story can be visually assessed. The interstory displacements obtained from the static linear analysis are shown in Figure 7a for the X-direction and in Figure 7b for the Y-direction.

3.4. Dynamic Analysis: Ultimate Shear and Maximum Drifts

The final stage of the evaluation corresponds to the linear dynamic analysis, in which the results are obtained by considering whether scaling is required in both directions, as specified by the E.030 seismic code. Table 8 summarizes the dynamic base shear forces and interstory drifts. It is observed that the drift ratios comply with the limits prescribed by E.030; however, the relatively low values indicate that the structure exhibits excessive stiffness. Figure 8 illustrates the distribution of interstory drifts, where the maximum drift is concentrated at the second story.
It can be verified that all drift values comply with the maximum allowable drift ratio of 7‰, as prescribed by the E.030 code.

3.5. Extraction of Internal Force and Moment Diagrams

The OpenSeesPy library enables the generation of internal force diagrams, where Figure 9a shows shear forces, Figure 9b illustrates bending moments, and Figure 9c presents axial forces, providing a clear assessment of the structural response.

3.6. Optimization Using the Hill Climbing Algorithm

To validate the optimization performance of the Hill Climbing algorithm, the initial design parameters were compared with the optimized ones. As shown in Table 9, the algorithm achieved a reduction in both the structural dimensions and the specified compressive strength fc. Consequently, this optimization justifies a reduction in material consumption and associated construction costs.

3.6.1. Dynamic Base Shear Forces

Table 10 presents the shear force variations for the X direction, while Table 11 shows the corresponding values for the Y direction. These changes result from increased structural flexibility, which reduces seismic demand and enhances performance. As illustrated in Figure 10a, the largest variation in the X direction occurs at the second story and the smallest at the top, while Figure 10b confirms a similar distribution in the Y direction.

3.6.2. Story Drifts

As observed in Table 12 and Table 13, the optimized structure shows increased drifts along both axes due to the reduction in global stiffness from the optimization process. Nevertheless, all values remain within the Peruvian Seismic Code E.030 limit (<7‰), ensuring performance is not compromised. This confirms that the Hill Climbing algorithm balances safety and material efficiency. Figure 11a highlights the largest increase at the first story in the X-axis, while Figure 11b shows the same trend in the Y-axis, with the smallest variation at the fourth story in both cases.

4. Discussion of Results

4.1. Research Gaps and Contributions

The Hill Climbing algorithm produced consistent improvements in terms of material efficiency and seismic response. The value of the score function decreased by 34.87%, from 0.3708 to 0.2415. Dynamic base shear forces were reduced between 20.51% and 26.77%, depending on the story and direction. Interstory drifts increased between 53.87% and 84.85% due to the reduction in global stiffness; however, all values remained below the limit established by the Peruvian Seismic Code E.030 (≤7‰). The main contribution of this study is to show that a local search algorithm with low computational cost can yield measurable structural benefits. While previous studies [18] reported reductions in expected annual losses and retrofitting costs using evolutionary algorithms, the present results indicate that simpler methods can also provide material savings and satisfactory performance within code limits. This approach is particularly relevant for preliminary design, where fast evaluations are required. The findings also align with the development of recent frameworks such as OpenPyStruct [19] and OpenSeesPyView [20], which promote integrated analysis and optimization environments.

4.2. Study Limitations

This work has a methodological scope. The analysis was restricted to a regular mid-rise reinforced concrete frame without irregularities in plan or elevation. Only elastic response spectrum analyses were conducted, and nonlinear effects were not included. The optimization focused on section dimensions and concrete strength without addressing reinforcement detailing or constructability. Long-term effects such as corrosion, creep, or shrinkage were not considered. These simplifications limit the direct applicability of the results but provide a controlled framework for testing the proposed methodology.

4.3. Future Research

Future studies should apply the methodology to case studies of real buildings to validate its practical utility. Extensions may include other structural systems, such as shear walls, dual systems, and confined masonry walls, which are common in Peru. Nonlinear static and dynamic analyses, such as pushover and incremental dynamic analysis, should be incorporated to capture inelastic behavior. A probabilistic approach considering uncertainties in materials, geometry, and seismic demand could enhance the robustness of the results. The inclusion of deterioration mechanisms, such as reinforcement corrosion, would allow a more complete evaluation of long-term performance and resilience.

5. Conclusions

The application of the Hill Climbing algorithm resulted in significant changes in structural response. Interstory drifts increased on average by 62.14% in the X direction and 72.50% in the Y direction, but remained below the 7‰ limit prescribed by the Peruvian Seismic Code E.030. Base shear forces decreased on average by 25.68% in the X direction and 21.51% in the Y direction, primarily due to the reduction in global mass and stiffness from optimized cross sections. These results confirm that the structural safety and code compliance were preserved. From a practical perspective, the methodology demonstrates potential for use in early design stages, where rapid evaluation of section sizes and material choices is required. The reduction in the score function indicates benefits in terms of material consumption, cost, and sustainability. The study is limited to elastic analyses of a regular frame system and does not consider reinforcement detailing or degradation mechanisms, which reduces its applicability to final design. Nevertheless, it establishes a methodological basis that can be expanded to more complex scenarios. In summary, the integration of OpenSeesPy with optimization algorithms such as Hill Climbing provides an efficient tool for structural parameterization and optimization under seismic demands. Future studies should broaden the scope to other structural typologies, nonlinear analysis, probabilistic frameworks, and durability considerations, with the aim of supporting resilient and sustainable structural design.

Author Contributions

Conceptualization, D.L. and R.M.D.; methodology, D.L. and R.M.D.; software, D.L.; validation, D.L. and R.M.D.; formal analysis, D.L. and R.M.D.; investigation, D.L. and R.M.D.; resources, D.L. and R.M.D.; data curation, D.L. and R.M.D.; writing—original draft preparation, D.L. and R.M.D.; writing—review and editing, D.L. and R.M.D.; visualization, D.L. and R.M.D.; supervision, D.L. and R.M.D.; project administration, R.M.D. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Universidad Nacional Mayor de San Marcos. The APC was funded by Universidad Nacional Mayor de San Marcos.

Data Availability Statement

The data presented in this study are available on request from the corresponding author. The data are not publicly available because the numerical models and simulation scripts are specific to this research and require additional explanation for correct use.

Acknowledgments

The authors acknowledges the financial support received from Universidad Nacional Mayor de San Marcos, as part of the preliminary results of the first author’s undergraduate thesis.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A

For completeness, Table A1 provides the detailed modal mass participation ratios for the twelve vibration modes of the structural model.
Table A1. Modal mass participation ratios obtained using OpenSeesPy.
Table A1. Modal mass participation ratios obtained using OpenSeesPy.
Mode No.Period (s)SumUxSumUySumRz
Mode 10.371020.811140.000000.00000
Mode 20.348500.811140.817350.00000
Mode 30.292930.811140.817350.81998
Mode 40.107970.933540.817350.81998
Mode 50.103090.933540.936510.81998
Mode 60.087420.933540.936510.93687
Mode 70.053650.983380.936510.93687
Mode 80.052450.983380.984320.93687
Mode 90.044790.983380.984320.98434
Mode 100.034821.000000.984320.98434
Mode 110.034641.000001.000000.98434
Mode 120.029601.000001.000001.00000

References

  1. Sibenik, G.; Kovacic, I. Assessment of model-based data exchange between architectural design and structural analysis. J. Build. Eng. 2020, 32, 101589. [Google Scholar] [CrossRef]
  2. Kookalani, S.; Parn, E.; Brilakis, I.; Dirar, S.; Theofanous, M.; Faramarzi, A.; Mahdavipour, M.A.; Feng, Q.; O’rourke, L. Trajectory of building and structural design automation from generative design towards the integration of deep generative models and optimization: A review. J. Build. Eng. 2024, 97, 110972. [Google Scholar] [CrossRef]
  3. Kärvegård, L.; Klasson, S.; Cusamano, L.; Rempling, R. Prerequisites for Using Genetic Algorithm Optimization of Structural Systems in the Conceptual Design Phase. Procedia Comput. Sci. 2025, 256, 1623–1630. [Google Scholar] [CrossRef]
  4. Singh, T.; Mahmoodian, M.; Wang, S. Advancing Smart Construction Through BIM-Enabled Automation in Reinforced Concrete Slab Design. Buildings 2025, 15, 343. [Google Scholar] [CrossRef]
  5. Chan, T.C.; Ullah, A.; Roy, B.; Chang, S.L. Finite element analysis and structure optimization of a gantry-type high-precision machine tool. Sci. Rep. 2023, 13, 13006. [Google Scholar] [CrossRef] [PubMed]
  6. Soleymani, A.; Saffari, H. Seismic Improvement and Rehabilitation of Steel Concentric Braced Frames: A Framework-Based Review. J. Rehabil. Civ. Eng. 2023, 11, 153–177. [Google Scholar]
  7. Liu, J.; Duan, L.; Jiang, Y.; Zhao, L.; Zhao, J. A rcGAN-based surrogate model for nonlinear seismic response analysis and optimization of steel frames. Eng. Struct. 2025, 323, 119199. [Google Scholar] [CrossRef]
  8. Abdellatif, B.; Benazouz, C.; Ahmed, M.; Abdelmounaim, M. Structural seismic design using hybrid machine learning and multi-objectives Particle swarm optimization algorithm: Case of Special moment frames in a high seismic zone. Structures 2025, 75, 108441. [Google Scholar] [CrossRef]
  9. Crespino, E.; Adriaenssens, S.; Fraddosio, A.; Olivieri, C.; Piccioni, M.D. A multi-objective optimization approach for novel shell/frame systems under seismic load. Structures 2024, 65, 106625. [Google Scholar] [CrossRef]
  10. Arroyo, O.; Feliciano, D.; Novoa, D.; Valcárcel, J. Opseestools: A Python library to streamline OpenSeesPy workflows. SoftwareX 2024, 27, 101832. [Google Scholar] [CrossRef]
  11. Yan, Y.; Xie, Y. Opstool: A Python library for OpenSeesPy analysis automation, streamlined pre- and post-processing, and enhanced data visualization. SoftwareX 2025, 30, 102126. [Google Scholar] [CrossRef]
  12. Zhang, Z.; Jiang, L.; Yarlagadda, T.; Zheng, Y.; Usmani, A. OPS-ITO: Development of Isogeometric Analysis and Topology Optimization in OpenSEES for Free-Form Structural Design. CAD Comput. Aided Des. 2023, 160, 103517. [Google Scholar] [CrossRef]
  13. Guan, M.; Hang, X.; Wang, M.; Zhao, H.; Liang, Q.Q.; Wang, Y. Development and implementation of shear wall finite element in OpenSees. Eng. Struct. 2024, 304, 117639. [Google Scholar] [CrossRef]
  14. Requena-Garcia-Cruz, M.V.; Cattari, S.; Bento, R.; Morales-Esteban, A. Comparative study of alternative equivalent frame approaches for the seismic assessment of masonry buildings in OpenSees. J. Build. Eng. 2023, 66, 105877. [Google Scholar] [CrossRef]
  15. Ministerio de Vivienda, Construcción y Saneamiento. Reglamento Nacional de Edificaciones: Norma E.020 Cargas; Ministerio de Vivienda, Construcción y Saneamiento: Lima, Peru, 2006.
  16. Ministerio de Vivienda, Construcción y Saneamiento. Reglamento Nacional de Edificaciones: Norma E.030 Diseño Sismorresistente; Ministerio de Vivienda, Construcción y Saneamiento: Lima, Peru, 2019.
  17. Luke, S. Essentials of Metaheuristics, 2nd ed.; George Mason University: Fairfax, VA, USA, 2013; Available online: http://cs.gmu.edu/~sean/book/metaheuristics/Essentials.pdf (accessed on 7 July 2025).
  18. Di Trapani, F.; Sberna, A.P.; Marano, G.C. A genetic algorithm-based framework for seismic retrofitting cost and expected annual loss optimization of non-conforming reinforced concrete frame structures. Comput. Struct. 2022, 271, 106855. [Google Scholar] [CrossRef]
  19. Smyl, D.; Zhuang, B.; Rigby, S.; Bruun, E.P.G.; Bruun, E.; Jones, B.; Kastner, P.; Tien, I.; Gallet, A. OpenPyStruct: Open-Source Toolkit for Machine Learning-Driven Structural Optimization. Eng. Struct. 2025, 343, 120869. [Google Scholar] [CrossRef]
  20. Guo, J.; Ye, A.; Wang, X.; Guan, Z. OpenSeesPyView: Python programming-based visualization and post-processing tool for OpenSeesPy. SoftwareX 2023, 21, 101278. [Google Scholar] [CrossRef]
Figure 1. Flowchart of the structural optimization process.
Figure 1. Flowchart of the structural optimization process.
Buildings 15 04388 g001
Figure 2. Three-dimensional representation of the generated frame system with node and element numbering.
Figure 2. Three-dimensional representation of the generated frame system with node and element numbering.
Buildings 15 04388 g002
Figure 3. Extruded model of the frame system highlighting the volumetric representation of structural elements.
Figure 3. Extruded model of the frame system highlighting the volumetric representation of structural elements.
Buildings 15 04388 g003
Figure 4. Internal operation of the Hill Climbing algorithm.
Figure 4. Internal operation of the Hill Climbing algorithm.
Buildings 15 04388 g004
Figure 5. First three modal shapes: (a) X-translation, (b) Y-translation, (c) Z-torsion.
Figure 5. First three modal shapes: (a) X-translation, (b) Y-translation, (c) Z-torsion.
Buildings 15 04388 g005
Figure 6. Static shear forces per story in both directions.
Figure 6. Static shear forces per story in both directions.
Buildings 15 04388 g006
Figure 7. (a) Displacements in the X-direction, and (b) displacements in the Y-direction.
Figure 7. (a) Displacements in the X-direction, and (b) displacements in the Y-direction.
Buildings 15 04388 g007
Figure 8. Interstory drifts for both directions.
Figure 8. Interstory drifts for both directions.
Buildings 15 04388 g008
Figure 9. (a) Shear Force Diagram (SFD), (b) Bending Moment Diagram (BMD), and (c) Axial Force Diagram (AFD).
Figure 9. (a) Shear Force Diagram (SFD), (b) Bending Moment Diagram (BMD), and (c) Axial Force Diagram (AFD).
Buildings 15 04388 g009
Figure 10. (a) Comparison of shear forces in the x-axis; (b) comparison of shear forces in the y-axis.
Figure 10. (a) Comparison of shear forces in the x-axis; (b) comparison of shear forces in the y-axis.
Buildings 15 04388 g010
Figure 11. (a) Comparison of drifts in the x-axis; (b) comparison of drifts in the y-axis.
Figure 11. (a) Comparison of drifts in the x-axis; (b) comparison of drifts in the y-axis.
Buildings 15 04388 g011
Table 1. Geometric parameters of the modeled building.
Table 1. Geometric parameters of the modeled building.
ParameterValue
Number of stories4
Story height3.0 m
Total building height12.0 m
Number of bays (X direction)3
Number of bays (Y direction)4
Span length (X direction)3.3 m
Span length (Y direction)2.9 m
Beam section30 × 40 cm
Column section40 × 45 cm
Table 2. Material properties of concrete.
Table 2. Material properties of concrete.
PropertyValue
Compressive strength f c 280   k g / c m 2
Elastic modulus E 1500 f c
Poisson’s ratio ν0.20
Unit weight γ 2400   k g / c m 3
Table 3. Adopted gravity loads.
Table 3. Adopted gravity loads.
Load TypeValue
Live load 200   k g / c m 2
Slab self-weight 300   k g / c m 2
Finishing load 100   k g / c m 2
Partition walls load 150   k g / c m 2
Table 4. Seismic design parameters according to E.030.
Table 4. Seismic design parameters according to E.030.
ParametersValue
Seismic zone factor Z 0.45
Use   factor   U 1.0
Short-period spectral period T p 0.4   s
Long-period spectral period T p 2.5   s
Response modification factor R 8
Table 5. Fundamental vibration periods for the first three relevant modes.
Table 5. Fundamental vibration periods for the first three relevant modes.
Mode No.Period (s)
Mode 10.371021
Mode 20.348497
Mode 30.292926
Table 6. Base shear and displacements obtained from the static analysis in the X direction using OpenseesPy.
Table 6. Base shear and displacements obtained from the static analysis in the X direction using OpenseesPy.
StoryVx (kN)UxMax (cm)UyMax (cm)DriftX (‰)DriftY (‰)
Story 1380.09100.96600.07303.21990.2435
Story 2342.08192.56620.18935.33420.3875
Story 3266.06373.97790.28914.70540.3327
Story 4152.03644.92180.35363.14650.2150
Table 7. Base shear forces and displacements obtained using the OpenSeesPy library.
Table 7. Base shear forces and displacements obtained using the OpenSeesPy library.
StoryVy (kN)UxMax (cm)UyMax (cm)DriftX (‰)DriftY (‰)
Story 1380.09101.03950.93913.46493.1305
Story 2342.08192.75672.44815.72425.0299
Story 3266.06374.26873.75565.03984.3583
Story 4152.03645.27744.60873.36232.8437
Table 8. Dynamic base shear forces and displacements obtained using the OpenSeesPy library.
Table 8. Dynamic base shear forces and displacements obtained using the OpenSeesPy library.
StoryVx (kN)Vy (kN)UxMax (cm)UyMax (cm)DriftX (‰)DriftY (‰)
Story 1322.5558324.45340.74180.68082.47262.2693
Story 2289.5358290.50771.96181.76284.06923.6090
Story 3228.7108229.17343.00822.67053.64143.1673
Story 4136.2960135.68973.73533.28532.50372.1182
Table 9. Optimized dimensions obtained using the Hill Climbing algorithm.
Table 9. Optimized dimensions obtained using the Hill Climbing algorithm.
ParametersBeam (m)Column (m)Score
Initial0.30 × 0.400.45 × 0.450.3708
Optimized0.25 × 0.350.40 × 0.400.2415
Table 10. Dynamic base shear forces in the x-axis.
Table 10. Dynamic base shear forces in the x-axis.
StoryInitial Shear Force (kN)Optimized Shear Force (kN)Variation (‰)
Story 01322.5558240.382925.48
Story 02289.5358212.037226.77
Story 03228.7108168.792826.20
Story 04136.2960103.21824.27
Table 11. Dynamic base shear forces in the y-axis.
Table 11. Dynamic base shear forces in the y-axis.
StoryInitial Shear Force (kN)Optimized Shear Force (kN)Variation (‰)
Story 01324.4534280.565121.25
Story 02290.5077225.450522.39
Story 03229.1734178.989121.90
Story 04135.6897107.865520.51
Table 12. Story drifts in the x-axis.
Table 12. Story drifts in the x-axis.
StoryInitial Drift (‰)Optimized Drift (‰)Variation (%)
Story 012.47264.300173.91
Story 024.06926.613462.52
Story 033.64145.762858.26
Story 042.50373.852453.87
Table 13. Story drifts in the y-axis.
Table 13. Story drifts in the y-axis.
StoryInitial Drift (‰)Optimized Drift (‰)Variation (%)
Story 012.26934.194784.85
Story 023.6096.232972.70
Story 033.16735.337468.52
Story 042.11823.472563.94
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Llanos, D.; Delgadillo, R.M. Linear Seismic Analysis and Structural Optimization of Reinforced Concrete Frames Using OpenSeesPy. Buildings 2025, 15, 4388. https://doi.org/10.3390/buildings15234388

AMA Style

Llanos D, Delgadillo RM. Linear Seismic Analysis and Structural Optimization of Reinforced Concrete Frames Using OpenSeesPy. Buildings. 2025; 15(23):4388. https://doi.org/10.3390/buildings15234388

Chicago/Turabian Style

Llanos, Diego, and Rick M. Delgadillo. 2025. "Linear Seismic Analysis and Structural Optimization of Reinforced Concrete Frames Using OpenSeesPy" Buildings 15, no. 23: 4388. https://doi.org/10.3390/buildings15234388

APA Style

Llanos, D., & Delgadillo, R. M. (2025). Linear Seismic Analysis and Structural Optimization of Reinforced Concrete Frames Using OpenSeesPy. Buildings, 15(23), 4388. https://doi.org/10.3390/buildings15234388

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop