Quantcast
Channel: Latest Discussions - COMSOL Forums
Viewing all articles
Browse latest Browse all 428

Extracting Global Stiffness and Load vecor Matrices with LiveLink for MATLAB

$
0
0
Hi Suresh

I didn't get any feedback from support so I'm sending this question for you. Seems that you have experience with Livelink for MATLAB.

I have a question regarding the stiffness Matrix derivation of the model. Suppose that dependent variables of the model are displacements (u v) and scalar potential (V); the command

str = mphmatrix(model,'sol1','Out',{'K','L'})

returns a 4659X4659 matrix for K.

How can I interpret the Global stiffness matrix and Load vector? I need to know which coefficient corresponds to which degree of freedom? In the other words, how is the order of the returned matrix for solution vector, Load vector and Stiffness matrix ? e.g. is the solution vector order like [u1,u2,u3,u4,......v1,v2,v3,v4,.......V1,V2,V3,...​] or [u1,v1,V1,u2,v2,V2,.......]

Any help is gratefully appreciated!

Alireza~

Viewing all articles
Browse latest Browse all 428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>