원시데이터 수집 시스템
선정목록으로

Deriving analytical solutions using symbolic matrix structural analysis: Part 2 – Plane trusses

관련 필름·전자재료 · (16) CPI(투명 폴리이미드)

기본 정보

저자
  1. Vagelis Plevris — College of Engineering, Qatar University, P.O. Box: 2713, Doha, Qatar
  2. Afaq Ahmad — Department of Built Environment, Oslo Metropolitan University, P.O. Box 4, St. Olavs Plass, NO-0130, Oslo, Norway
DOI
10.1016/j.heliyon.2025.e42372
저널
Heliyon
발행년도
2025
발행기관
Elsevier BV
피인용수
4
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1016/j.heliyon.2025.e42372
토픽
Composite Structure Analysis and Optimization
OpenAlex ID
W4407204596

평가 내용

관련도
관련
사업분야
필름·전자재료 · (16) CPI(투명 폴리이미드)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '필름·전자재료 > CPI(투명 폴리이미드)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

This study extends the use of symbolic computation in matrix structural analysis to plane trusses, expanding on previous work that focused on continuous beams. We present a fully open-source MATLAB program, available on GitHub, that performs symbolic analysis of 2D trusses subjected to point loads, applicable to any truss configuration. Using the Symbolic Math Toolbox, the program derives closed-form analytical expressions for displacements, support reactions, and axial forces, providing deeper insight into structural behavior. A key advantage of the symbolic approach is its ability to perform sensitivity analysis efficiently by computing partial derivatives of structural responses with respect to input parameters. This feature enhances design exploration and optimization by allowing direct evaluation of parameter influences. Moreover, the framework is highly scalable, capable of generating symbolic solutions even for large-scale truss structures, something previously unattainable using traditional methods due to computational limitations. The tool serves both engineering practice and education, offering clear insights into parameter relationships and strengthening conceptual understanding in structural mechanics. To ensure accuracy, the symbolic results were rigorously validated against two commercial finite element software programs and results from the literature, with complete agreement. These validations confirm the reliability, scalability, and general applicability of the proposed methodology.

본문 69,189자

본문 펼치기
### Deriving Analytical Solutions Using Symbolic Matrix Structural Analysis: Part 2 – Plane Trusses Vagelis Plevris <sup>1*</sup> and Afaq Ahmad <sup>2</sup> 1 College of Engineering, Qatar University P.O. Box: 2713, Doha, Qatar e-mail: <u>[vplevris@qu.edu.qa](mailto:vplevris@qu.edu.qa)</u> 2 Department of Built Environment, Oslo Metropolitan University P.O. Box 4, St. Olavs Plass, NO-0130, Oslo, Norway e-mail: <u>[afahm2637@oslomet.no](mailto:afahm2637@oslomet.no)</u> *Corresponding author Keywords: Matrix structural analysis, symbolic MSA, plane trusses, structural analysis, sensitivity analysis, analytical solutions, closed-form solutions. Abstract. This study extends the use of symbolic computation in Matrix Structural Analysis (MSA) to plane (2D) trusses, building on previous work that focused on continuous beams. An open-source MATLAB program, hosted on GitHub, was developed to perform symbolic analysis of 2D trusses under point loads for any configuration. Using MATLAB’s Symbolic Math Toolbox, the program derives analytical expressions for displacements, support reactions, and axial forces, providing a deeper understanding of truss behavior. The symbolic approach also supports efficient and scalable sensitivity analysis by directly computing partial derivatives of outputs with respect to input parameters, enhancing design exploration and optimization. This tool serves as a valuable resource for both engineering practice and education, offering clear insights into parameter relationships and enriching the understanding of structural mechanics. The accuracy of the symbolic results has been rigorously validated against two commercial finite element software programs and results from the literature, with full agreement, confirming the validity and generality of the methodology. 1 Introduction The Finite Element Method (FEM), marking 80 years since its inception [1], is a cornerstone of structural analysis, providing a reliable numerical framework for solving complex engineering problems [2]. Traditional FEM, while effective for detailed results, is limited in flexibility and generality as numerical solutions are tied to specific inputs, requiring full recomputation for changes in material properties, geometry, or external loads [3]. Changes to these inputs require a full re-computation of the system, which is both time-consuming and computationally demanding, particularly for large-scale structures. Moreover, numerical results often conceal the relationships between key parameters, hindering a deeper understanding of structural behavior [4]. 1 <u>Deriving Analytical Solutions Using Symbolic Matrix Structural Analysis: Part 2 – Plane Trusses</u> For linear structures like beams, trusses, and frames, FEM is often referred to as Matrix Structural Analysis (MSA), sharing its principles and origins. MSA for such linear structures allows direct derivation of stiffness matrices without numerical integration, simplifying the process and offering greater insight. A limitation of traditional numerical FEM and MSA is their dependence on predefined boundary conditions and loading scenarios. Any changes in the model or the loads require regenerating and recalculating the entire model, resulting in a repetitive and time-intensive workflow. This lack of adaptability restricts the use of these methods in tasks like real-time analysis or mathematical optimization [5], where evaluating multiple configurations quickly and efficiently is essential [6]. Before the advent of computers, most mathematical and engineering analyses relied heavily on closed formulas and symbolic computation, as numerical methods and solutions were virtually nonexistent. With the rise of computing technology, numerical methods rapidly evolved and became dominant in all scientific fields, offering efficient solutions to complex problems. However, efforts to bridge the gap between symbolic and numerical methods emerged, such as the development of the Macsyma system in the 1960s by MIT’s AI group [7]. Symbolic computation can provide compelling solutions to challenges associated with numerical methods such as FEM and MSA. Unlike purely numerical methods, which produce specific values, symbolic computation enables the manipulation and solving of mathematical expressions in their exact algebraic form. This capability facilitates the derivation of analytical solutions and offers deeper insights into structural behavior, enhancing understanding and flexibility in the analysis. MATLAB is widely used in structural engineering for its powerful numerical algorithms, addressing challenges related to matrix analysis of structures and FEM [8-11], structural dynamics [12-15], optimization [16-20], and others [21]. While renowned for numerical computing, MATLAB also supports symbolic computation through its Symbolic Math Toolbox [22, 23]. The toolbox extends the program’s capabilities, enabling symbolic algebraic simplifications, differentiation, integration, equation solving, and matrix manipulation [24-26]. In engineering, physics, and mathematics, the toolbox is invaluable for analyzing complex systems, offering exact, parameterized solutions that enhance understanding and flexibility. For researchers and educators, it facilitates the derivation of closed-form solutions, exploration of theoretical concepts, and intuitive presentation of results. Its integration with MATLAB’s numerical environment allows efficient transitions between symbolic and numerical analyses, providing a versatile platform for both theoretical studies and practical applications. Other similar numerical platforms also support symbolic computation, like Mathematica [27], Maple [28], and SymPy (Python) [29]. Building on previous work focused on continuous beams [4], this study extends the methodology to plane trusses, retaining shared features while introducing capabilities specifically designed for 2D truss analysis. The study presents an innovative, open-source MATLAB program tailored for symbolic MSA of 2D trusses subjected to joint point loads. For the first time, this program enables precise and efficient derivation of analytical solutions for any 2D truss configuration, offering symbolic expressions for node displacements, support reactions, and element axial forces. Key features of the program include: 2 <u>Vagelis Plevris and Afaq Ahmad</u> - Fully open-source code, accessible online with comprehensive documentation and five illustrative numerical examples. - Capability to derive closed-form solutions for various output quantities (e.g., displacements, support reactions, axial forces) for 2D trusses of any complexity. - Support for sensitivity analysis, using MATLAB’s built-in symbolic differentiation to assess the impact of input parameters on output quantities. - Full validation of the symbolic results through comparison with established commercial finite element software and results from the literature, ensuring accuracy, reliability, and general applicability. [The source code, available on GitHub (https://github.com/vplevris/SymbolicMSA-](https://github.com/vplevris/SymbolicMSA-2DTrusses) <u>[2DTrusses), includes all examples discussed in this study. Developed using MATLAB R2024b](https://github.com/vplevris/SymbolicMSA-2DTrusses)</u> and its symbolic toolbox, the program is expected to be compatible with earlier versions. With clean, well-documented MATLAB code and minimal setup required, users are encouraged to explore the program, customize it to suit their specific needs, and efficiently generate their own analytical solutions. 2 Literature Review Few studies have addressed stiffness matrices symbolically. Eriksson and Pacoste [30] explored the use of symbolic software for developing finite element procedures, focusing on complex problems like higher-order instabilities requiring precise formulations. They emphasized that symbolic tools improve efficiency and clarity, enabling effective comparisons between element assumptions. Their research includes beam formulations for plane and space models, allowing analytical verification of equivalence between displacement and co-rotational approaches. Symbolic derivation also simplifies finite space rotations and systematically connects local displacements to global variables. Amberg et al. [31] developed a Maple-based toolbox for generating finite element codes, facilitating 1D, 2D, and 3D simulations. This toolbox has significantly accelerated research in areas like thermocapillary convection, welding, and crystal growth by reducing development time to hours. It offers flexibility, transparency, and ease of modification, enabling researchers to focus on physical insights while minimizing errors and debugging. Pavlovic [32] highlighted symbolic computation as a powerful complement to traditional numerical methods in structural engineering. He reviewed its underutilized applications and emphasized its potential to advance classical structural analysis by addressing complex problems with greater efficiency. He advocated for integrating symbolic and numerical methods to leverage their complementary strengths in solving structural mechanics problems effectively. Symbolic algebra has found diverse applications in structural engineering, enabling precise and insightful formulations of complex problems. For example, Levy et al. [33] utilized symbolic algebra to derive geometric stiffness matrices for membrane shells, allowing for the consideration of finite rotations without relying on small rotation assumptions. This approach enhances nonlinear analysis by providing explicit and physically intuitive derivations, demonstrating the power of symbolic methods in advancing structural mechanics. Murphey [34] derived generic symbolic equations for the effective stiffness and strength of beam-like 3 <u>Deriving Analytical Solutions Using Symbolic Matrix Structural Analysis: Part 2 – Plane Trusses</u> trusses with arbitrary numbers of longerons and diagonal lacings, assuming relatively soft diagonals. These equations unify previous discrete cases and simplify truss design by allowing modifications through constant values. Covering bending, torsion, shear, and axial loading, the approach enables rapid preliminary sizing and optimization, validated against finite element analysis and prior results by Renton [35]. Skrinar and Pliberšek [36] derived a symbolic stiffness matrix and load vector for slender beams with transverse cracks under uniform loading. Using the principle of virtual work, they provided closed-form expressions that clarify the influence of crack depth and location on flexural deformation, aiding in crack identification and modeling per European design code EC8. Roque [37] explored symbolic and numerical analysis of bending plates using MATLAB, demonstrating its versatility in combining symbolic and numerical methods seamlessly to enhance problem-solving efficiency and accuracy. Tinkov [38] derived new exact analytical expressions for the deflection of various planar trusses and analyzed existing solutions using the Maxwell-Mohr formula under elastic assumptions. Employing induction on the number of panels and symbolic computations in Maple, the study identified key characteristics and limitations related to panel count. Comparative analysis with known solutions, validated using the Lira software package, demonstrated the accuracy and applicability of the derived analytical expressions for truss deflection. Kirsanov and Tinkov [39] developed an algorithm to derive deflection and horizontal displacement formulas for planar statically determinate trusses under various loading conditions. Using symbolic mathematics in Maple, they generalized solutions for trusses with increasing panels, constructing and solving recurrence equations for polynomial coefficients. Their method identifies asymptotic properties and extreme points in deflection behavior, providing valuable benchmarks for validating numerical calculations in structural analysis. In a similar study, Kirsanov [40] proposed a rod model for planar statically determinate frames with four supports, deriving analytical deflection formulas under various loads using Maple. Through symbolic equilibrium equations, he identified kinematic instability for specific panel numbers and determined deflections for stable configurations using Maxwell-Mohr’s formula. The method generalized solutions via double induction and recurrence equations, revealing significant deflection variations. Force expressions in critical rods were also derived, aiding design evaluation and optimization. Dasgupta [41] explored the application of symbolic computations using Mathematica to derive equilibrium equations in terms of nodal displacements. Assuming linear elastic behavior and small displacements, the study demonstrates how bar stiffness matrices and nodal forces are integrated to construct the global system matrix. The Mathematica Solve function is employed to obtain exact solutions, offering an educational perspective on structural mechanics while showcasing the power of symbolic tools in finite element analysis. Öchsner and Makvandi [42] discuss the theory of single rod elements and plane truss structures, providing a detailed solution procedure through a comprehensive example. They combined manual calculations with insights into computer implementation using Maxima [43], enabling a clear understanding of the FEM. The work includes practical Maxima examples, facilitating the application of the methods to other problems and serving as a valuable resource for learning symbolic and numerical analysis in truss design. 4 <u>Vagelis Plevris and Afaq Ahmad</u> In the area of structural optimization, analytical solutions continue to stand out, as demonstrated by Charalampakis and Chatzigiannelis [44]. They utilized the cylindrical algebraic decomposition (CAD) algorithm to derive globally optimal solutions for minimum weight truss design. Their methodology, supported by symbolic computation, provides exact solutions to benchmark problems, offering formal validation for the convergence of metaheuristic methods to global optima. While computationally intensive and not yet practical for real-life engineering, CAD’s potential grows with advances in algorithmic improvements and computing power. 3 Stiffness Matrix of a Plane Truss Element The stiffness matrix is essential in MSA as it establishes the relationship between applied forces and resulting displacements in a structural system. Typically, in MSA and the FEM, stiffness matrices are computed numerically for each element and then assembled into a global system representing the entire structure. However, for linear elements in MSA, it is often feasible to derive an exact symbolic expression for an element’s stiffness matrix [42, 45]. One such example is the 2D Truss Element, which has one degree of freedom (DOF) per node in the element’s local system (displacement along the element’s axis). This element is commonly used in linear static analysis of plane trusses. Figure 1 shows the element in its local coordinate system, where the two DOFs—axial displacements at each end—are illustrated. In plane trusses, each node of the model has two DOFs in the global coordinate system, corresponding to displacements in the _x_ and _y_ global directions. There are no rotations; each element experiences only axial deformation, resulting in axial forces and stresses, with no shear forces or bending moments. ## i j _L_ _x_ local Figure 1. 2D Euler–Bernoulli beam element with 6 DOFs. Since plane truss elements can have various orientations on the plane, each element’s stiffness matrix must be transformed (rotated) to a common coordinate system to construct the global stiffness matrix of the whole model. Figure 2 shows an inclined element on the 2D plane, where the angle _θ_ defines the rotation needed from the global _x_ -axis to align with the local element axis with a counter-clockwise rotation. The figure also shows the local and global axes, with DOF numbering in the global system. For a 2D truss element, there are four DOFs in total, with two DOFs at each node, all referenced to the global axes, as shown in Figure 2. 5 <u>Deriving Analytical Solutions Using Symbolic Matrix Structural Analysis: Part 2 – Plane Trusses</u> 4 ## j ## ~~_y_~~ 2 _θ_ ## ~~_x_~~ ## i 1 Figure 2. 2D truss element with 4 DOFs in the global system. The symbolic 2×2 stiffness matrix for the 2D truss element, corresponding to the two local DOFs depicted in Figure 1, is expressed in Eq. (1). _<u>EA</u>_  1 - 1  =   _L_  - 1 1  _<u>EA</u>_  1 - 1 ˆ [ _kt_ 2 ] =  _L_  - 1 1 _<u>EA</u>_ ˆ _kt_ 2 ] = _L_ (1) The transformation matrix, which is a 2×4 matrix, is given by Eq. (2) [42] ####  c s 0 0  [ Tt 2] =   (2)  0 0 c s  where: _<u>x</u>_ _<u>x</u>_ _<u>j</u>_ <u>−</u> <u></u> = _L_ _L_ <u></u> _<u>y</u>_ _<u>y</u>_ _<u>j</u>_ <u>−</u> _<u>x</u>_ _<u>x</u>_ _<u>j</u>_ <u>−</u> _<u>xi</u>_ <u></u> = _L_ _L_ ####  y = y j − yi _L_ _L_ #### _c_ _s_ #### = cos(  ) = <u></u> _<u>y</u>_ #### = sin(  ) = = #### cos(  ) #### sin(  ) ####  ) ####  ) _<u>j</u>_ _<u>i</u>_ (3) _<u>j</u>_ _<u>i</u>_ ####  c s 0 0  [ Tt 2] =   (4)  0 0 c s  The global stiffness matrix [ <sup>_<u>k</u>_</sup> _t_ 2 ] of the element, a 4×4 matrix corresponding to the four DOFs illustrated in Figure 2, is obtained using the following expression [42]:  _c_ 2 _cs_ - _c_ 2 - _cs_   2 2  = [ _Tt_ 2 ] _T_  [ _k_ ˆ _t_ 2 ]  [ _Tt_ 2 ] = _<u>EAL</u>_  - _csc_ 2 - _scs_ - _ccs_ 2 - _css_   - _cs_ - _s_ 2 _cs_ _s_ 2  2 _cs_ - _c_ 2 _c_ 2 _cs_ - _c_ 2 - _cs_  2 _<u>kt</u>_ 2 ] = [ _Tt_ 2 ] _T_  [ _k_ ˆ _t_ 2 ]  [ _Tt_ 2 ] = _<u>EAL</u>_  - _csc_ 2 - _scs_ - _ccs_ 2 - _css_ _T_ ˆ [ _<u>kt</u>_ 2 ] = [ _Tt_ 2 ]  [ _kt_ 2 ]  [ _Tt_ 2 ] 2 - _cs_ - _s_ 2 2 _t_ 2 _t_ 2 _t_ 2 _L_ - _c_ 2 - _cs_ _c_ 2 (5) 2 _cs_ _s_ 2 _cs_ - _s_ 2 _cs_ _s_ In these equations, _E_ is Young’s modulus of the material, _A_ is the cross-sectional area, and _L_ is the length of the truss element. 6 <u>Vagelis Plevris and Afaq Ahmad</u> 4 Definition of the Model Symbolically In Part 1 of this work, which was focused on continuous beams [4], the beam model was defined symbolically using the variables: _Lengths_, _Supports_, _PointLoads_, and _UniformLoads_ . This approach worked well for beams because all elements were aligned along a single line, making the structure relatively simple to describe using only the length of each element and assuming continuous numbering from left to right for both nodes and elements. However, in 2D trusses, the geometry of the model is more complex, with nodes that can connect multiple elements in various orientations. Therefore, in this 2D truss implementation, we introduce a different set of variables for our model, namely: - _NodeCoords_ : Coordinates ( _x_, _y_ ) of the nodes (matrix of size _NumNodes_ ×2). - _ElemMatSec_ : The stiffness of each element, as the product _E_ - _A_, with _E_ being the modulus of elasticity of the material and _A_ the cross-sectional area (column vector of size _NumElements_ ). - _ElemCon_ : Connectivity of the elements, i.e. ID of start node _i_ and end node _j_ for each element (matrix of size _NumElements_ ×2). - _Supports_ : The supports for each node and each DOF, where 1 means constrained and 0 means free to move (matrix of size _NumNodes_ ×2). - _PointLoads_ : The point loads for each node and each DOF (matrix of size _NumNodes_ ×2). As shown above, instead of specifying element lengths, we define each node’s coordinates ( _x_ and _y_ values) and specify the element connectivity, indicating which nodes each element connects. This setup allows the program to model any 2D truss geometry effectively, regardless of complexity, as the element lengths and orientations are automatically derived from the nodal coordinates. This approach provides greater flexibility, enabling efficient modeling of intricate truss structures without manually calculating individual element properties. For instance, the input file for the first example, examined in Section 6, is as follows: ``` NodeCoords = [ 0 0 ; L L ; 3*L 0]; ElemMatSec = [EA; EA]; ElemCon = [1 2 ; 2 3]; Supports = [1 1 ; 0 0 ; 1 1]; PointLoads = [0 0 ; 0 -P ; 0 0]; ``` 7 <u>Deriving Analytical Solutions Using Symbolic Matrix Structural Analysis: Part 2 – Plane Trusses</u> 5 Importance and Educational Benefits of Symbolic Solutions in 2D Truss Analysis Symbolic representation in structural analysis offers engineers and researchers valuable insights into structural behavior. By preserving algebraic relationships between parameters, symbolic MSA enables a detailed exploration of how variations in material properties, geometry, or loading conditions influence the overall structural response. This approach provides parameterized solutions that are not limited to specific input values, offering flexibility and adaptability. Additionally, symbolic expressions allow for the straightforward calculation of partial derivatives with respect to input parameters, making sensitivity analysis and design optimization more efficient and accessible. Symbolic MSA also holds significant educational value. It enhances the understanding of structural engineering concepts by clearly demonstrating the relationships between key parameters. Unlike purely numerical methods, which deliver results without exposing the underlying mechanics, symbolic solutions offer a transparent view of these interactions, fostering a deeper conceptual understanding. A key benefit of using symbolic solutions is the clear visualization of how parameters such as Young’s modulus _E_, cross-sectional area _A_, and element length _L_ influence the nodal displacements or the axial force or stress in truss members. In contrast to numerical methods, which often give isolated numerical values, symbolic expressions explicitly show the dependencies between input parameters and the resulting displacements or internal forces. As a result, symbolic MSA is a powerful tool for research and also an effective resource for teaching and communicating complex structural mechanics in a clear and intuitive manner. Symbolic solutions also help students grasp the concept of superposition and the cumulative effect of different loads on the truss system. By analyzing symbolic expressions for axial forces or nodal displacements, students can observe how various load cases contribute to the overall response, which may not be as evident in purely numerical results. Another advantage has to do with sensitivity analysis and design optimization. Symbolic expressions allow for direct differentiation with respect to parameters such as _E_ or _A_, enabling students to easily explore how changes in material or geometric properties can affect the performance of the truss. This capability is crucial for understanding structural sensitivity and optimizing designs effectively. In summary, symbolic analysis provides a transparent and accessible way to understand the relationships between structural parameters and the response of truss systems. It enhances learning by making complex concepts clearer and equips students with the skills needed for parametric studies, sensitivity analysis, and optimization. This approach offers a valuable educational tool for mastering the fundamentals of truss analysis in structural engineering. 6 Numerical Examples We consider five numerical examples of differing levels of complexity. In these, _EA_ is treated as a single symbolic parameter, since _E_ and _A_ consistently appear together in stiffness and other analytical expressions in 2D trusses. Nevertheless, each member can have its own _EA_ properties, i.e. a member can be stiffer than another. Table 1 provides detailed descriptions of the numerical examples and the associated symbolic parameters for each. 8 <u>Vagelis Plevris and Afaq Ahmad</u> Table 1. Details of the five numerical examples. Symbolic Example # Figure <u>Parameters</u> _P_ 2 1 1 2 _L_ ( _EA_, 3 _L_, and 1 3 1 2 _L_ 1 3 _P_ ) _L_ _2L_ L/2 L/2 _P_ 3 2 2 3 _H_ ( _EA_, 4 _L_, _H_, 2 3 _H_ and _P_ ) 1 1 <u>2</u> _L_ ~~L/2~~ _~~L~~_ ~~L/2~~ _P_ _P_ <u>4</u> 3 <u>5</u> 3 4 5 6 7 _H_ ( _EA_, 4 _L_, _H_, 4 5 6 7 _H_ and _P_ ) 1 2 <u>3</u> 1 1 2 _~~L~~_ _L_ _~~L~~_ _~~L~~_ _~~L~~_ 16 15 14 <u>10</u> <u>12</u> 20 18 19 _H_ <u>7</u> 8 12 10 11 21 9 13 17 9 13 17 <u>5</u> 6 9 11 4 4 7 8 _P_ ( _EA_, _L_, _H_, _H_ <u>5</u> 6 9 11 _P_ and _P_ ) _H_ 7 8 6 _H_ <u>3</u> 5 4 3 2 4 <u>1</u> 1 2 5 9 6 10 <u>7</u> 13 12 11 _H_ 6 7 8 _P_ 3 5 <u>4</u> <u>8</u> 14 <u>9</u> 4 5 2 3 4 16 18 _H_ ( _EA_, _L_, _H_, 3 5 <u>4</u> 14 <u>9</u> <u>8</u> 14 5 2 3 4 16 15 and _P_ ) 18 _H_ 1 1 <u>11</u> 2 10 17 2 17 _~~L~~_ _~~L~~_ _~~L~~_ _~~L~~_ _~~L~~_ _~~L~~_ 9 <u>Deriving Analytical Solutions Using Symbolic Matrix Structural Analysis: Part 2 – Plane Trusses</u> 6.1 Numerical Example 1 (3 Symbolic Parameters) The first numerical example is a simple 2-bar truss with two members and a point load _P_, as shown in Figure 3. The symbolic parameters are three: _EA_, _L_, and _P_ . _P_ 2 2 1 1 <u>3</u> _L_ _~~L~~_ _2L_ Figure 3. The truss of Example 1. Table 2 shows the details of the model, as given in MATLAB. In every example, the number of nodes ( _NumNodes_ ) is defined by the rows of the _NodeCoords_ matrix and the number of elements ( _NumElements_ ) is defined by the rows of the _ElemMatSec_ matrix. In this example we have 2 elements and 3 nodes. In a 2D truss, all point loads are defined on nodes. There are no uniform loads. Table 2. Details of the input parameters of the 1 <sup>st</sup> numerical example. _L_ 3 _L_  _T_  0 _L_ 3 _L_  _T_    0 _L_ 0   0 _L_ 3 NodeCoords  0 _L_ 0 ElemMatSec  _EA_ _EA_  _T_  1 2  _T_    2 3   1 2 ElemCon  2 3  1 0 1  _T_    1 0 1   1 0 1 Supports  1 0 1  0 0 0    <u></u> 0 - _P_ 0 <u></u> _T_  0 0 0 PointLoads  0 - _P_ 0 <u></u> Table 3, Table 4 and Table 5 present the results of the symbolic analysis in terms of the symbolic parameters. Table 3 presents the Node displacements, while Table 4 shows the support reactions and Table 5 the element axial forces. The element forces are reported here as positive when the member is in tension and negative when the member is under compression. The analytical expressions for the element stresses are not reported in the results, as the stress for any element can be easily found by dividing the force of the element with its cross-sectional area, _A_ . 10 <u>Vagelis Plevris and Afaq Ahmad</u> Table 3. Example 1: Node displacements. <u>Node #</u> _<u>x</u>_ <u>-Displacement (</u> _<u>Dx</u>_ <u>)</u> _<u>y</u>_ <u>-Displacement (</u> _<u>Dy</u>_ <u>)</u> Node 1 0 0 _PL_ 4 2 - 5 5 #### ( ) Node 2 _PL_ 8 2 + #### ( 9 _PL_ 4 2 - 5 5 _PL_ 8 2 + 5 5 #### ( ) ( ) - _PL_ _PL_ 9 _EA_ _EA_ <u>Node 3</u> <u>0</u> <u>0</u> Table 4. Example 1: Support reactions. <u>Node #</u> <u>Force</u> _<u>Fx</u>_ <u>Force</u> _<u>Fy</u>_ Node 1 2 _P_ 3 2 _P_ 3 <u>Node 3</u> - 2 _P_ 3 _P_ 3 Table 5. Example 1: Element axial forces. <u>Element #</u> <u>Axial Force</u> 2 2 1 - _P_ 3 5 2 - <u>3</u> _P_ 6.2 Numerical Example 2 (4 Symbolic Parameters) The second numerical example is the truss shown in Figure 4. It has 3 nodes and 3 elements. The symbolic parameters are four: _EA_, _L_, _H_, and _P_ . L/2 ~~L/2~~ _P_ 3 _H_ 1 2 3 1 _L_ <u>2</u> Figure 4. The truss of Example 2. Table 6 shows the details of the model, as given in MATLAB. 11 <u>Deriving Analytical Solutions Using Symbolic Matrix Structural Analysis: Part 2 – Plane Trusses</u> Table 6. Details of the input parameters of the 2 <sup>nd</sup> numerical example. _L_ _L_ / 2  _T_  0 _L_ _L_ / 2     0 0 _H_   0 _L_ _L_ / 2 NodeCoords   0 0 _H_ ElemMatSec  _EA_ _EA_ _EA_  _T_  1 1 2  _T_ ElemCon    2 3 3   1 0 0  _T_ Supports    1 1 0  _T_  0 0 0  PointLoads   <u></u> 0 0 - _P_ <u></u>  0 0 0    <u></u> 0 0 - _P_ <u></u> The results of the symbolic analysis are given in Table 7, Table 8, and Table 9, for Node displacements, support reactions, and element axial forces, respectively. Table 7. Example 2: Node displacements. <u>Node #</u> _<u>x</u>_ <u>-Displacement (</u> _<u>Dx</u>_ <u>)</u> _<u>y</u>_ <u>-Displacement (</u> _<u>Dy</u>_ <u>)</u> Node 1 0 0 Node 2 Node 3 _PL_ 2 0 4 _EAH_ #### PL 2 P ( (4 H 2 + L 2 )3/2 + L 3 ) 8 _EAH_ - <u>16</u> _<u>EAH</u>_ 2 2 <u>16</u> 2 #### P ( (4 H 2 + L 2 )3/2 + - 2 #### P ( (4 H 2 + L 2 )3/2 + L (4 _H_ 2 + _L_ 2 ) 2 _<u>EAH</u>_ Table 8. Example 2: Support reactions. <u>Node #</u> <u>Force</u> _<u>Fx</u>_ <u>Force</u> _<u>Fy</u>_ Node 1 0 _<u>P</u>_ 2 Node 3 - _P_ <u>2</u> Table 9. Example 2: Element axial forces. <u>Element #</u> <u>Axial Force</u> _<u>PL</u>_ 1 4 _H_ 2 3 _<u>P</u>_ <u>4</u> _<u>H</u>_ 2 <u>+</u> _<u>L</u>_ 2 4 _H_ _<u>P</u>_ <u>4</u> _<u>H</u>_ 2 <u>+</u> _<u>L</u>_ 2 <u>4</u> _<u>H</u>_ 12 <u>Vagelis Plevris and Afaq Ahmad</u> 6.3 Numerical Example 3 (4 Symbolic Parameters) The third numerical example is the truss shown in Figure 4. It has 5 nodes and 7 elements. The symbolic parameters are four: _EA_, _L_, _H_, and _P_ . ~~L/2~~ _~~L~~_ ~~L/2~~ _P_ _P_ <u>4</u> 3 <u>5</u> 4 5 6 7 1 1 2 2 _~~L~~_ _~~L~~_ _H_ <u>3</u> Figure 5. The truss of Example 3. Table 6 shows the details of the model, as given in MATLAB. Table 10. Details of the input parameters of the 3 <sup>rd</sup> numerical example.  0 _L_ 2 _L_ _L_ / 2 3 _L_ / 2  _T_ NodeCoords    0 0 0 _H_ _H_  ElemMatSec  _EA_ _EA_ _EA_ _EA_ _EA_ _EA_ _EA_  _T_  1 2 4 1 2 2 3  _T_ ElemCon    2 3 5 4 4 5 5   1 0 1 0 0  _T_ Supports    1 0 1 0 0   0 0 0 2 _P_ 0  _T_ PointLoads   <u></u> 0 0 0 - _P_ - _P_ <u></u> The results of the symbolic analysis are given in Table 11, Table 12, and Table 13, for Node displacements, support reactions, and element axial forces, respectively. 13 <u>Deriving Analytical Solutions Using Symbolic Matrix Structural Analysis: Part 2 – Plane Trusses</u> Table 11. Example 3: Node displacements. <u>Node #</u> _<u>x</u>_ <u>-Displacement (</u> _<u>Dx</u>_ <u>)</u> _<u>y</u>_ <u>-Displacement (</u> _<u>Dy</u>_ <u>)</u> Node 1 0 0 _PL_ Node 2 2 _EA_ _P_  2 _HL_ 2 + (4 _H_ 2 + _L_ 2 )3/2 + _L_ 3   2  - 2 _P_  2 _HL_ 2 + (4 _H_ 2 + _L_ 2 )3/2 + _L_ 2 _HL_ 2 + (4 _H_ 2 + _L_ 2 ) 2 2 + (4 _H_ 2 + _L_ 2 )3/2 + _L_ 3 4 _EAH_ 2 Node 3 0 0 #### P ( H (4 H 2 + L 2 )3/2 + 3 HL 3 + L 4 ) Node 4 4 _EAHL_ 2 #### P ( HL 3 − H (4 H 2 + L 2 )3/2 + L 4 ) Node 5 #### P ( HL 2 + (4 H 2 + L 2 )3/2 + - 2 #### ( 3 HL 2 + (4 H 2 + L 2 )3/2 + L 3 ) <u>8*</u> _<u>EA</u>_ <u>*</u> (4 _H_ 2 + _L_ 2 ) 2 _<u>EA</u>_ <u>*</u> _<u>H</u>_ + _L_ 2 )3/2 + 3 _HL_ 3 + #### P ( H (4 H 2 + L 2 )3/2 + 3 HL 3 + L 4 (4 _H_ 2 + _L_ 2 )3/2 + 3 4 _EAHL_ 2 #### P ( 3 HL 2 + (4 H 2 + L 2 )3/2 + - 2 #### P ( 3 HL 2 + (4 H 2 + L 2 )3/2 + L 3 3 _HL_ 2 + (4 _H_ 2 + _L_ 2 ) 2 8 _EAH_ 4 _EAHL_ #### P ( HL 3 − H (4 H 2 + L 2 )3/2 + L 4 ) P ( HL 2 + (4 H 2 + L 2 )3/2 + L 3 ) - 2 - 2 #### P ( HL 3 − H (4 H 2 + L 2 )3/2 + L 4 #### P ( HL 2 + (4 H 2 + L 2 )3/2 + L (4 _H_ 2 + _L_ 2 ) <u>4</u> _<u>EAHL</u>_ 2 <u>4</u> _<u>EAHL</u>_ Table 12. Example 3: Support reactions. <u>Node #</u> <u>Force</u> _<u>Fx</u>_ <u>Force</u> _<u>Fy</u>_ P <u>(</u> 2 _H_ - _L_ <u>)</u> Node 1 2  _P_ ( 2 _H_ + _L_ ) Node 3 - _L_ <u>)</u> P <u>(</u> _H_ - _L_ <u>)</u>  _L_ _<u>L</u>_ P <u>(</u> 2 _H_ - _L_ P <u>(</u> _H_ _L_ _P_ ( 2 _H_ + _L_ ) P ( _H_ + _L_ ) _P_ ( 2 _H_ + _L_ + _L_ <u>2</u> <u>2</u> _<u>H</u>_ Table 13. Example 3: Element axial forces. <u>Element #</u> <u>Axial Force</u> 1 _<u>P</u>_ 2 _<u>P</u>_ 2 2 P <u>(</u> 2 _H_ + _L_ <u>)</u> 3 2 _H_ P <u>(</u> 2 _H_ + _L_ P <u>(</u> 2 _H_ _H_ _P_ 4 _H_ 2 + _L_ 2 ( _H_ - _L_ ) 4 + _L_ 2 ( _H_ _P_ 4 _H_ 2 + _L_ 2 ( _H_ - _L_ 2 _HL_ 5 6 _P_ 4 _H_ 2 + _L_ 2 2 _L_ _P_ 4 _H_ 2 + _L_ 2 2 _L_ _P_ 4 _H_ 2 + _L_ 2 ( _H_ + _L_ <u>)</u> 7 _P_ 4 _H_ 2 + _L_ 2 ( _H_ + _P_ 4 _H_ 2 + _L_ 2 ( _H_ + _L_ <u>2</u> _<u>HL</u>_ 6.4 Numerical Example 4 (4 Symbolic Parameters) The fourth numerical example is the truss structure shown in Figure 6. The symbolic parameters are four: _EA_, _L_, _H_, and _P_ . 14 <u>Vagelis Plevris and Afaq Ahmad</u> _L_ _~~L~~_ _L_ 16 15 14 13 20 19 18 17 21 _P_ <u>10</u> 9 12 11 _H_ _H_ _H_ 7 8 12 11 10 9 5 6 7 8 6 <u>3</u> 5 4 3 2 4 <u>1</u> 1 2 Figure 6. The truss of Example 4. This model is relatively large, comprising 12 nodes and 21 elements. Detailed specifications of the model can be found in the input file for Example 4 in the source code repository. Each element is defined sequentially from the lower-numbered node to the higher-numbered node; for instance, element 7 connects nodes 4 and 5 in that order, while element 15 connects nodes 8 and 9. The supports include a pinned support at node 1 and a roller support at node 2, as illustrated in the figure. The results of the symbolic analysis are reported in Table 14, Table 15 and Table 16, for Node displacements (for selected nodes); support reactions; and element axial forces (for all elements), respectively. Table 14. Example 4: Node displacements (for selected nodes). <u>Node #</u> _<u>x</u>_ <u>-Displacement (</u> _<u>Dx</u>_ <u>)</u> _<u>y</u>_ <u>-Displacement (</u> _<u>Dy</u>_ <u>)</u> Node 6 <u>9</u> _<u>H</u>_ 2 _<u>P</u>_ 6 _HP_ _AEL_ _AE_ _P_ <u>(</u> 2( _H_ 2 + _L_ 2 )3/2 + 21 _H_ 3 <u>)</u> Node 7 6 _HP_ _AE_ + _L_ 2 )3/2 + _EAHL_ _P_ <u>(</u> 9 _H_ 3 - 2 _L_ 3 <u>)</u> Node 9 _EAHL_ 3 _P_ <u>(</u> 3 _H_ 3 - _L_ 3 <u>)</u> Node 11 - 2 _L_ 3 <u>)</u> _P_ <u>(</u> 3( _H_ 2 + _L_ 2 )3/2 + 19 _H_ 3 + 4 _L_ 3 <u>)</u> _P_ <u>(</u> 3( _H_ 2 + _L_ 2 )3/2 + 19 _H_ 3 + - _EAH_ 2 2 _P_ <u>(</u> 3( _H_ 2 + _L_ 2 )3/2 + 16 _H_ 3 + - 2 _P_ <u>(</u> 3( _H_ 2 + _L_ 2 )3/2 + 19 _H_ 3 + 4 _L_ 3 _EAH_ 2 2 _P_ <u>(</u> 3( _H_ 2 + _L_ 2 )3/2 + 16 _H_ 3 + 5 _L_ _<u>EAH</u>_ 2 _<u>EAH</u>_ _EAHL_ _EAH_ - _L_ 3 <u>)</u> 2 _P_ <u>(</u> 3( _H_ 2 + _L_ 2 )3/2 + 16 _H_ 3 + 5 _L_ 3 <u>)</u> _<u>EAHL</u>_ 15 <u>Deriving Analytical Solutions Using Symbolic Matrix Structural Analysis: Part 2 – Plane Trusses</u> Table 15. Example 4: Support reactions. <u>Node #</u> <u>Force</u> _<u>Fx</u>_ <u>Force</u> _<u>Fy</u>_ Node 1 0 - 2 _P_ <u>Node 2</u> <u>-</u> 3 _P_ Table 16. Example 4: Element axial forces. <u>Element #</u> <u>Axial Force</u> <u>Element #</u> <u>Axial Force</u> 1 0 11 2 _P_ _H_ 2 + _L_ 2 _H_ 2 _LP_ 2 2 _P_ 12 _H_ 2 _LP_ 3 0 13 _H_ 4 - 3 _P_ 14 - _P_ 5 0 15 _P_ _H_ 2 + _L_ 2 _H_ _LP_ 6 2 _P_ 16 _H_ _<u>LP</u>_ 7 0 17 _H_ 8 - 3 _P_ 18 - _P_ 9 0 19 _<u>P</u>_ _<u>H</u>_ 2 <u>+</u> _<u>L</u>_ 2 _H_ 10 2 _P_ 20 0 <u>21</u> <u>0</u> 6.5 Numerical Example 5 (4 Symbolic Parameters) The fifth numerical example is taken from the literature. In particular, it is the case No 1 truss model from the work of Tinkov [38]. The truss is shown in Figure 6. The symbolic parameters are four: _EA_, _L_, _H_, and _P_ . 16 <u>Vagelis Plevris and Afaq Ahmad</u> 5 9 6 10 7 13 12 11 14 9 <u>8</u> 16 15 _H_ 18 _H_ 6 7 8 3 5 <u>4</u> 2 3 4 _P_ 1 1 <u>11</u> 2 10 17 2 17 _~~L~~_ _L_ _~~L~~_ _~~L~~_ _~~L~~_ _L_ Figure 7. The truss of Example 5. The model consists of 11 nodes and 18 elements, with detailed specifications available in the input file for Example 5 in the source code repository. Each element is defined sequentially, connecting the lower-numbered node to the higher-numbered node. The supports are pinned at nodes 1 and 11, as shown in the figure. The model is fully symmetric, including its loading, so identical results are expected on both sides of the truss. The results of the symbolic analysis are given in Table 17, Table 18, and Table 19, for Node displacements (for selected nodes); support reactions; and element axial forces, respectively. Table 17. Example 5: Node displacements (for selected nodes). <u>Node #</u> _<u>x</u>_ <u>-Displacement (</u> _<u>Dx</u>_ <u>)</u> _<u>y</u>_ <u>-Displacement (</u> _<u>Dy</u>_ <u>)</u> #### P ( 4( H 2 + L 2 )3/2 + 2 H 3 + - 2 #### P ( 4( H 2 + L 2 )3/2 + 2 H 3 + L 4( _H_ 2 + _L_ 2 )3/2 + 2 2 Node 2 Node 4 #### L P 2 P ( 4( H 2 + L 2 )3/2 + 2 H 3 + L 3 ) - 4 _EAH_ - 8 _EAH_ 2 _L_ 2 _P_ _P_ <u>(</u> 3( _H_ 2 + _L_ 2 )3/2 + _H_ 3 + _L_ 3 <u>)</u> - 8 _EAH_ - 4 _EAH_ 2 2 4 _EAH_ 8 _EAH_ 2 _P_ <u>(</u> 3( _H_ 2 + _L_ 2 )3/2 + _H_ 3 + - 2 _P_ <u>(</u> 3( _H_ 2 + _L_ 2 )3/2 + _H_ 3 + _L_ 3 3( _H_ 2 + _L_ 2 )3/2 4 _EAH_ 2 #### P ( 10( H 2 + L 2 )3/2 + 2 H 3 + 3 L 3 ) Node 6 0 - 2 #### P ( 10( H 2 + L 2 )3/2 + 2 H 3 + - 2 #### P ( 10( H 2 + L 2 )3/2 + 2 H 3 + 3 L 10( _H_ 2 + _L_ 2 )3/2 + 2 _H_ 3 + 3 2 8 _EAH_ _P_ <u>(</u> 3( _H_ 2 + _L_ 2 )3/2 + _H_ 3 + _L_ 3 3( _H_ 2 + _L_ 2 )3/2 4 _EAH_ 2 Node 8 Node 10 _<u>L</u>_ 2 _<u>P</u>_ _P_ <u>(</u> 3( _H_ 2 + _L_ 2 )3/2 + _H_ 3 + _L_ 3 <u>)</u> 8 _EAH_ - 4 _EAH_ 2 _<u>L</u>_ 2 _<u>P</u>_ <u>4</u> _<u>EAH</u>_ 2 4 _EAH_ _P_ <u>(</u> 3( _H_ 2 + _L_ 2 )3/2 + _H_ 3 + - 4 _EAH_ 2 #### P ( 4( H 2 + L 2 )3/2 + 2 H 3 + - 2 #### P ( 4( H 2 + L 2 )3/2 + 2 H 3 + L #### ( 4( H 2 + L 2 )3/2 + 2 H 3 + L 3 ) 4( _H_ 2 + _L_ 2 )3/2 + 2 2 <u>8</u> _<u>EAH</u>_ Table 18. Example 5: Support reactions. <u>Node #</u> <u>Force</u> _<u>Fx</u>_ <u>Force</u> _<u>Fy</u>_ <u>3</u> _<u>LP</u>_ Node 1 4 _H_ <u>3</u> _<u>LP</u>_ Node 11 <u>4</u> _<u>H</u>_ 17 _<u>P</u>_ 2 _<u>P</u>_ <u>2</u> <u>Deriving Analytical Solutions Using Symbolic Matrix Structural Analysis: Part 2 – Plane Trusses</u> Table 19. Example 5: Element axial forces. <u>Element #</u> <u>Axial Force</u> <u>Element #</u> <u>Axial Force</u> _PL_ _LP_ 1 - 10 4 _H_ 4 _H_ 11 2 _P_ _H_ 2 + _P_ _H_ 2 + _L_ 2 2 _H_ 2 + _L_ 2 _P_ _H_ 2 + _P_ _H_ 2 + _L_ 2 2 _H_ 2 + _L_ 2 3 _P_ 12 _P_ 4 4 13 4 _P_ _H_ 2 + _P_ _H_ 2 + _L_ 2 4 _H_ 2 + _L_ 2 _P_ _H_ 2 + _P_ _H_ 2 + _L_ 2 4 _H_ 2 + _L_ 2 _LP_ 5 4 _H_ _LP_ _LP_ - 14 4 _H_ 4 _H_ _LP_ 4 _H_ 15 6 _P_ _H_ 2 + _P_ _H_ 2 + _L_ 2 4 _H_ 2 + _L_ 2 _P_ _H_ 2 + _P_ _H_ 2 + _L_ 2 4 _H_ 2 + _L_ 2 7 _P_ 16 _P_ 4 4 _LP_ 17 4 _H_ 8 _P_ _H_ 2 + _P_ _H_ 2 + _L_ 2 2 _H_ 2 + _L_ 2 _<u>LP</u>_ 9 <u>4</u> _<u>H</u>_ 7 Validation of Results 18 _P_ _H_ 2 + _P_ _H_ 2 + _L_ 2 <u>2</u> _<u>H</u>_ 2 + _L_ 2 The validation of any result is a critical step in establishing its reliability, especially for symbolic solutions, which are designed to be general and applicable to various configurations. Unlike numerical methods that directly produce specific results for a given set of inputs, symbolic solutions retain algebraic relationships, making them more versatile but also requiring rigorous validation to ensure accuracy across diverse scenarios. Validation is essential to confirm that the derived symbolic expressions accurately represent the behavior of the structural system for any configuration. A systematic validation procedure was employed in this study. Using MATLAB’s subs command, all symbolic variables were replaced with numeric values, allowing the symbolic results to be expressed numerically for direct comparison with other finite element software. This enabled precise evaluation of the symbolic results for specific truss configurations. Two software packages were utilized for this comparison: SAP2000 Ultimate (v21.2) and EngiLab Truss.2D 2022 Pro (v1.3). Additionally, for one example, comparisons were made with closedform solutions from the literature. 7.1 Validation with SAP2000 All five truss examples were validated against SAP2000, with results matching perfectly for node displacements, support reactions, and element axial forces. Here, we present the validation 18 <u>Vagelis Plevris and Afaq Ahmad</u> for the third example, illustrated in Figure 5. The following properties were used for numerical calculations: - Length ( _L_ ): 8 m - Height ( _H_ ): 6 m - Axial stiffness ( _EA_ ): Derived using _E_ =200×10 <sup>6</sup> kN/m² (200 GPa) and _A_ =4×10 <sup>-4</sup> m² (4 cm²), resulting in _EA_ =8×10 <sup>4</sup> kN. - Point load ( _P_ ): 100 kN The truss was modeled in SAP2000, as depicted in Figure 8. Figure 8. The truss model of Example 3, modeled with SAP2000. Table 20 presents a comparison of element axial forces between the symbolic software and SAP2000. The results are identical, apart from minor differences in decimals due to rounding. This consistency extends to node displacements and support reactions, though those results are not shown here. It is important to note that SAP2000 includes shear deformations by default in all frame and truss models. However, the Euler–Bernoulli beam theory, employed in our program, neglects the effects of shear deformation, as it assumes that transverse shear strain is insignificant. To ensure a meaningful comparison between the results from our symbolic program and SAP2000, the shear effects in SAP2000 were effectively minimized by setting the frame property modifier for shear area to a very high value (10 <sup>6</sup> ). This adjustment aligns the SAP2000 model with the assumptions of the Euler–Bernoulli theory, allowing for consistent and accurate validation. 19 <u>Deriving Analytical Solutions Using Symbolic Matrix Structural Analysis: Part 2 – Plane Trusses</u> Table 20. Element axial forces for Example 3 – Comparison with SAP2000. Numeric value of Element # Axial Force SAP2000 Result <u>symbolic expression</u> 1 _P_ 50 50 2 _<u>P</u>_ 2 - -50 -50 2 P <u>(</u> 2 _H_ + _L_ <u>)</u> 3 2 _H_ P <u>(</u> 2 _H_ + _L_ <u>)</u> - -166.667 -166.666 P <u>(</u> 2 _H_ _H_ _P_ 4 _H_ 2 + _L_ 2 ( _H_ - _L_ ) 4 -30.0463 -30.046 + _L_ 2 ( _H_ _P_ 4 _H_ 2 + _L_ 2 ( _H_ - _L_ 2 _HL_ 5 6 _<u>P</u>_ <u>4</u> _<u>H</u>_ 2 <u>+</u> _<u>L</u>_ 2 - -90.1388 90.138 2 _L_ _P_ 4 _H_ 2 + _L_ 2 2 _L_ 90.13878 -90.139 _P_ 4 _H_ 2 + _L_ 2 ( _H_ + _L_ ) 7 _P_ 4 _H_ 2 + _L_ 2 ( _H_ + _L_ ) - -210.324 -210.323 _P_ 4 _H_ 2 + _L_ 2 ( _H_ + _L_ <u>2</u> _<u>HL</u>_ 7.2 Validation with EngiLab Truss.2D Pro All five truss examples were also validated using EngiLab Truss.2D 2022 Pro, a specialized software for plane truss analysis. In every case, the results for node displacements, support reactions, and element axial forces matched perfectly. The validation for the fourth example, shown in Figure 6, is presented here. The following properties were used for numerical calculations: - Length ( _L_ ): 5 m - Height ( _H_ ): 6 m - Axial stiffness ( _EA_ ): Derived using _E_ =200×10 <sup>6</sup> kN/m² (200 GPa) and _A_ =2×10 <sup>-3</sup> m² (20 cm²), resulting in _EA_ =4×10 <sup>5</sup> kN. - Point load ( _P_ ): 50 kN The truss was modeled in EngiLab Truss.2D Pro, as illustrated in Figure 9. 20 <u>Vagelis Plevris and Afaq Ahmad</u> (a) (b) Figure 9. The truss of Example 4, modeled with EngiLab Truss.2D Pro: (a) Truss model, (b) Deformed state of the model. Table 21 compares node displacements between the symbolic software and EngiLab Truss.2D Pro, showing identical results. This consistency also applies to support reactions and element axial forces, though these results are not included here. Table 21. Node displacements for Example 3 (for selected nodes) – Comparison with EngiLab Truss.2D Pro. Numeric value of symbolic <u>expression</u> EngiLab Truss.2D Pro Result _x_ -Displacement Node # _y_ -Displacement <u>(</u> _<u>Dy</u>_ <u>)</u> _x_ -Displacement _y_ -Displacement <u>(</u> _<u>Dx</u>_ <u>)</u> <u>(</u> _<u>Dy</u>_ <u>)</u> <u>(</u> _<u>Dx</u>_ <u>)</u> <u>(</u> _<u>Dy</u>_ <u>)</u> Node 6 0.0081 -0.0045 0.0081 -0.0045 Node 7 0.02287 0.0045 0.02287 0.0045 Node 9 0.007058 -0.02095 0.00706 -0.02095 <u>Node 11</u> <u>0.006538</u> <u>-0.03827</u> <u>0.00654</u> <u>-0.03827</u> <u>(</u> _<u>Dx</u>_ <u>)</u> <u>(</u> _<u>Dx</u>_ <u>)</u> 7.3 Validation with results from the literature The fifth truss example is based on a case from the literature, specifically Case No. 1 from Tinkov’s work [38]. In this study, the author presents an analytical formula for calculating the vertical displacement of the central node (node 6 in our model). The formula is as follows: _<u>P</u>_ _<u>Aa</u>_ 3 <u>+</u> _<u>Bb</u>_ 3 <u>+</u> _<u>Cc</u>_ 3 = 6 _EF_  _Db_ 2 (6) Tinkov’s methodology provides analytical solutions for displacements in various truss configurations, using the parameter _n_, which defines the truss topology and the number of 21 <u>Deriving Analytical Solutions Using Symbolic Matrix Structural Analysis: Part 2 – Plane Trusses</u> repetitions of the main truss pattern, for each truss configuration. For the specific truss model shown in Figure 7, it is _n_ = 2. According to the study [38], the values of the parameters _A_, _B_, _C_, and _D_ for the specific truss are as follows: - _A_ = _n_ +1 = 3 - _B_ = _n_ = 2 _n_ ( _n_ + 1)(2 _n_ + 1) - _C_ = = 10 3 - _D_ = 2 _n_ <sup>2</sup> = 8 - _a_ = _L_ (the _L_ symbolic variable used in our study) - _b_ = _H_ (the _H_ symbolic variable used in our study) - _c_ = _a_ 2 + _b_ 2 = _L_ 2 + _H_ 2 It is important to note that in Eq. (6) the variable _F_ represents the cross-sectional area. Substituting _F_ with our variable _A_ for the cross-sectional area, and taking the above values of the parameters into account, the final formula for the vertical displacement of node 6, as derived by Tinkov [38], becomes: _L_ 2 + _H_ 2 ## ( ) 3/2 3 + 2 _H_ 3 + 10 _L_ 2 + _H_ 2 3/2 ## P 3 L 3 + 2 H 3 + 10 ( L 2 + H 2 ) = 6  2 (7) ## P 3 L 3 + 2 H 3 + 10 ( = 6 _EA_  8 _H_ 2 ## P 3 L 3 + 2 H 3 + 10 ( L 2 + H _EA_  8 _H_ 2 8 Eq. (7) matches the formula derived by our program for the vertical displacement of node 6, as presented in Table 17. The negative sign in the equation from Table 17 indicates that the displacement is directed downwards. 8 Sensitivity Analysis Sensitivity analysis is an essential tool in structural engineering for evaluating how variations in input parameters influence a system’s response. It is critical for assessing the robustness of a design and optimizing performance by identifying the parameters that most significantly impact structural behavior. Engineers often seek to understand how changes in material properties, geometric dimensions, or applied loads affect displacements, stresses, reaction forces, or internal forces. By offering insights into these relationships, sensitivity analysis facilitates more informed decision-making during the design process. Symbolic solutions provide a distinct advantage for conducting sensitivity analysis. With symbolic representations of structural behavior, engineers gain access to closed-form expressions that explicitly describe how parameters—such as Young’s modulus, crosssectional area, or applied loads—affect the system’s response. These expressions enable the direct calculation of partial derivatives of output quantities with respect to input parameters. For example, given a symbolic expression for displacement, one can compute the sensitivity of displacement at a specific point to changes in material stiffness or geometric properties. Similarly, partial derivatives of reactions or internal forces with respect to other parameters can be easily obtained. 22 <u>Vagelis Plevris and Afaq Ahmad</u> For instance, in the third numerical example of Section 6.3, the vertical displacement at Node 2 is calculated symbolically (see Table 11) as follows _P_  2 _HL_ 2 + (4 _H_ 2 + _L_ 2)3/2 + _L_ 3     2  = − (8) 2 2 + (4 _H_ 2 + _L_ 2)3/2 + _L_ 3 _P_  2 _HL_ 2 + (4 _H_ 2 + _L_ 2)3/2 + _L_ 3   2 _Dy_ = − 4 _EAH_ 2 _P_  2 _HL_ 2 + (4 _H_ 2 + _L_ 2)   2 _y_ = − 4 _EAH_ 2 2 Using MATLAB’s Symbolic Math Toolbox, partial derivatives of the displacement with respect to parameters such as axial stiffness ( _EA_ ), length ( _L_ ), or height ( _H_ ) can be computed efficiently. Commands such as _diff_ for symbolic differentiation and _simplify_ for simplifying the resulting expressions make this process straightforward, yielding clear mathematical relationships that highlight the sensitivity of the system’s response to design changes. The partial derivates of the displacement _D_ y with respect to ( _EA_ ), _L_ and _H_ can be easily found as: _P_  2 _HL_ 2 + <u>(4</u> _<u>H</u>_ 2 <u>+</u> _<u>L</u>_ 2 <u>)3/2</u> + _L_ 3     _Dy_ <u></u> <u>2</u> <u></u> ###  ( EA ) = − 4 ( EA ) 2 H 2 (9) 2 + <u>(4</u> _<u>H</u>_ 2 <u>+</u> _<u>L</u>_ 2 <u>)3/2</u> + _L_ 3 _P_  2 _HL_ 2 + <u>(4</u> _<u>H</u>_ 2 <u>+</u> _<u>L</u>_ 2 <u>)3/2</u> + _L_ 3  _Dy_ <u></u> <u>2</u> _<u>y</u>_ 2 _HL_ 2 + <u>(4</u> _<u>H</u>_ 2 <u>+</u> _<u>L</u>_ 2 <u>)</u> <u>2</u> ### ( EA ) = − 4 ( EA ) 2 ### EA ) 4 ( EA ) 2 H 4 2 _H_ 2 8 _H_ + 6 _L_ + 3 4 _H_ 2 + _L_ 2 # ( ) _LP_ 8 _H_ + 6 _L_ + 3 4 _H_ 2 + _L_ 2 #  Dy ( )  _L_ = − 8 _EAH_ 2 (10) _LP_ 8 _H_ + 6 _L_ + 3 4 _H_ 2 + _L_ 2 # Dy ( = − 8 _H_ + 6 _L_ + 3 4 8 _EAH_ 2 _L_ 8 _EAH_ 8 2 _HL_ 2 + (4 _H_ 2 + _L_ 2 )3/2 - 6 _H_ 2 4 _H_ 2 + _L_ 2 + 2 _L_ 3 # ( ) (11) _P_ 2 _HL_ 2 + (4 _H_ 2 + _L_ 2 )3/2 - 6 _H_ 2 4 _H_ 2 + _L_ 2 + #  Dy (  _H_ = 4 _EAH_ 3 _H_ 2 _HL_ 2 + (4 _H_ 2 + _L_ 2 )3/2 - 6 _H_ 2 4 _P_ 2 _HL_ 2 + (4 _H_ 2 + _L_ 2 )3/2 - 6 _H_ 2 4 _H_ 2 + _L_ 2 + 2 _L_ # Dy ( = _H_ 4 _EA_ 4 _H_ 3 This symbolic approach offers a significant edge over numerical methods. In numerical analysis, results are typically confined to specific input values, requiring multiple reruns to evaluate parameter changes. Symbolic expressions, however, provide general solutions that inherently preserve the relationships between inputs and outputs, allowing for effortless exploration of parameter sensitivities without additional computational effort. By enabling direct and efficient sensitivity evaluations, symbolic solutions empower engineers to gain deeper insights into how design modifications affect structural performance. This capability is especially valuable during design optimization, where small adjustments can greatly impact the efficiency and cost-effectiveness of a structure. Unlike numerical methods, symbolic analysis eliminates the need for repetitive computations, saving time and providing a clearer understanding of the system’s behavior. This unique capability makes symbolic sensitivity analysis an indispensable tool for engineers. 9 Balancing Complexity and Practicality in Symbolic Computations The symbolic implementation of MSA offers flexibility and insight but presents challenges in computational efficiency and scalability, especially for large or complex 2D truss systems. As the number of degrees of freedom, elements, or loading conditions increases, symbolic expressions for stiffness matrices, force vectors, and displacements can become overly large 23 <u>Deriving Analytical Solutions Using Symbolic Matrix Structural Analysis: Part 2 – Plane Trusses</u> and computationally demanding. Addressing these challenges is critical to ensuring the practical applicability of symbolic MSA. A key challenge in symbolic computation is the exponential growth of expressions as system complexity increases. While simple truss systems produce elegant and manageable symbolic solutions, larger models with many symbolic parameters often result in excessively lengthy and difficult-to-interpret expressions. Such complexity, even when technically valid, reduces the practicality of the symbolic approach. Compact and clear expressions are crucial for generating meaningful insights into structural behavior. To address this, a hybrid symbolic-numerical approach proves effective and is fully supported by our program. This approach allows certain key parameters to remain symbolic while assigning numerical values to less critical variables. By combining symbolic flexibility with numerical efficiency, the analysis remains scalable and computationally manageable, enabling symbolic MSA to handle more complex 2D truss systems without excessive computational overhead. Ultimately, the value of symbolic solutions lies in their clarity and utility. Compact, interpretable solutions enhance understanding and practical application, while excessively complex expressions undermine these benefits. Striking the right balance between symbolic and numerical methods ensures that the advantages of symbolic MSA are fully realized in 2D truss analysis. 10 Conclusions This study introduces the development and application of an open-source MATLAB program for symbolic Matrix Structural Analysis of 2D trusses subjected to point loads. The freely available source code enables the efficient and precise generation of analytical solutions for plane trusses of any complexity. Beyond its practical engineering applications, the program serves as a valuable educational tool, providing clear and insightful symbolic solutions that enhance understanding of truss behavior. The program extends its functionality beyond deriving analytical solutions for node displacements, support reactions, and element axial forces. It also facilitates sensitivity analysis by allowing users to compute partial derivatives of output parameters with respect to input variables, leveraging MATLAB’s built-in symbolic differentiation commands. This capability is crucial for assessing how changes in design properties, such as material stiffness or geometric dimensions, influence structural response, making the tool invaluable for design exploration and performance evaluation. While symbolic solutions offer significant advantages, it is essential to balance complexity and clarity. Although the program can generate detailed and complex symbolic expressions, overly intricate solutions may impede practical application and interpretation. Concise and actionable analytical expressions are preferable as they enhance usability and provide meaningful insights. Efficiency, scalability, and clarity remain key considerations when employing symbolic computations in structural analysis. The program’s capabilities have been demonstrated through various examples, showcasing its potential to deliver precise and insightful analytical solutions for 2D trusses. The results have 24 <u>Vagelis Plevris and Afaq Ahmad</u> been rigorously validated using three complementary approaches: comparisons with results from SAP2000 Ultimate (v21.2), EngiLab Truss.2D 2022 Pro (v1.3), and analytical solutions from the literature. These validations demonstrate perfect agreement between the program’s outputs and the benchmark results, confirming the accuracy and reliability of the symbolic solutions and affirming the generality of the methodology. A natural extension of this work would be to apply the methodology to other structural systems, such as 3D trusses, where additional complexities like three-dimensional geometry and nodal connectivity can be handled symbolically. This future direction holds great promise for further expanding the applicability of symbolic MSA and its contributions to structural engineering research and education. Conflict of Interest The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest. References [1] Liu, W.K., S. Li, and H.S. Park, _Eighty Years of the Finite Element Method: Birth,_ _Evolution, and Future._ Archives of Computational Methods in Engineering, 2022. 29 (6): [p. 4431-4453 DOI: https://doi.org/10.1007/s11831-022-09740-9.](https://doi.org/10.1007/s11831-022-09740-9) [2] Plevris, V. and G. Tsiatas, _Computational Structural Engineering: Past Achievements and_ _Future Challenges._ Frontiers in Built Environment, 2018. 4 (21): p. 1-5 DOI: <u>[https://doi.org/10.3389/fbuil.2018.00021.](https://doi.org/10.3389/fbuil.2018.00021)</u> [3] Mazumder, S., _Chapter 1 - Introduction to Numerical Methods for Solving Differential_ _Equations_, in _Numerical Methods for Partial Differential Equations_, S. Mazumder, Editor. [2016, Academic Press. p. 1-49. DOI https://doi.org/10.1016/B978-0-12-849894-1.00001-](https://doi.org/10.1016/B978-0-12-849894-1.00001-9) <u>9.</u> [4] Plevris, V. and A. Ahmad, _Deriving Analytical Solutions Using Symbolic Matrix Structural_ _Analysis: Part 1 - Continuous Beams._ ArXiv e-prints, 2024(arXiv:2411.03514) DOI: <u>[https://doi.org/10.48550/arXiv.2411.03514.](https://doi.org/10.48550/arXiv.2411.03514)</u> [5] Papadrakakis, M., N.D. Lagaros, Y. Tsompanakis, and V. Plevris, _Large Scale Structural_ _Optimization: Computational Methods and Optimization Algorithms._ Archives of Computational Methods in Engineering, 2001. 8 (3): p. 239-301 DOI: <u>[https://doi.org/http://dx.doi.org/10.1007/BF02736645.](https://doi.org/http:/dx.doi.org/10.1007/BF02736645)</u> [6] Lagaros, N.D., V. Plevris, and N.A. Kallioras, _The Mosaic of Metaheuristic Algorithms in_ _Structural Optimization._ Archives of Computational Methods in Engineering, 2022. 29 : p. [5457–5492 DOI: https://doi.org/10.1007/s11831-022-09773-0.](https://doi.org/10.1007/s11831-022-09773-0) [7] Moses, J., _Macsyma: A personal history._ Journal of Symbolic Computation, 2012. 47 (2): [p. 123-130 DOI: https://doi.org/10.1016/j.jsc.2010.08.018.](https://doi.org/10.1016/j.jsc.2010.08.018) [8] Farahmand-Tabar, S. and K. Aghani, _Chapter 2 - Matrix Analysis of Framed Structures_, in _Practical Programming of Finite Element Procedures for Solids and Structures with_ _MATLAB®_, S. Farahmand-Tabar and K. Aghani, Editors. 2024, Elsevier. p. 29-116. DOI <u>[https://doi.org/10.1016/B978-0-443-15338-9.00007-1.](https://doi.org/10.1016/B978-0-443-15338-9.00007-1)</u> 25 <u>Deriving Analytical Solutions Using Symbolic Matrix Structural Analysis: Part 2 – Plane Trusses</u> [9] Geisel, A. and F. Svaricek, _A MATLAB Toolbox for Structural Analysis of Linear Systems._ IFAC-PapersOnLine, 2019. 52 (17): p. 7-12 DOI: <u>[https://doi.org/10.1016/j.ifacol.2019.11.018.](https://doi.org/10.1016/j.ifacol.2019.11.018)</u> [10] Yang, B., _Chapter 6 - Static analysis of constrained multispan beams_, in _Stress, Strain,_ _and Structural Dynamics (Second Edition)_, B. Yang, Editor. 2023, Academic Press. p. 183[223. DOI https://doi.org/10.1016/B978-0-12-818563-6.00018-3.](https://doi.org/10.1016/B978-0-12-818563-6.00018-3) [11] Kattan, P.I., _MATLAB guide to finite elements: An interactive approach_ . MATLAB Guide to Finite Elements: An Interactive Approach. 2008. 1-429.DOI: 10.1007/978-3-54070698-4. [12] Papazafeiropoulos, G. and V. Plevris, _OpenSeismoMatlab: New Features, Verification and_ _Charting_ _Future_ _Endeavors._ Buildings, 2024. 14 (1): p. 304 DOI: <u>[https://doi.org/10.3390/buildings14010304.](https://doi.org/10.3390/buildings14010304)</u> [13] Yang, B., _Chapter 9 - Dynamics of particles and rigid bodies_, in _Stress, Strain, and_ _Structural Dynamics (Second Edition)_, B. Yang, Editor. 2023, Academic Press. p. 351[430. DOI https://doi.org/10.1016/B978-0-12-818563-6.00012-2.](https://doi.org/10.1016/B978-0-12-818563-6.00012-2) [14] Yang, B., _Chapter 14 - Dynamic analysis of constrained, combined, and stepped beams_, in _Stress, Strain, and Structural Dynamics (Second Edition)_, B. Yang, Editor. 2023, [Academic Press. p. 801-872. DOI https://doi.org/10.1016/B978-0-12-818563-6.00019-5.](https://doi.org/10.1016/B978-0-12-818563-6.00019-5) [15] François, S., et al., _Stabil: An educational Matlab toolbox for static and dynamic structural_ _analysis._ Computer Applications in Engineering Education, 2021. 29 (5): p. 1372-1389 [DOI: https://doi.org/10.1002/cae.22391.](https://doi.org/10.1002/cae.22391) [16] Plevris, V. and G. Solorzano, _A Collection of 30 Multidimensional Functions for Global_ _Optimization_ _Benchmarking._ Data, 2022. 7 (4): p. 52 DOI: <u>[https://doi.org/10.3390/data7040046.](https://doi.org/10.3390/data7040046)</u> [17] Andreassen, E., A. Clausen, M. Schevenels, B.S. Lazarov, and O. Sigmund, _Efficient_ _topology optimization in MATLAB using 88 lines of code._ Structural and Multidisciplinary Optimization, 2011. 43 (1): p. 1-16 DOI: <u>[https://doi.org/https://doi.org/10.1007/s00158-](https://doi.org/https:/doi.org/10.1007/s00158-010-0594-7)</u> <u>[010-0594-7.](https://doi.org/https:/doi.org/10.1007/s00158-010-0594-7)</u> [18] Sigmund, O., _A 99 line topology optimization code written in Matlab._ Structural and Multidisciplinary Optimization, 2001. 21 (2): p. 120-127 DOI: <u>[https://doi.org/10.1007/s001580050176.](https://doi.org/10.1007/s001580050176)</u> [19] Solorzano, G. and V. Plevris, _Optimum Design of RC Footings with Genetic Algorithms_ _According_ _to_ _ACI_ _318-19._ Buildings, 2020. 10 (6): p. 1-17 DOI: <u>[https://doi.org/10.3390/buildings10060110.](https://doi.org/10.3390/buildings10060110)</u> [20] Arora, J.S., _Chapter 7 - Optimum Design with MATLAB®_, in _Introduction to Optimum_ _Design (Third Edition)_, J.S. Arora, Editor. 2012, Academic Press: Boston. p. 275-298. DOI <u>[https://doi.org/10.1016/B978-0-12-381375-6.00007-3.](https://doi.org/10.1016/B978-0-12-381375-6.00007-3)</u> [21] Ferreira, A.J.M. and N. Fantuzzi, _Bernoulli 2D Frames_, in _MATLAB Codes for Finite_ _Element Analysis: Solids and Structures_ . 2020, Springer International Publishing: Cham. [p. 105-121. DOI https://doi.org/10.1007/978-3-030-47952-7_7.](https://doi.org/10.1007/978-3-030-47952-7_7) [22] MathWorks, _Symbolic Math Toolbox™ User's Guide._ 2024 DOI. [23] Lynch, S., _A Tutorial Introduction to MATLAB and the Symbolic Math Toolbox_, in _Dynamical Systems with Applications using MATLAB®_ . 2004, Birkhäuser Boston: Boston, [MA. p. 1-13. DOI https://doi.org/10.1007/978-0-8176-8156-2_1.](https://doi.org/10.1007/978-0-8176-8156-2_1) 26 <u>Vagelis Plevris and Afaq Ahmad</u> [24] Attaway, S., _Chapter 14 - Advanced Mathematics_, in _MATLAB (Fifth Edition)_, S. Attaway, [Editor. 2019, Butterworth-Heinemann. p. 527-581. DOI https://doi.org/10.1016/B978-0-](https://doi.org/10.1016/B978-0-12-815479-3.00014-3) <u>[12-815479-3.00014-3.](https://doi.org/10.1016/B978-0-12-815479-3.00014-3)</u> [25] Valentine, D.T. and B.D. Hahn, _Chapter 17 - Symbolics toolbox_, in _Essential MATLAB for_ _Engineers and Scientists (Eighth Edition)_, D.T. Valentine and B.D. Hahn, Editors. 2023, [Academic Press. p. 351-368. DOI https://doi.org/10.1016/B978-0-32-399548-1.00024-2.](https://doi.org/10.1016/B978-0-32-399548-1.00024-2) [26] Asadi, F., _Symbolic Calculations in MATLAB®_, in _Applied Numerical Analysis with_ _MATLAB®/Simulink®: For Engineers and Scientists_, F. Asadi, Editor. 2023, Springer [Nature Switzerland: Cham. p. 55-71. DOI https://doi.org/10.1007/978-3-031-19366-8_2.](https://doi.org/10.1007/978-3-031-19366-8_2) [27] Mureşan, M., _Introduction to Mathematica® with Applications_ . 2017: Springer Cham, ISBN: 978-3-319-52003-2.DOI: 10.1007/978-3-319-52003-2. [28] Smith, E., _Maple_, in _Introduction to the Tools of Scientific Computing_ . 2022, Springer International Publishing: Cham. p. 219-244. DOI <u>[https://doi.org/10.1007/978-3-031-](https://doi.org/10.1007/978-3-031-16972-4_10)</u> <u>[16972-4_10.](https://doi.org/10.1007/978-3-031-16972-4_10)</u> [29] Cywiak, M. and D. Cywiak, _SymPy_, in _Multi-Platform Graphics Programming with Kivy:_ _Basic Analytical Programming for 2D, 3D, and Stereoscopic Design_ . 2021, Apress: [Berkeley, CA. p. 173-190. DOI https://doi.org/10.1007/978-1-4842-7113-1_11.](https://doi.org/10.1007/978-1-4842-7113-1_11) [30] Eriksson, A. and C. Pacoste, _Symbolic software tools in the development of finite elements._ Computers & Structures, 1999. 72 (4): p. 579-593 DOI: <u>[https://doi.org/10.1016/S0045-](https://doi.org/10.1016/S0045-7949%0x2898%0x2900333-2)</u> <u>[7949(98)00333-2.](https://doi.org/10.1016/S0045-7949%0x2898%0x2900333-2)</u> [31] Amberg, G., R. Tönhardt, and C. Winkler, _Finite element simulations using symbolic_ _computing._ Mathematics and Computers in Simulation, 1999. 49 (4): p. 257-274 DOI: <u>[https://doi.org/10.1016/S0378-4754(99)00054-3.](https://doi.org/10.1016/S0378-4754%0x2899%0x2900054-3)</u> [32] Pavlović, M.N., _Symbolic computation in structural engineering._ Computers & Structures, 2003. 81 [(22): p. 2121-2136 DOI: https://doi.org/10.1016/S0045-7949(03)00286-4.](https://doi.org/10.1016/S0045-7949%0x2803%0x2900286-4) [33] Levy, R., C.-S. Chen, C.-W. Lin, and Y.-B. Yang, _Geometric stiffness of membranes using_ _symbolic_ _algebra._ Engineering Structures, 2004. 26 (6): p. 759-767 DOI: <u>[https://doi.org/10.1016/j.engstruct.2003.12.011.](https://doi.org/10.1016/j.engstruct.2003.12.011)</u> [34] Murphey, T., _Symbolic Equations for the Stiffness and Strength of Straight Longeron_ _Trusses_, in _47th AIAA/ASME/ASCE/AHS/ASC Structures, Structural Dynamics, and_ _Materials Conference_ . 2006, American Institute of Aeronautics and Astronautics. p. 6298[6311. DOI https://doi.org/10.2514/6.2006-2123.](https://doi.org/10.2514/6.2006-2123) [35] Renton, J.D., _Automated derivation of structural formulae._ Computers & Structures, 1995. 56 [(6): p. 959-967 DOI: https://doi.org/10.1016/0045-7949(94)00567-M.](https://doi.org/10.1016/0045-7949%0x2894%0x2900567-M) [36] Skrinar, M. and T. Pliberšek, _On the derivation of symbolic form of stiffness matrix and_ _load vector of a beam with an arbitrary number of transverse cracks._ Computational Materials Science, 2012. 52 (1): p. 253-260 DOI: <u>[https://doi.org/10.1016/j.commatsci.2011.07.013.](https://doi.org/10.1016/j.commatsci.2011.07.013)</u> [37] Roque, C.M.C., _Symbolic and numerical analysis of plates in bending using Matlab._ Journal of Symbolic Computation, 2014. 61-62 : p. 3-11 DOI: <u>[https://doi.org/10.1016/j.jsc.2013.10.005.](https://doi.org/10.1016/j.jsc.2013.10.005)</u> [38] Tinkov, D.V., _Comparative analysis of analytical solutions to the problem of truss_ _structure deflection._ Magazine of Civil Engineering, 2015. 57 (5): p. 66-73 DOI: <u>[https://doi.org/10.5862/MCE.57.6.](https://doi.org/10.5862/MCE.57.6)</u> 27 <u>Deriving Analytical Solutions Using Symbolic Matrix Structural Analysis: Part 2 – Plane Trusses</u> [39] Kirsanov, M. and D. Tinkov, _Analytical calculation of the deflection of the lattice truss._ MATEC Web Conf., 2018. 193 [DOI: https://doi.org/10.1051/matecconf/201819303015.](https://doi.org/10.1051/matecconf/201819303015) [40] Kirsanov, M., _Analytical calculation of the frame with an arbitrary number of panels._ Magazine of Civil Engineering, 2018. 82 (6): p. 127-135 DOI: <u>[https://doi.org/10.18720/MCE.82.12.](https://doi.org/10.18720/MCE.82.12)</u> [41] Dasgupta, G., _Truss Analysis: A Structural Mechanics Tour of the FEM—Nodal_ _Equilibrium and Compatibility_, in _Finite Element Concepts: A Closed-Form Algebraic_ _Development_, G. Dasgupta, Editor. 2018, Springer New York: New York, NY. p. 43-63. [DOI https://doi.org/10.1007/978-1-4939-7423-8_2.](https://doi.org/10.1007/978-1-4939-7423-8_2) [42] Öchsner, A. and R. Makvandi, _Rods and Trusses_, in _Finite Elements for Truss and Frame_ _Structures: An Introduction Based on the Computer Algebra System Maxima_, A. Öchsner and R. Makvandi, Editors. 2019, Springer International Publishing: Cham. p. 9-42. DOI <u>[https://doi.org/10.1007/978-3-319-94941-3_3.](https://doi.org/10.1007/978-3-319-94941-3_3)</u> [43] Öchsner, A. and R. Makvandi, _Maxima—A Computer Algebra System_, in _Finite Elements_ _for Truss and Frame Structures: An Introduction Based on the Computer Algebra System_ _Maxima_, A. Öchsner and R. Makvandi, Editors. 2019, Springer International Publishing: [Cham. p. 3-7. DOI https://doi.org/10.1007/978-3-319-94941-3_2.](https://doi.org/10.1007/978-3-319-94941-3_2) [44] Charalampakis, A.E. and I. Chatzigiannelis, _Analytical solutions for the minimum weight_ _design of trusses by cylindrical algebraic decomposition._ Archive of Applied Mechanics, 2018. 88 [(1): p. 39-49 DOI: https://doi.org/10.1007/s00419-017-1271-8.](https://doi.org/10.1007/s00419-017-1271-8) [45] Muftu, S., _Chapter 5 - Finite element analysis of planar bars and trusses_, in _Finite Element_ _Method_, S. Muftu, Editor. 2022, Academic Press. p. 139-186. DOI <u>[https://doi.org/10.1016/B978-0-12-821127-4.00005-0.](https://doi.org/10.1016/B978-0-12-821127-4.00005-0)</u> 28

섹션 본문 111문단 · 37,903자

(제목 없음)

1This study extends the use of symbolic computation in Matrix Structural Analysis (MSA) to plane (2D) trusses, building on previous work that focused on continuous beams.An open-source MATLAB program, hosted on GitHub, was developed to perform symbolic analysis of 2D trusses under point loads for any configuration.Using MATLAB's Symbolic Math Toolbox, the program derives analytical expressions for displacements, support reactions, and axial forces, providing a deeper understanding of truss behavior.The symbolic approach also supports efficient and scalable sensitivity analysis by directly computing partial derivatives of outputs with respect to input parameters, enhancing design exploration and optimization.This tool serves as a valuable resource for both engineering practice and education, offering clear insights into parameter relationships and enriching the understanding of structural mechanics.The accuracy of the symbolic results has been rigorously validated against two commercial finite element software programs and results from the literature, with full agreement, confirming the validity and generality of the methodology.

Introduction

2The Finite Element Method (FEM), marking 80 years since its inception [1], is a cornerstone of structural analysis, providing a reliable numerical framework for solving complex engineering problems [2].Traditional FEM, while effective for detailed results, is limited in flexibility and generality as numerical solutions are tied to specific inputs, requiring full recomputation for changes in material properties, geometry, or external loads [3].Changes to these inputs require a full re-computation of the system, which is both time-consuming and computationally demanding, particularly for large-scale structures.Moreover, numerical results often conceal the relationships between key parameters, hindering a deeper understanding of structural behavior [4].

3For linear structures like beams, trusses, and frames, FEM is often referred to as Matrix Structural Analysis (MSA), sharing its principles and origins.MSA for such linear structures allows direct derivation of stiffness matrices without numerical integration, simplifying the process and offering greater insight.A limitation of traditional numerical FEM and MSA is their dependence on predefined boundary conditions and loading scenarios.Any changes in the model or the loads require regenerating and recalculating the entire model, resulting in a repetitive and time-intensive workflow.This lack of adaptability restricts the use of these methods in tasks like real-time analysis or mathematical optimization [5], where evaluating multiple configurations quickly and efficiently is essential [6].

4Before the advent of computers, most mathematical and engineering analyses relied heavily on closed formulas and symbolic computation, as numerical methods and solutions were virtually nonexistent.With the rise of computing technology, numerical methods rapidly evolved and became dominant in all scientific fields, offering efficient solutions to complex problems.However, efforts to bridge the gap between symbolic and numerical methods emerged, such as the development of the Macsyma system in the 1960s by MIT's AI group [7].Symbolic computation can provide compelling solutions to challenges associated with numerical methods such as FEM and MSA.Unlike purely numerical methods, which produce specific values, symbolic computation enables the manipulation and solving of mathematical expressions in their exact algebraic form.This capability facilitates the derivation of analytical solutions and offers deeper insights into structural behavior, enhancing understanding and flexibility in the analysis.

5MATLAB is widely used in structural engineering for its powerful numerical algorithms, addressing challenges related to matrix analysis of structures and FEM [8][9][10][11], structural dynamics [12][13][14][15], optimization [16][17][18][19][20], and others [21].While renowned for numerical computing, MATLAB also supports symbolic computation through its Symbolic Math Toolbox [22,23].The toolbox extends the program's capabilities, enabling symbolic algebraic simplifications, differentiation, integration, equation solving, and matrix manipulation [24][25][26].In engineering, physics, and mathematics, the toolbox is invaluable for analyzing complex systems, offering exact, parameterized solutions that enhance understanding and flexibility.For researchers and educators, it facilitates the derivation of closed-form solutions, exploration of theoretical concepts, and intuitive presentation of results.Its integration with MATLAB's numerical environment allows efficient transitions between symbolic and numerical analyses, providing a versatile platform for both theoretical studies and practical applications.Other similar numerical platforms also support symbolic computation, like Mathematica [27], Maple [28], and SymPy (Python) [29].

6Building on previous work focused on continuous beams [4], this study extends the methodology to plane trusses, retaining shared features while introducing capabilities specifically designed for 2D truss analysis.The study presents an innovative, open-source MATLAB program tailored for symbolic MSA of 2D trusses subjected to joint point loads.For the first time, this program enables precise and efficient derivation of analytical solutions for any 2D truss configuration, offering symbolic expressions for node displacements, support reactions, and element axial forces.Key features of the program include:

7• Fully open-source code, accessible online with comprehensive documentation and five illustrative numerical examples.

8• Capability to derive closed-form solutions for various output quantities (e.g., displacements, support reactions, axial forces) for 2D trusses of any complexity.

9• Support for sensitivity analysis, using MATLAB's built-in symbolic differentiation to assess the impact of input parameters on output quantities.

10• Full validation of the symbolic results through comparison with established commercial finite element software and results from the literature, ensuring accuracy, reliability, and general applicability.

11The source code, available on GitHub (https://github.com/vplevris/SymbolicMSA-2DTrusses),includes all examples discussed in this study.Developed using MATLAB R2024b and its symbolic toolbox, the program is expected to be compatible with earlier versions.With clean, well-documented MATLAB code and minimal setup required, users are encouraged to explore the program, customize it to suit their specific needs, and efficiently generate their own analytical solutions.

Literature Review

12Few studies have addressed stiffness matrices symbolically.Eriksson and Pacoste [30] explored the use of symbolic software for developing finite element procedures, focusing on complex problems like higher-order instabilities requiring precise formulations.They emphasized that symbolic tools improve efficiency and clarity, enabling effective comparisons between element assumptions.Their research includes beam formulations for plane and space models, allowing analytical verification of equivalence between displacement and co-rotational approaches.Symbolic derivation also simplifies finite space rotations and systematically connects local displacements to global variables.Amberg et al. [31] developed a Maple-based toolbox for generating finite element codes, facilitating 1D, 2D, and 3D simulations.This toolbox has significantly accelerated research in areas like thermocapillary convection, welding, and crystal growth by reducing development time to hours.It offers flexibility, transparency, and ease of modification, enabling researchers to focus on physical insights while minimizing errors and debugging.Pavlovic [32] highlighted symbolic computation as a powerful complement to traditional numerical methods in structural engineering.He reviewed its underutilized applications and emphasized its potential to advance classical structural analysis by addressing complex problems with greater efficiency.He advocated for integrating symbolic and numerical methods to leverage their complementary strengths in solving structural mechanics problems effectively.Symbolic algebra has found diverse applications in structural engineering, enabling precise and insightful formulations of complex problems.For example, Levy et al. [33] utilized symbolic algebra to derive geometric stiffness matrices for membrane shells, allowing for the consideration of finite rotations without relying on small rotation assumptions.This approach enhances nonlinear analysis by providing explicit and physically intuitive derivations, demonstrating the power of symbolic methods in advancing structural mechanics.Murphey [34] derived generic symbolic equations for the effective stiffness and strength of beam-like trusses with arbitrary numbers of longerons and diagonal lacings, assuming relatively soft diagonals.These equations unify previous discrete cases and simplify truss design by allowing modifications through constant values.Covering bending, torsion, shear, and axial loading, the approach enables rapid preliminary sizing and optimization, validated against finite element analysis and prior results by Renton [35].

13Skrinar and Pliberšek [36] derived a symbolic stiffness matrix and load vector for slender beams with transverse cracks under uniform loading.Using the principle of virtual work, they provided closed-form expressions that clarify the influence of crack depth and location on flexural deformation, aiding in crack identification and modeling per European design code EC8.Roque [37] explored symbolic and numerical analysis of bending plates using MATLAB, demonstrating its versatility in combining symbolic and numerical methods seamlessly to enhance problem-solving efficiency and accuracy.

14Tinkov [38] derived new exact analytical expressions for the deflection of various planar trusses and analyzed existing solutions using the Maxwell-Mohr formula under elastic assumptions.Employing induction on the number of panels and symbolic computations in Maple, the study identified key characteristics and limitations related to panel count.Comparative analysis with known solutions, validated using the Lira software package, demonstrated the accuracy and applicability of the derived analytical expressions for truss deflection.Kirsanov and Tinkov [39] developed an algorithm to derive deflection and horizontal displacement formulas for planar statically determinate trusses under various loading conditions.Using symbolic mathematics in Maple, they generalized solutions for trusses with increasing panels, constructing and solving recurrence equations for polynomial coefficients.Their method identifies asymptotic properties and extreme points in deflection behavior, providing valuable benchmarks for validating numerical calculations in structural analysis.In a similar study, Kirsanov [40] proposed a rod model for planar statically determinate frames with four supports, deriving analytical deflection formulas under various loads using Maple.Through symbolic equilibrium equations, he identified kinematic instability for specific panel numbers and determined deflections for stable configurations using Maxwell-Mohr's formula.The method generalized solutions via double induction and recurrence equations, revealing significant deflection variations.Force expressions in critical rods were also derived, aiding design evaluation and optimization.

15Dasgupta [41] explored the application of symbolic computations using Mathematica to derive equilibrium equations in terms of nodal displacements.Assuming linear elastic behavior and small displacements, the study demonstrates how bar stiffness matrices and nodal forces are integrated to construct the global system matrix.The Mathematica Solve function is employed to obtain exact solutions, offering an educational perspective on structural mechanics while showcasing the power of symbolic tools in finite element analysis.Öchsner and Makvandi [42] discuss the theory of single rod elements and plane truss structures, providing a detailed solution procedure through a comprehensive example.They combined manual calculations with insights into computer implementation using Maxima [43], enabling a clear understanding of the FEM.The work includes practical Maxima examples, facilitating the application of the methods to other problems and serving as a valuable resource for learning symbolic and numerical analysis in truss design.

16In the area of structural optimization, analytical solutions continue to stand out, as demonstrated by Charalampakis and Chatzigiannelis [44].They utilized the cylindrical algebraic decomposition (CAD) algorithm to derive globally optimal solutions for minimum weight truss design.Their methodology, supported by symbolic computation, provides exact solutions to benchmark problems, offering formal validation for the convergence of metaheuristic methods to global optima.While computationally intensive and not yet practical for real-life engineering, CAD's potential grows with advances in algorithmic improvements and computing power.

Stiffness Matrix of a Plane Truss Element

17The stiffness matrix is essential in MSA as it establishes the relationship between applied forces and resulting displacements in a structural system.Typically, in MSA and the FEM, stiffness matrices are computed numerically for each element and then assembled into a global system representing the entire structure.However, for linear elements in MSA, it is often feasible to derive an exact symbolic expression for an element's stiffness matrix [42,45].

18One such example is the 2D Truss Element, which has one degree of freedom (DOF) per node in the element's local system (displacement along the element's axis).This element is commonly used in linear static analysis of plane trusses.Figure 1 shows the element in its local coordinate system, where the two DOFs-axial displacements at each end-are illustrated.In plane trusses, each node of the model has two DOFs in the global coordinate system, corresponding to displacements in the x and y global directions.There are no rotations; each element experiences only axial deformation, resulting in axial forces and stresses, with no shear forces or bending moments.Since plane truss elements can have various orientations on the plane, each element's stiffness matrix must be transformed (rotated) to a common coordinate system to construct the global stiffness matrix of the whole model.Figure 2 shows an inclined element on the 2D plane, where the angle θ defines the rotation needed from the global x-axis to align with the local element axis with a counter-clockwise rotation.The figure also shows the local and global axes, with DOF numbering in the global system.For a 2D truss element, there are four DOFs in total, with two DOFs at each node, all referenced to the global axes, as shown in Figure 2. The symbolic 2×2 stiffness matrix for the 2D truss element, corresponding to the two local DOFs depicted in Figure 1, is expressed in Eq. ( 1).

19The transformation matrix, which is a 2×4 matrix, is given by Eq. ( 2) [42] 2 00 [] 00

20where: cos( ) sin( )

21The global stiffness matrix 2 [] t k of the element, a 4×4 matrix corresponding to the four DOFs illustrated in Figure 2, is obtained using the following expression [42]:

22In these equations, E is Young's modulus of the material, A is the cross-sectional area, and L is the length of the truss element.

Definition of the Model Symbolically

23In Part 1 of this work, which was focused on continuous beams [4], the beam model was defined symbolically using the variables: Lengths, Supports, PointLoads, and UniformLoads.This approach worked well for beams because all elements were aligned along a single line, making the structure relatively simple to describe using only the length of each element and assuming continuous numbering from left to right for both nodes and elements.However, in 2D trusses, the geometry of the model is more complex, with nodes that can connect multiple elements in various orientations.Therefore, in this 2D truss implementation, we introduce a different set of variables for our model, namely:

24• NodeCoords: Coordinates (x, y) of the nodes (matrix of size NumNodes×2).

25• ElemMatSec: The stiffness of each element, as the product E•A, with E being the modulus of elasticity of the material and A the cross-sectional area (column vector of size NumElements).

26• ElemCon: Connectivity of the elements, i.e.ID of start node i and end node j for each element (matrix of size NumElements×2).

27• Supports: The supports for each node and each DOF, where 1 means constrained and 0 means free to move (matrix of size NumNodes×2).

28• PointLoads: The point loads for each node and each DOF (matrix of size NumNodes×2).

29As shown above, instead of specifying element lengths, we define each node's coordinates (x and y values) and specify the element connectivity, indicating which nodes each element connects.This setup allows the program to model any 2D truss geometry effectively, regardless of complexity, as the element lengths and orientations are automatically derived from the nodal coordinates.This approach provides greater flexibility, enabling efficient modeling of intricate truss structures without manually calculating individual element properties.

30For instance, the input file for the first example, examined in Section 6, is as follows:

Importance and Educational Benefits of Symbolic Solutions in 2D Truss Analysis

31Symbolic representation in structural analysis offers engineers and researchers valuable insights into structural behavior.By preserving algebraic relationships between parameters, symbolic MSA enables a detailed exploration of how variations in material properties, geometry, or loading conditions influence the overall structural response.This approach provides parameterized solutions that are not limited to specific input values, offering flexibility and adaptability.Additionally, symbolic expressions allow for the straightforward calculation of partial derivatives with respect to input parameters, making sensitivity analysis and design optimization more efficient and accessible.

32Symbolic MSA also holds significant educational value.It enhances the understanding of structural engineering concepts by clearly demonstrating the relationships between key parameters.Unlike purely numerical methods, which deliver results without exposing the underlying mechanics, symbolic solutions offer a transparent view of these interactions, fostering a deeper conceptual understanding.A key benefit of using symbolic solutions is the clear visualization of how parameters such as Young's modulus E, cross-sectional area A, and element length L influence the nodal displacements or the axial force or stress in truss members.In contrast to numerical methods, which often give isolated numerical values, symbolic expressions explicitly show the dependencies between input parameters and the resulting displacements or internal forces.As a result, symbolic MSA is a powerful tool for research and also an effective resource for teaching and communicating complex structural mechanics in a clear and intuitive manner.

33Symbolic solutions also help students grasp the concept of superposition and the cumulative effect of different loads on the truss system.By analyzing symbolic expressions for axial forces or nodal displacements, students can observe how various load cases contribute to the overall response, which may not be as evident in purely numerical results.

34Another advantage has to do with sensitivity analysis and design optimization.Symbolic expressions allow for direct differentiation with respect to parameters such as E or A, enabling students to easily explore how changes in material or geometric properties can affect the performance of the truss.This capability is crucial for understanding structural sensitivity and optimizing designs effectively.

35In summary, symbolic analysis provides a transparent and accessible way to understand the relationships between structural parameters and the response of truss systems.It enhances learning by making complex concepts clearer and equips students with the skills needed for parametric studies, sensitivity analysis, and optimization.This approach offers a valuable educational tool for mastering the fundamentals of truss analysis in structural engineering.

Numerical Examples

36We consider five numerical examples of differing levels of complexity.In these, EA is treated as a single symbolic parameter, since E and A consistently appear together in stiffness and other analytical expressions in 2D trusses.Nevertheless, each member can have its own EA properties, i.e. a member can be stiffer than another.Table 1 provides detailed descriptions of the numerical examples and the associated symbolic parameters for each.The first numerical example is a simple 2-bar truss with two members and a point load P, as shown in Figure 3.The symbolic parameters are three: EA, L, and P. Table 2 shows the details of the model, as given in MATLAB.In every example, the number of nodes (NumNodes) is defined by the rows of the NodeCoords matrix and the number of elements (NumElements) is defined by the rows of the ElemMatSec matrix.In this example we have 2 elements and 3 nodes.In a 2D truss, all point loads are defined on nodes.There are no uniform loads.3, Table 4 and Table 5 present the results of the symbolic analysis in terms of the symbolic parameters.Table 3 presents the Node displacements, while Table 4 shows the support reactions and Table 5 the element axial forces.The element forces are reported here as positive when the member is in tension and negative when the member is under compression.The analytical expressions for the element stresses are not reported in the results, as the stress for any element can be easily found by dividing the force of the element with its cross-sectional area, A.

Element #

37Axial Force

Numerical Example 2 (4 Symbolic Parameters)

38The second numerical example is the truss shown in The results of the symbolic analysis are given in Table 7, Table 8, and Table 9, for Node displacements, support reactions, and element axial forces, respectively.

Numerical Example 3 (4 Symbolic Parameters)

39The third numerical example is the truss shown in Figure 4.It has 5 nodes and 7 elements.The symbolic parameters are four: EA, L, H, and P. Table 6 shows the details of the model, as given in MATLAB.

40Table 10.Details of the input parameters of the 3 rd numerical example.The results of the symbolic analysis are given in Table 11, Table 12, and Table 13, for Node displacements, support reactions, and element axial forces, respectively.

Numerical Example 4 (4 Symbolic Parameters)

41The fourth numerical example is the truss structure shown in Figure 6.The symbolic parameters are four: EA, L, H, and P.This model is relatively large, comprising 12 nodes and 21 elements.Detailed specifications of the model can be found in the input file for Example 4 in the source code repository.Each element is defined sequentially from the lower-numbered node to the higher-numbered node; for instance, element 7 connects nodes 4 and 5 in that order, while element 15 connects nodes 8 and 9.The supports include a pinned support at node 1 and a roller support at node 2, as illustrated in the figure .The results of the symbolic analysis are reported in Table 14, Table 15 and Table 16, for Node displacements (for selected nodes); support reactions; and element axial forces (for all elements), respectively.

Numerical Example 5 (4 Symbolic Parameters)

42The fifth numerical example is taken from the literature.In particular, it is the case No 1 truss model from the work of Tinkov [38].The truss is shown in Figure 6.The symbolic parameters are four: EA, L, H, and P. The model consists of 11 nodes and 18 elements, with detailed specifications available in the input file for Example 5 in the source code repository.Each element is defined sequentially, connecting the lower-numbered node to the higher-numbered node.The supports are pinned at nodes 1 and 11, as shown in the figure.The model is fully symmetric, including its loading, so identical results are expected on both sides of the truss.

43The results of the symbolic analysis are given in Table 17, Table 18, and Table 19, for Node displacements (for selected nodes); support reactions; and element axial forces, respectively.

Validation of Results

44The validation of any result is a critical step in establishing its reliability, especially for symbolic solutions, which are designed to be general and applicable to various configurations.Unlike numerical methods that directly produce specific results for a given set of inputs, symbolic solutions retain algebraic relationships, making them more versatile but also requiring rigorous validation to ensure accuracy across diverse scenarios.Validation is essential to confirm that the derived symbolic expressions accurately represent the behavior of the structural system for any configuration.

45A systematic validation procedure was employed in this study.Using MATLAB's subs command, all symbolic variables were replaced with numeric values, allowing the symbolic results to be expressed numerically for direct comparison with other finite element software.This enabled precise evaluation of the symbolic results for specific truss configurations.Two software packages were utilized for this comparison: SAP2000 Ultimate (v21.2) and EngiLab Truss.2D2022 Pro (v1.3).Additionally, for one example, comparisons were made with closedform solutions from the literature.

Validation with SAP2000

46All five truss examples were validated against SAP2000, with results matching perfectly for node displacements, support reactions, and element axial forces.Here, we present the validation for the third example, illustrated in Figure 5.The following properties were used for numerical calculations:

47• Length (L): 8 m

48• Height (H): 6 m

49• Axial stiffness (EA): Derived using E=200×10 6 kN/m² (200 GPa) and A=4×10 -4 m² (4 cm²), resulting in EA=8×10 4 kN.

50• Point load (P): 100 kN

51The truss was modeled in SAP2000, as depicted in Figure 8. Table 20 presents a comparison of element axial forces between the symbolic software and SAP2000.The results are identical, apart from minor differences in decimals due to rounding.This consistency extends to node displacements and support reactions, though those results are not shown here.

52It is important to note that SAP2000 includes shear deformations by default in all frame and truss models.However, the Euler-Bernoulli beam theory, employed in our program, neglects the effects of shear deformation, as it assumes that transverse shear strain is insignificant.To ensure a meaningful comparison between the results from our symbolic program and SAP2000, the shear effects in SAP2000 were effectively minimized by setting the frame property modifier for shear area to a very high value (10 6 ).This adjustment aligns the SAP2000 model with the assumptions of the Euler-Bernoulli theory, allowing for consistent and accurate validation.

Validation with EngiLab Truss.2D Pro

53All five truss examples were also validated using EngiLab Truss.2D2022 Pro, a specialized software for plane truss analysis.In every case, the results for node displacements, support reactions, and element axial forces matched perfectly.The validation for the fourth example, shown in Figure 6, is presented here.The following properties were used for numerical calculations:

54• Length (L): 5 m

55• Height (H): 6 m

56• Axial stiffness (EA): Derived using E=200×10 6 kN/m² (200 GPa) and A=2×10 -3 m² (20 cm²), resulting in EA=4×10 5 kN.

57• Point load (P): 50 kN

58The truss was modeled in EngiLab Truss.2DPro, as illustrated in Figure 9. Table 21 compares node displacements between the symbolic software and EngiLab Truss.2DPro, showing identical results.This consistency also applies to support reactions and element axial forces, though these results are not included here.

Validation with results from the literature

59The fifth truss example is based on a case from the literature, specifically Case No. 1 from Tinkov's work [38].In this study, the author presents an analytical formula for calculating the vertical displacement of the central node (node 6 in our model).The formula is as follows:

60Tinkov's methodology provides analytical solutions for displacements in various truss configurations, using the parameter n, which defines the truss topology and the number of repetitions of the main truss pattern, for each truss configuration.For the specific truss model shown in Figure 7, it is n = 2.According to the study [38], the values of the parameters A, B, C, and D for the specific truss are as follows:

61• a = L (the L symbolic variable used in our study)

62• b = H (the H symbolic variable used in our study)

63It is important to note that in Eq. ( 6) the variable F represents the cross-sectional area.Substituting F with our variable A for the cross-sectional area, and taking the above values of the parameters into account, the final formula for the vertical displacement of node 6, as derived by Tinkov [38], becomes:

64( )

65Eq. ( 7) matches the formula derived by our program for the vertical displacement of node 6, as presented in Table 17.The negative sign in the equation from Table 17 indicates that the displacement is directed downwards.

Sensitivity Analysis

66Sensitivity analysis is an essential tool in structural engineering for evaluating how variations in input parameters influence a system's response.It is critical for assessing the robustness of a design and optimizing performance by identifying the parameters that most significantly impact structural behavior.Engineers often seek to understand how changes in material properties, geometric dimensions, or applied loads affect displacements, stresses, reaction forces, or internal forces.By offering insights into these relationships, sensitivity analysis facilitates more informed decision-making during the design process.

67Symbolic solutions provide a distinct advantage for conducting sensitivity analysis.With symbolic representations of structural behavior, engineers gain access to closed-form expressions that explicitly describe how parameters-such as Young's modulus, crosssectional area, or applied loads-affect the system's response.These expressions enable the direct calculation of partial derivatives of output quantities with respect to input parameters.For example, given a symbolic expression for displacement, one can compute the sensitivity of displacement at a specific point to changes in material stiffness or geometric properties.Similarly, partial derivatives of reactions or internal forces with respect to other parameters can be easily obtained.

68For instance, in the third numerical example of Section 6.3, the vertical displacement at Node 2 is calculated symbolically (see

69Using MATLAB's Symbolic Math Toolbox, partial derivatives of the displacement with respect to parameters such as axial stiffness (EA), length (L), or height (H) can be computed efficiently.Commands such as diff for symbolic differentiation and simplify for simplifying the resulting expressions make this process straightforward, yielding clear mathematical relationships that highlight the sensitivity of the system's response to design changes.The partial derivates of the displacement Dy with respect to (EA), L and H can be easily found as:

70( )

71This symbolic approach offers a significant edge over numerical methods.In numerical analysis, results are typically confined to specific input values, requiring multiple reruns to evaluate parameter changes.Symbolic expressions, however, provide general solutions that inherently preserve the relationships between inputs and outputs, allowing for effortless exploration of parameter sensitivities without additional computational effort.

72By enabling direct and efficient sensitivity evaluations, symbolic solutions empower engineers to gain deeper insights into how design modifications affect structural performance.This capability is especially valuable during design optimization, where small adjustments can greatly impact the efficiency and cost-effectiveness of a structure.Unlike numerical methods, symbolic analysis eliminates the need for repetitive computations, saving time and providing a clearer understanding of the system's behavior.This unique capability makes symbolic sensitivity analysis an indispensable tool for engineers.

Balancing Complexity and Practicality in Symbolic Computations

73The symbolic implementation of MSA offers flexibility and insight but presents challenges in computational efficiency and scalability, especially for large or complex 2D truss systems.As the number of degrees of freedom, elements, or loading conditions increases, symbolic expressions for stiffness matrices, force vectors, and displacements can become overly large and computationally demanding.Addressing these challenges is critical to ensuring the practical applicability of symbolic MSA.

74A key challenge in symbolic computation is the exponential growth of expressions as system complexity increases.While simple truss systems produce elegant and manageable symbolic solutions, larger models with many symbolic parameters often result in excessively lengthy and difficult-to-interpret expressions.Such complexity, even when technically valid, reduces the practicality of the symbolic approach.Compact and clear expressions are crucial for generating meaningful insights into structural behavior.

75To address this, a hybrid symbolic-numerical approach proves effective and is fully supported by our program.This approach allows certain key parameters to remain symbolic while assigning numerical values to less critical variables.By combining symbolic flexibility with numerical efficiency, the analysis remains scalable and computationally manageable, enabling symbolic MSA to handle more complex 2D truss systems without excessive computational overhead.

76Ultimately, the value of symbolic solutions lies in their clarity and utility.Compact, interpretable solutions enhance understanding and practical application, while excessively complex expressions undermine these benefits.Striking the right balance between symbolic and numerical methods ensures that the advantages of symbolic MSA are fully realized in 2D truss analysis.

Conclusions

77This study introduces the development and application of an open-source MATLAB program for symbolic Matrix Structural Analysis of 2D trusses subjected to point loads.The freely available source code enables the efficient and precise generation of analytical solutions for plane trusses of any complexity.Beyond its practical engineering applications, the program serves as a valuable educational tool, providing clear and insightful symbolic solutions that enhance understanding of truss behavior.

78The program extends its functionality beyond deriving analytical solutions for node displacements, support reactions, and element axial forces.It also facilitates sensitivity analysis by allowing users to compute partial derivatives of output parameters with respect to input variables, leveraging MATLAB's built-in symbolic differentiation commands.This capability is crucial for assessing how changes in design properties, such as material stiffness or geometric dimensions, influence structural response, making the tool invaluable for design exploration and performance evaluation.

79While symbolic solutions offer significant advantages, it is essential to balance complexity and clarity.Although the program can generate detailed and complex symbolic expressions, overly intricate solutions may impede practical application and interpretation.Concise and actionable analytical expressions are preferable as they enhance usability and provide meaningful insights.Efficiency, scalability, and clarity remain key considerations when employing symbolic computations in structural analysis.The program's capabilities have been demonstrated through various examples, showcasing its potential to deliver precise and insightful analytical solutions for 2D trusses.The results have been rigorously validated using three complementary approaches: comparisons with results from SAP2000 Ultimate (v21.2),EngiLab Truss.2D2022 Pro (v1.3), and analytical solutions from the literature.These validations demonstrate perfect agreement between the program's outputs and the benchmark results, confirming the accuracy and reliability of the symbolic solutions and affirming the generality of the methodology.

80A natural extension of this work would be to apply the methodology to other structural systems, such as 3D trusses, where additional complexities like three-dimensional geometry and nodal connectivity can be handled symbolically.This future direction holds great promise for further expanding the applicability of symbolic MSA and its contributions to structural engineering research and education.

Figure 1 .

81Figure 1.2D Euler-Bernoulli beam element with 6 DOFs.

Figure 2 .

82Figure 2. 2D truss element with 4 DOFs in the global system.

83Figure

Figure 3 .

84Figure 3.The truss of Example 1.

Figure 4 .

85It has 3 nodes and 3 elements.The symbolic parameters are four: EA, L, H, and P.

86Figure 4.The truss of Example 2.

Figure 5 .

87Figure 5.The truss of Example 3.

Figure 6 .

88Figure 6.The truss of Example 4.

Figure 7 .

89Figure 7.The truss of Example 5.

Figure 8 .

90Figure 8.The truss model of Example 3, modeled with SAP2000.

Figure 9 .

91Figure 9.The truss of Example 4, modeled with EngiLab Truss.2DPro: (a) Truss model, (b) Deformed state of the model.

Table 1 .

92Details of the five numerical examples.

Table 2 .

93Details of the input parameters of the 1 st numerical example.

Table 4 .

94Example 1: Support reactions.

Table 5 .

95Example 1: Element axial forces.

Table 6

96shows the details of the model, as given in MATLAB.

Table 6 .

97Details of the input parameters of the 2 nd numerical example.

Table 7 .

98Example 2: Node displacements.

Table 8 .

99Example 2: Support reactions.

Table 9 .

100Example 2: Element axial forces.

Table 11 .

101Example 3: Node displacements.

Table 12 .

102Example 3: Support reactions.

Table 13 .

103Example 3: Element axial forces.

Table 14 .

104Example 4: Node displacements (for selected nodes).

Table 15 .

105Example 4: Support reactions.

Table 16 .

106Example 4: Element axial forces.

Table 17 .

107Example 5: Node displacements (for selected nodes).

Table 18 .

108Example 5: Support reactions.

Table 19 .

109Example 5: Element axial forces.

Table 20 .

110Element axial forces for Example 3 -Comparison with SAP2000.

Table 21 .

111Node displacements for Example 3 (for selected nodes) -Comparison with EngiLab Truss.2DPro.

참고문헌 38건

  1. MATLAB Codes for Finite Element Analysis: Solids and Structures 2008
  2. On the derivation of symbolic form of stiffness matrix and load vector of a beam with an arbitrary number of transverse cracks Computational Materials Science · Elsevier BV · 2011 10.1016/j.commatsci.2011.07.013
  3. Large scale structural optimization: Computational methods and optimization algorithms Archives of Computational Methods in Engineering · Springer Science+Business Media · 2001 10.1007/bf02736645
  4. Symbolic computation in structural engineering Computers & Structures · Elsevier BV · 2003 10.1016/s0045-7949(03)00286-4
  5. Geometric stiffness of membranes using symbolic algebra Engineering Structures · Elsevier BV · 2004 10.1016/j.engstruct.2003.12.011
  6. Symbolic and numerical analysis of plates in bending using Matlab Journal of Symbolic Computation · Elsevier BV · 2013 10.1016/j.jsc.2013.10.005
  7. Finite element simulations using symbolic computing Mathematics and Computers in Simulation · Elsevier BV · 1999 10.1016/s0378-4754(99)00054-3
  8. Automated derivation of structural formulae Computers & Structures · Elsevier BV · 1995 10.1016/0045-7949(94)00567-m
  9. A 99 line topology optimization code written in Matlab Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2001 10.1007/s001580050176
  10. Symbolic software tools in the development of finite elements Computers & Structures · Elsevier BV · 1999 10.1016/s0045-7949(98)00333-2
  11. Efficient topology optimization in MATLAB using 88 lines of code Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2010 10.1007/s00158-010-0594-7
  12. Macsyma: A personal history Journal of Symbolic Computation · Elsevier BV · 2010 10.1016/j.jsc.2010.08.018
  13. Essential MATLAB for Engineers and Scientists Elsevier eBooks · Elsevier BV · 2022 10.1016/c2021-0-01607-2
  14. 46th AIAA/ASME/ASCE/AHS/ASC Structures, Structural Dynamics and Materials Conference 54th AIAA/ASME/ASCE/AHS/ASC Structures, Structural Dynamics, and Materials Conference · 2005 10.2514/msdm05
  15. Analytical solutions for the minimum weight design of trusses by cylindrical algebraic decomposition Archive of Applied Mechanics · Springer Science+Business Media · 2017 10.1007/s00419-017-1271-8
  16. Computational Structural Engineering: Past Achievements and Future Challenges Frontiers in Built Environment · Frontiers Media · 2018 10.3389/fbuil.2018.00021
  17. Analytical calculation of the deflection of the lattice truss MATEC Web of Conferences · EDP Sciences · 2018 10.1051/matecconf/201819303015
  18. A MATLAB Toolbox for Structural Analysis of Linear Systems IFAC-PapersOnLine · Elsevier BV · 2019 10.1016/j.ifacol.2019.11.018
  19. Numerical Methods for Partial Differential Equations 2015
  20. Optimum Design of RC Footings with Genetic Algorithms According to ACI 318-19 Buildings · Multidisciplinary Digital Publishing Institute · 2020 10.3390/buildings10060110
  21. Stabil: An educational Matlab toolbox for static and dynamic structural analysis Computer Applications in Engineering Education · Wiley · 2021 10.1002/cae.22391
  22. Introduction to Mathematica with Applications Springer eBooks · Springer Nature · 2017
  23. Multi-Platform Graphics Programming with Kivy: Basic Analytical Programming for 2D, 3D, and Stereoscopic Design 2021
  24. Eighty Years of the Finite Element Method: Birth, Evolution, and Future Archives of Computational Methods in Engineering · Springer Science+Business Media · 2022 10.1007/s11831-022-09740-9
  25. Introduction to Optimum Design Elsevier eBooks · Elsevier BV · 2012 10.1016/c2009-0-61700-1
  26. A Collection of 30 Multidimensional Functions for Global Optimization Benchmarking Data · Multidisciplinary Digital Publishing Institute · 2022 10.3390/data7040046
  27. Comparative analysis of analytical solutions to the problem of truss structure deflection Magazine of Civil Engineering · 2015 10.5862/mce.57.6
  28. The Mosaic of Metaheuristic Algorithms in Structural Optimization Archives of Computational Methods in Engineering · Springer Science+Business Media · 2022 10.1007/s11831-022-09773-0
  29. Introduction to the Tools of Scientific Computing Texts in computational science and engineering · Springer Nature · 2022 10.1007/978-3-031-16972-4
  30. Stress, Strain, and Structural Dynamics Elsevier eBooks · Elsevier BV · 2023 10.1016/c2018-0-02273-2
  31. A two-archive multi-objective multi-verse optimizer for truss design Knowledge-Based Systems · Elsevier BV · 2023 10.1016/j.knosys.2023.110529
  32. On the use of mechanics-informed models to structural engineering systems: Application of graph neural networks for structural analysis Structures · Elsevier BV · 2023 10.1016/j.istruc.2023.105712
  33. OpenSeismoMatlab: New Features, Verification and Charting Future Endeavors Buildings · Multidisciplinary Digital Publishing Institute · 2024 10.3390/buildings14010304
  34. Optimization of truss structures using multi-objective cheetah optimizer Mechanics Based Design of Structures and Machines · Taylor & Francis · 2024 10.1080/15397734.2024.2389109
  35. Optimal truss design with MOHO: A multi-objective optimization perspective PLoS ONE · Public Library of Science · 2024 10.1371/journal.pone.0308474
  36. Deriving analytical solutions using symbolic matrix structural analysis: Part 2 – Plane trusses Heliyon · Elsevier BV · 2025 10.1016/j.heliyon.2025.e42372
  37. Deriving analytical solutions using symbolic matrix structural analysis for continuous beams Scientific Reports · Nature Portfolio · 2025 10.1038/s41598-025-98023-x
  38. Analytical calculation of the frame with an arbitrary number of panels DOAJ (DOAJ: Directory of Open Access Journals) · 2019 10.18720/mce.82.12