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.

Question about nodes arrangement in model solutions with "mpheval" function (LiveLink with Matlab)

Please login with a confirmed email address before reporting spam

Dear colleagues, I need your adviсe!
I work with Solid Mechanics and Pressure acoustic modules. I use LiveLink with Matlab to extract solution data from the Comsol model (v.5.2). I defined a parametric curve in the solid part of the model geometry. And now I'm able to extract deformation data along the curve using "mpheval" function with 'selection' property.
According to the LiveLink datasheet "mpheval" returns the structure 'pd' that contains many fields and among them: pd.p and pd.t. It's known that:
- p contains the node point coordinates information. The number of rows in p is the number of space dimensions;
- t contains the indices to columns in pd.p of a simplex mesh; each column in pd.t represents a simplex;

The problem is that all node points and their coordinatetes in pd.p and pd.t placed in wrong order! It can be seen if you plot them.
How can I reconstruct my parametric curve and its coordinates by using pd.t or in another way?






0 Replies Last Post 10 févr. 2016, 10:23 UTC−5
COMSOL Moderator

Hello Michael Plotnikov

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.