Clear Filters
Clear Filters

forming global stiffness matrix

6 views (last 30 days)
Sharanya
Sharanya on 12 Dec 2022
Answered: Dhruv on 27 Mar 2023
I have a matrix of node coordinates and forces, and a matrix of edges. How should I go about forming a global stiffness matrix, preferably through a for loop, using these matrices?

Answers (1)

Dhruv
Dhruv on 27 Mar 2023
To form a global stiffness matrix, first create the element stiffness matrices for each element using the element's nodal coordinates and material properties. Then, assemble these element stiffness matrices into the global stiffness matrix by looping through each element and adding its contributions to the appropriate locations in the global matrix. Then, use the nodal connectivity information from the matrix of edges to determine which nodal displacements are associated with each degree of freedom in the global stiffness matrix. You may use the nodal forces to incorporate any externally applied loads.

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!