Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

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.

outputs from mphgetu and mphmatrix

Please login with a confirmed email address before reporting spam

Hello,

I'm looking at a time-dependent 1D 'Coefficient Form PDE' problem. I mesh the line with 4 element (5 nodes). So I have 5 degrees of freedom, the relevant system matrices are also 5x5. Also to keep things simple, my shape function is linear.

However, when I use mphgetu(model), I get 7 values, among which only the 1,3,4,5,7th value correspond to u on the nodes. I guess the 2nd and the 6th value has something to do with the boundary? How exactly are they calculated?

Another question: How to get the Lagrange multiplier from mphmatrix?

Many thanks!


1 Reply Last Post 2015年4月30日 GMT-4 10:02
COMSOL Moderator

Hello wdl

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.


Please login with a confirmed email address before reporting spam

Posted: 10 years ago 2015年4月30日 GMT-4 10:02
Hello,

I'm having the same problems. Did you figure out the relationship between solution vector index and variable value ? I recon that the two extra values you have are the internal degrees of freedom, though I am not quite sure I understand what they are.

Also regarding the system matrices, do you know what linear system does comsol solve ? I thought (keeping the matrix names given by mphmatrix) it would be:

E*Udotdot + D*Udot + K*U == L

But that doesn't appear to be the case...

Anyhow, I hope you eventually got an answer to your questions and thanks for sharing.

Regards,
Guillaume

Hello, I'm having the same problems. Did you figure out the relationship between solution vector index and variable value ? I recon that the two extra values you have are the internal degrees of freedom, though I am not quite sure I understand what they are. Also regarding the system matrices, do you know what linear system does comsol solve ? I thought (keeping the matrix names given by mphmatrix) it would be: E*Udotdot + D*Udot + K*U == L But that doesn't appear to be the case... Anyhow, I hope you eventually got an answer to your questions and thanks for sharing. Regards, Guillaume

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.