How can any number of element matrices be assembled into a global matrix?

11 vues (au cours des 30 derniers jours)
carlinator
carlinator le 6 Juil 2017
Commenté : Anton Scotte le 25 Mai 2019
Hello all,
I'm trying to find a general MATLAB algorithm/code/script which assembles a global stiffness matrix from element stiffness matrices. I'm dealing with trusses, so the global stiffness matrix will have a number of rows and columns equal to the number of degrees of freedom in the respective truss, which is equal to twice the number of nodes. Needless to say, each element of the truss connects two nodes, and as such has a 4 x 4 element stiffness matrix. While I have been able to come up with algorithms for a specified number of degrees of freedom, I was wondering if there was a general algorithm I could use to combine the element stiffness matrices (Ke1, Ke2, etc.) into a single global stiffness matrix (K). I have already been able to create an algorithm which defines each element stiffness matrix using the element's area, modulus, and length, so all that's left is to figure out how to create the global matrix. Any and all help is appreciated.
  1 commentaire
Stephen23
Stephen23 le 7 Juil 2017
Modifié(e) : Stephen23 le 7 Juil 2017
"a general algorithm I could use to combine the element stiffness matrices (Ke1, Ke2, etc.) into a single global stiffness matrix (K)"

Connectez-vous pour commenter.

Réponses (1)

KSSV
KSSV le 7 Juil 2017
  1 commentaire
Anton Scotte
Anton Scotte le 25 Mai 2019
Hi, I have the same issue. I have a bit trouble understanding what the index is in your function. "index - d.o.f. vector associated with an element".
How should this d.o.f. vector be constructed for each element? If each truss is connected with 2 nodes in each end (and is a 2D-problem) then I get a 4x4 stiffnes matrix, where each element has a dof of 4? In this case the d.o.f vector should have the length 4 if I understand your function correct. But what values should I populate this vector with?
Forgive me if this is trivial, I'm new to FEM in general as well.
Thank you

Connectez-vous pour commenter.

Catégories

En savoir plus sur Structural Analysis dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by