Help Creating Global Stiffness Matrix

조회 수: 9 (최근 30일)
Caden
Caden 2014년 8월 7일
댓글: Andy L 2014년 8월 11일
I need help assembling this stiffness matrix. This is a generic stiffness matrix where ho is the outside air and k1,k2,k3 is the conductivity and the n represent the number of nodes in the materials. This is for a 1D wall. Thank you!
  댓글 수: 5
Caden
Caden 2014년 8월 8일
편집: Caden 2014년 8월 8일
There is no difference between k(n-1) and k(N-1). n or N is just the # of nodes. I want to be able to size the matrix according to how many layers there are. As you can see in the image below, there are 9 layers and 12 nodes. Again this is a 1D heat transfer.
Andy L
Andy L 2014년 8월 11일
Thanks for clarifying.

댓글을 달려면 로그인하십시오.

답변 (1개)

Andy L
Andy L 2014년 8월 8일
First of all I would like to point out I don't know much about stiffness matrices - I've never had to use them before. There may well be an easier way to do this, however my approach would be as such.
I would start with making my .m file a function - if you set the input to varargin you can pass your function a variable vector of values. This would contain your h_oa, h_ia, k_n & T_n variables. You should then be able to determine the length of your stiffness and temperature matrix, which in turn gives you both dimensions (it is square). You can then initialise with zeros - this gives you a matrix of zeros of the appropriate dimensions.
Then you would need to use a for loop and indexing, placing the variables in as appropriate to build up the diagonal values of your stiffness matrix. As for the temperature matrix that could be made from the latter half of the varargin argument!
  댓글 수: 1
Andy L
Andy L 2014년 8월 11일
How are you getting on with solving this?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Thermal Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by