3.13 intpv3dpa – Intersection volume between paraboloid and arbitrary polyhedron¶
The intpv3dpa routine computes the volume of the intersection between a paraboloidal fluid region and an arbitrary polyhedron. This calculation employs an improved version of the approximate procedure based on recursive local grid refinement of the polyhedron proposed by [14].
Fortran:
call intpv3dpa(cparab,ipv,nc,nipv,ntp,nts,ntv,vertp,vf,xns,yns,zns)
C:
intpv3dpa(cparab,ipv,&nc,nipv,&ntp,&nts,&ntv,vertp,&vf,xns,yns,zns);
Python:
vf=voft.intpv3dpa(cparab,ipv,nc,nipv,ntp,nts,ntv,vertp,xns,yns,zns)
Arguments:
|
|
|
\(12\)-component array containing: the six paraboloid coefficients defining the surface geometry (see Eq. 3.1, indices |
|
|
|
array of dimensions |
|
|
|
scalar specifying the number of sub-cells along each coordinate axis of the superimposed Cartesian grid used for the refinement process |
|
|
|
array of length \(\texttt{ns}\) storing the number of vertices per face boundary |
|
|
|
maximum vertex index in the connectivity list |
|
|
|
total number of face boundaries of the polyhedron |
|
|
|
total number of vertices in the polyhedron |
|
|
|
array of dimensions \(({nv},3)\) storing the \(x,y,z\)-coordinates of each vertex |
|
|
|
scalar representing the volume of the portion of the polyhedron lying within the paraboloid (i.e., the liquid volume) |
|
|
|
arrays of length \(\texttt{ns}\) storing the \(x,y,z\)-components of the outward-pointing unit normal vector for each face boundary |
Note: Unlike PLIC methods based on planar interfaces, this routine uses a quadratic interface representation. The intersection volume is computed approximately, and its accuracy depends on the interface representation and the spatial refinement used in the calculation.
Despite its name, vf is the computed intersection volume, not a volume fraction. For a cell of positive total volume vt, the corresponding liquid volume fraction is \(\texttt{vf}/\texttt{vt}\). The subdivision parameter nc must be a positive integer.