BasicTools.Containers.UnstructuredMeshMappingTools module

BasicTools.Containers.UnstructuredMeshMappingTools.CheckIntegrity(GUI=False)[source]
class BasicTools.Containers.UnstructuredMeshMappingTools.FoldOverFreeMaps(mesh: UnstructuredMesh, boundaryEF: ElementFilter)[source]

Bases: object

BasicTools implementation of the Fold Over Free Maps algorithm

CallCallback()[source]

Call Back wrapper

ComputePotential(U: _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes]) Tuple[number, ndarray][source]

Compute the potential to be minimized

Parameters:

U (ArrayLike) – The positions of the points

Returns:

F the potential value G the gradient of the potential

Return type:

Tuple[np.number, np.ndarray]

MinDetJacobian() number[source]

Compute the minimal jacobian on the mesh

Returns:

the min of the jacobian

Return type:

np.number

Start()[source]

Start the computation of the algorithm

callback

callback function to be called at each interaction of the algorithm with the current mesh as argument