OpenPisco.Structured.Geometry3D module#
- OpenPisco.Structured.Geometry3D.cuboid_volumic_fractions(phis)[source]#
Element-wise fractions of volume located inside the domain implicitly defined by a levelset function for an arbitrary number of cuboids.
The implementation of the function is vectorized for computational efficiency.
- Parameters
phis (array_like) – The nodal values of the levelset function for an arbitrary number of cuboid elements. The trailing dimension is interpreted as the node index therefore its size must be exactly 8.
- Returns
The result. The shape matches the one of phis with the trailing dimension removed.
- Return type
np.ndarray
- OpenPisco.Structured.Geometry3D.tetrahedron_volumic_fraction_nondominated(phis_in, phis_out)[source]#
- OpenPisco.Structured.Geometry3D.tetrahedron_volumic_fractions(phis)[source]#
Element-wise fractions of volume located inside the domain implicitly defined by a levelset function for an arbitrary number of tetrahedra.
The implementation of the function is vectorized for computational efficiency.
- Parameters
phis (array_like) – The nodal values of the levelset function for an arbitrary number of tetrahedric elements. The trailing dimension is interpreted as the node index therefore its size must be exactly 4.
- Returns
The result. The shape matches the one of phis with the trailing dimension removed.
- Return type
np.ndarray