Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

Extracting matrix with multiple components in MATLAB

Please login with a confirmed email address before reporting spam

Hi,

I've built a model with 2 components. Each of them consists of the same geometry with different meshes.

And I ran it with one study consisting of two steps. Step1 solves with the comp1 and, at step2 comp2 is solved with an information from step1.

What I supposed to do is extracting matrices for each mesh of both components. So I've wrote this script: "mat = mphmatrix(model, ...)" And I got a 1042 by 1042 matrix, but... wait There are only 242 DOF for comp1 and 18 for comp2?!? I'm working on 2D solid mechanics, so, interested in u and v of each components. And I know there are more, such as displacement in z direction or something... Though it is, the total number of DOF is only 687. (Another way to see if it's right is to check the length of "U = model.sol('sol1').getU" or "U = mphgetu(model).")

Definitely, I can find the DOF numbers for each variables for comp1 and 2 by using "mphxmeshinfo." But the extracted system matrix does not match at all!!

can anyone help?


0 Replies Last Post 2017年12月13日 GMT-5 07:14
COMSOL Moderator

Hello Minsik Seo

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.