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
LocalRefinementPolicyclass 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
ftyping.Callable[[unstructured_mesh.UnstructuredMesh], npt.NDArray[np.bool_]] — A callable returning a boolean mask dictating where to refine. See documentation of__call__below.refinement_levelint — How many times to refine the mesh. See the documentation of thelocally_refine_mesh_in_place()function from Salvus’UnstructuredMeshclass for more information. IfNone, it will be automatically determined fromfac.refinement_stylestr — Which refinement style to use. See the documentation of thelocally_refine_mesh_in_place()function from Salvus’UnstructuredMeshclass for more information. IfNone, it will be automatically determined based on the value ofrefinement_level.unique_points_toleranceint — The number of decimal digits used to determine unique points in the refined mesh.