BasicTools.Containers.UnstructuredMeshMappingTools module
- class BasicTools.Containers.UnstructuredMeshMappingTools.FoldOverFreeMaps(mesh: UnstructuredMesh, boundaryEF: ElementFilter)[source]
Bases:
objectBasicTools implementation of the Fold Over Free Maps algorithm
- 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
- callback
callback function to be called at each interaction of the algorithm with the current mesh as argument