Version:

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

Pass information regarding local refinement to the Layered Mesher.
SIGNATURE
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: ...
ARGUMENTS
Required
f
Type:typing.Callable[[unstructured_mesh.UnstructuredMesh], npt.NDArray[np.bool_]]
Description:
A callable returning a boolean mask dictating where to refine. See documentation of __call__ below.
Optional
refinement_level
Type:int
Default value:1
Description:
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.
Optional
refinement_style
Type:str
Default value:'unstable'
Description:
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.
Optional
unique_points_tolerance
Type:int
Default value:8
Description:
The number of decimal digits used to determine unique points in the refined mesh.

Submodules

Used in tutorials

Functionality from this module is used in the following tutorials.
PAGE CONTENTS