Mondaic

salvus.mesh.layered_meshing.meshing_protocol.refinement_policy

salvus.mesh.layered_meshing.meshing_protocol.refinement_policy salvus mesh layered_meshing meshing_protocol refinement_policy

Refinement policies for the layered mesher.

Classes

LocalRefinementPolicy

class LocalRefinementPolicy(builtins.object):
    def __init__(
        self,
        f: typing.Callable[
            [unstructured_mesh.UnstructuredMesh], npt.NDArray[np.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 typing.Callable[[unstructured_mesh.UnstructuredMesh], npt.NDArray[np.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

Used in tutorials