Compute Volume of Cubic element from coordinate

1 view (last 30 days)
Rut Su
Rut Su on 26 Sep 2021
Edited: Matt J on 26 Sep 2021
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.

Answers (1)

Matt J
Matt J on 26 Sep 2021
Edited: Matt J on 26 Sep 2021
One way:
[~,volume(i)]=convhull( Coordinate(Element(i,:),:));

Categories

Find more on Networks in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!