3.5 enforv3dsz – Efficient PLIC interface location for orthogonal hexahedral cells¶
The enforv3dsz routine addresses the VCE problem within rectangular parallelepipedic cells, such as those defined in the voftools_cube routine. It employs the more efficient analytical method proposed by [20], which is specifically designed for use with this type of cell.
Fortran:
call enforv3dsz(c,dx,dy,dz,v,vertp,xnc,ync,znc)
C:
enforv3dsz(&c,&dx,&dy,&dz,&v,vertp,&xnc,&ync,&znc);
Python:
v = np.array(v, dtype=np.float64)
c = voft.enforv3dsz(dx,dy,dz,v,vertp,xnc,ync,znc)
Arguments:
|
|
|
scalar representing the signed distance from the PLIC interface to the origin along the normal vector \(\boldsymbol{n}\) |
|
|
|
cell dimensions along the coordinate axes \(x,y,z\) |
|
|
|
scalar representing the target liquid volume within the cell; modified internally and restored to its original value before return |
|
|
|
array of dimensions \(({nv},3)\) storing the \(x,y,z\)-coordinates of each vertex |
|
|
|
\(x,y,z\)-components of the unit-length vector \(\boldsymbol{n}\) normal to the PLIC interface pointing towards the liquid phase |
Note: The cell must be a rectangular parallelepiped with edges parallel to the coordinate axes. Its eight vertices must occupy the first eight rows of vertp, and dx, dy, and dz must be the corresponding positive side lengths. The target liquid volume must satisfy \(0\leq \texttt{v}\leq \texttt{dx}\,\texttt{dy}\,\texttt{dz}\).