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

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

$
0
0
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?






Viewing all articles
Browse latest Browse all 428

Trending Articles