Question:
How do I calculate the volume of a completely enclosed iso-surface?
Solution:
The volume of an iso-surface (no holes in it) may be calculated using 360’s data calculation, alteration and integration features by following these steps:
A) First, create a zone from your iso-surface:
- Display the iso-surface of choice by going to the side panel and clicking the Iso-Surfaces Details… button.
- Activate only one iso-surface group and ensure that it has no holes. See Figure 1.
- Select Data/Extract/Iso-Surfaces, click Extract, then OK.
B) Next, calculate the surface unit normal:
- Select Analyze/Calculate Variables…
- Click on Select and choose Grid K Unit Normal (vector).
- For New Var Location, select Cell center. Make sure Calculate on Demand is deactivated.
- Click Calculate, then Close.
C) [Optional] Display the surface unit normals:
- Select Plot/Vector/Variables…
- For the vector components, select X Grid K Unit Normal, Y Grid K Unit Normal, and Z Grid K Unit Normal, and click OK.
- Turn on the Vector zone layer and observe the direction the vectors are pointing. If the vectors are pointing out of the surface, the calculated volume will be positive, otherwise it will be negative.
D) Then, calculate the scalar integrand:
- Select Data/Alter/Specify Equations.
- Enter the equation {RdotN}=(X*{X Grid K Unit Normal} + Y * {Y Grid K Unit Normal} + Z * {Z Grid K Unit Normal}) / 3.
- For New var location, select Cell center. In Zones to Alter, select the extracted iso-surface zone entitled something like “Iso: C=1.17…” (see Figure 3).
- Click Compute, then OK, then Close.
E) Finally, integrate the scalar integrand to calculate the volume (see Figure 4):
- Select Analyze/Perform Integration…
- For Type of Integration, choose Scalar Integral.
- Click Select… to select the Scalar Variable, choose variable RdotN, and click OK.
- For Zones, enter the zone number of the extracted iso-surface. To find the zone you want, click Select….
- Activate Show Tabulated Results.
- Click Integrate. The volume is the integration total.
In this example, the total volume of the iso-surface is 8.81*10-5 cubic units.