Display finite element meshes and results

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Arction_LasseP

xidapsy
Posts: 2
Joined: Mon May 22, 2017 8:55 am

Display finite element meshes and results

Post by xidapsy » Fri Jul 28, 2017 2:34 pm

How do I display finite element meshes and results?
The structure of the finite element mesh is very similar to MeshModel, but each cell may contain 3 to 8 nodes.

User avatar
ArctionNikolai
Posts: 38
Joined: Fri Feb 05, 2016 11:37 am
Location: Finland

Re: Display finite element meshes and results

Post by ArctionNikolai » Mon Jul 31, 2017 10:33 am

Hello,

Do you have this Model, which is already the finite or you want to construct the finite element mesh from the scratch?

Best regards, Nikolai
Nikolai Arsenov
Software developer
Arction Ltd
Microkatu 1, 70210 Kuopio, Finland

xidapsy
Posts: 2
Joined: Mon May 22, 2017 8:55 am

Re: Display finite element meshes and results

Post by xidapsy » Mon Jul 31, 2017 1:56 pm

Dear Nikolai:

Thanks for reply.

Usually, i don't have the model, and only have the following exported data:
1. the coordinates of the nodes -> gcoord
2. the element connection information -> elem
3. vector, which have the same lenght of the gcoord -> vectors

Then, i need generate a figure like this (Generated by matlab):

i tried for a few days, but i still don't know how to generate the similar result by LC;

i just want to know which type of View3D series can do this job?

Thanks a lot.

gcoord=[-1.35 , 0
0 , -1.35
0 , 0
-0.954594154601839 , -0.954594154601839
0 , -0.617094154601839
-0.617094154601839 , 0
-0.554422863405995 , -0.554422863405995
1.35 , 0
0.954594154601839 , -0.954594154601839
0.617094154601839 , 0
0.554422863405995 , -0.554422863405995
0 , 1.35
-0.954594154601839 , 0.954594154601839
0 , 0.617094154601839
-0.554422863405995 , 0.554422863405995
0.954594154601839 , 0.954594154601839
0.554422863405995 , 0.554422863405995];

elem=
[8 16 17 10
16 12 14 17
3 10 17 14
6 15 13 1
15 14 12 13
14 15 6 3
10 11 9 8
11 5 2 9
5 11 10 3
1 4 7 6
4 2 5 7
3 6 7 5];

vectors=
[ 1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
]
Attachments
fig_1.png
fig_1.png (9.46 KiB) Viewed 5187 times

User avatar
ArctionNikolai
Posts: 38
Joined: Fri Feb 05, 2016 11:37 am
Location: Finland

Re: Display finite element meshes and results

Post by ArctionNikolai » Mon Jul 31, 2017 2:49 pm

Hello,

After the first look at your buffers with g coordinates, it seems that Matlab converted a 3d coordinates and produced a projection to 2D coordinate system.
Image

But it seems like a low poly sphere. If you need to render something similar in 3D space, you can use LightningChart SurfaceMeshSeries3D. For each node set X, Y and Z value.
Your values are from -1 to +1. So, you have to either take the original coordinates from Matlab and use them or use these coordinates by changing each axis range in 3D to (-1..1) system.

If you need more assistance, please write to our support e-mail to continue the discussion and get more help.

Best regards, Nikolai
Nikolai Arsenov
Software developer
Arction Ltd
Microkatu 1, 70210 Kuopio, Finland