OpenPisco.Structured.Geometry3D module#

OpenPisco.Structured.Geometry3D.CheckIntegrity()[source]#
OpenPisco.Structured.Geometry3D.cuboid_volumic_fraction(phis)[source]#
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.sort_by_sign(phis)[source]#
OpenPisco.Structured.Geometry3D.strict_signs(phis, default_negative=True)[source]#
OpenPisco.Structured.Geometry3D.tetrahedron_volumic_fraction(phis)[source]#
OpenPisco.Structured.Geometry3D.tetrahedron_volumic_fraction_dominated(phi_in, phis_out)[source]#
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

OpenPisco.Structured.Geometry3D.tetrahedron_volumic_fractions_dominated(phis_in, phis_out)[source]#
OpenPisco.Structured.Geometry3D.tetrahedron_volumic_fractions_impl(phis_sorted)[source]#
OpenPisco.Structured.Geometry3D.tetrahedron_volumic_fractions_nondominated(phis_in, phis_out)[source]#
OpenPisco.Structured.Geometry3D.thetrahedron_p2_volumic_fraction(phis)[source]#