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)
Posted 10 févr. 2016, 10:23 UTC−5 Interfacing, Acoustics & Vibrations, Geometry, Materials, Mesh, Results & Visualization, Structural Mechanics Version 4.3, Version 4.4, Version 5.0, Version 5.1, Version 5.2 0 Replies
Please login with a confirmed email address before reporting spam
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?
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.