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.

Calculate the volume of a hole inside a body in 3D

Please login with a confirmed email address before reporting spam

Hi,

A few months ago I had to calculate the volume of the interior of a body in a 2D-axisymmetric problem. With the use of the divertencia theorem choosing an adequate vector function I was able to solve it. All thanks to the help of the people of the forum :)

Now I have a similar problem again. I have to calculate a volume of a hole inside a 3D body. This I have to calculate at each time step. My approach was to do the same as in the previous problem: use the divergence theorem with a suitable vector function.

For this I implemented this function: ((x*nx+y*ny+z*nz)/(3*Vol_ini))*100 applied to the surface of the inner hole and with the double integral operator. Vol_ini is a parameter of the initial volume with which I calculate how the volume varies over time in relation to the initial one. The problem I'm having is that it seems that the norm vector: (nx,ny,nz) is wrong (?). I am using version 6.1. I have searched for other normal vector definition options like solid.nx, solid.ny., etc. But it doesn't seem to work either.

Could someone help me with this(?).

Thank you very much in advance.

Best, Andres


0 Replies Last Post 10.07.2023, 07:11 GMT-4
COMSOL Moderator

Hello Andres Soage

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.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.