Compute Volume of Cubic element from coordinate

4 次查看(过去 30 天)
Hello Everyone
I'm trying to perform 3D Solid 8 nodes-FE analysis and I really need to calculate the volume of each Cubic Element.
The sample of picture are depicted below.
Suppose I have a Coordinates (x, y, z) per each node as
Coordinate = [ 0 0 0;
0 0 1;
1 0 1;
2 0 1;
2 0 0;
1 0 0;
0 1 1;
1 1 1;
2 1 1;
2 1 0;
1 1 0;
0 1 0]
and the corresponding Element connectivites with
Element = [ 1 2 3 6 12 7 8 11;
6 3 4 5 11 8 9 10]
Please enlighten me to overcome this problem.
Thanks for your attention. I'm looking forward to your reply.

回答(1 个)

Matt J
Matt J 2021-9-26
编辑:Matt J 2021-9-26
One way:
[~,volume(i)]=convhull( Coordinate(Element(i,:),:));

类别

Help CenterFile Exchange 中查找有关 Volume Visualization 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by