3.19 initf3d – Volume fraction initialization via Cartesian shadow grid¶
The initf3d computes the volume fraction vf of a material body within an arbitrary polyhedral cell. The boundary of the material body is defined by a user-provided implicit function \(\phi(x,y,z) \equiv \texttt{func3d}(x,y,z)\), with the material occupying the region \(\phi(x,y,z)>0\).
To approximate non-planar interfaces, the volume integral is evaluated using a composite numerical rule over a uniform Cartesian grid (shadow grid) superimposed on the polyhedral cell. This grid consists of \(\texttt{nc} \times \texttt{nc} \times \texttt{nc}\) sub-cells, where \(\texttt{nc}\) is the resolution parameter. The integration scheme follows the methodology detailed in Refs. [7, 10].
Fortran:
call initf3d(func3d,ipv,nc,nipv,ntp,nts,ntv,tol,vertp,vf, &
xns,yns,zns)
C:
initf3d(func3d,ipv,&nc,nipv,&ntp,&nts,&ntv,&tol,vertp,&vf,
xns,yns,zns);
Python:
vf = voft.initf3d(func3d,ipv,nc,nipv,ntp,nts,ntv,tol,vertp,xns,yns,zns)
Arguments:
|
|
|
external procedure. User-defined implicit function defining the material interface. The routine samples this function to determine if points lie inside or outside the material |
|
|
|
array of dimensions |
|
|
|
scalar specifying the number of sub-cells along each coordinate axis of the superimposed Cartesian grid used for the refinement process in the numerical integration |
|
|
|
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 |
|
|
|
positive threshold parameter used in the preliminary vertex-based classification. Cartesian subdivision is performed when the vertex signs differ or when the minimum absolute value of |
|
|
|
array of dimensions \(({nv},3)\) storing the \(x,y,z\)-coordinates of each vertex |
|
|
|
scalar representing the computed volume fraction of the material within the polyhedral cell. Value lies in \([0,1]\) |
|
|
|
arrays of length \(\texttt{ns}\) storing the \(x,y,z\)-components of the outward-pointing unit normal vector for each face boundary |
Note: Interfaces enclosed within the cell may be missed by the preliminary vertex-based classification. Increasing nc does not affect this classification. During subdivision, features that are not resolved by the subcell vertex samples may also remain undetected. The subdivision parameter nc must be a positive integer.