How to superimpose certain indices of matrices.

2 ビュー (過去 30 日間)
Missael Hernandez
Missael Hernandez 2020 年 11 月 3 日
コメント済み: Missael Hernandez 2020 年 11 月 3 日
In FEA, after we have the Global Stiffness Matrix of a Plane Frame Member, we construct and assemble the Plane Frame Structure Stiffness Matrix. To be able to so, one needs to determine a mapping between the rows and columns of the global stiffness matrix of a member and those of the structure stiffness matrix. Suppose I have 3 memeber Global Stiffness Matrices (shown below) and want to assemble the structural global matrix. How to I superimpose them such that the u2, v2, theta2 of the matrices are added when superimposed?

採用された回答

Alan Stevens
Alan Stevens 2020 年 11 月 3 日
Here's one possible way (there are probably slicker ways!):
K111 = K1(1:3,1:3); K112 = K1(1:3,4:6);
K121 = K1(4:6,1:3); K122 = K1(4:6,4:6);
K211 = K2(1:3,1:3); K212 = K2(1:3,4:6);
K221 = K2(4:6,1:3); K222 = K2(4:6,4:6);
K311 = K3(1:3,1:3); K312 = K3(1:3,4:6);
K321 = K3(4:6,1:3); K322 = K3(4:6,4:6);
Z3 = zeros(3);
KG = [K111 K112 Z3 Z3;
K121 K122 K212 Z3;
Z3 K211 Z3 Z3;
Z3 K221 K222 Z3;
Z3 K311 Z3 K312;
Z3 K321 Z3 K322];
  3 件のコメント
Alan Stevens
Alan Stevens 2020 年 11 月 3 日
編集済み: Alan Stevens 2020 年 11 月 3 日
Oops! You are right. I’ll try again!
KG = [K111 K112 Z3 Z3;
K121 K122+K211+K311 K212 Z3;
Z3 K221 K222 Z3;
Z3 K321 Z3 K322];
Missael Hernandez
Missael Hernandez 2020 年 11 月 3 日
perfect! thanks!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by