Mondaic
This API reference is not for the latest stable Salvus version.

salvus.mesh.layered_meshing.meshing_protocol.refinement_policy

Refinement policies for the layered mesher.

Classes

LocalRefinementPolicy

class LocalRefinementPolicy(builtins.object):
    def __init__(
        self,
        f: Callable[
            [
                salvus.mesh.data_structures.unstructured_mesh.unstructured_mesh.UnstructuredMesh
            ],
            numpy.ndarray[Any, numpy.dtype[numpy.bool_]],
        ],
        refinement_level: int = 1,
        refinement_style: str = "unstable",
        unique_points_tolerance: int = 8,
    ) -> None: ...

Pass information regarding local refinement to the Layered Mesher.

Parameters
  • f Callable[[salvus.mesh.data_structures.unstructured_mesh.unstructured_mesh.UnstructuredMesh], numpy.ndarray[Any, numpy.dtype[numpy.bool_]]] — A callable returning a boolean mask dictating where to refine. See documentation of __call__ below.
  • refinement_level int — How many times to refine the mesh. See the documentation of the locally_refine_mesh_in_place() function from Salvus’ UnstructuredMesh class for more information. If None, it will be automatically determined from fac.
  • refinement_style str — Which refinement style to use. See the documentation of the locally_refine_mesh_in_place() function from Salvus’ UnstructuredMesh class for more information. If None, it will be automatically determined based on the value of refinement_level.
  • unique_points_tolerance int — The number of decimal digits used to determine unique points in the refined mesh.

Submodules