where the left hand integral is over the internal volume and the right hand integral is over the surface,
is the outward unit length surface normal, is the
divergence,
If is the field giving the position vector then
, so the left hand integral is just , three times the volume.
Hence to find the volume of a surface we just need to calculate .
If the surface is polyhedron with set pologonal faces
the integral can be reduced to a sum over all the faces.
The dot product is constant for all points on the face, so the integral over any face is
just where is any vertex on the surface. Hence the volume is given by
where is a vectex of the i-th face and are the outward pointing normals.
If , , are the three vertices of a triangular face the (non unit length) normal can be calculate
as . The
unit length normal is
and area of the triangle is . The
dot product becomes . The whole volume becomes
,
where the signs are chosen so the normals are outwards.
Readers comments
vectex of the ith face
David Seed
Fri Jun 17 2016
please give a simple workd example. with a diagram
i presume you mean any vertex in the i-th face
and that v.n represents the vertical dstance from the face to the origin. but perhaps the outward facng sense requires the origin to be outside the solid
i dont