flow360.snappy.SnapControls#

class SnapControls#

Bases: Flow360BaseModel

snappyHexMesh snap controls.

n_smooth_patch: Annotated[int, Ge(ge=0)] = 3#

Number of patch smoothing iterations before finding correspondence to surface.

Constraints:
  • ge = 0

tolerance: Annotated[float, Gt(gt=0)] = 2#

Ratio of distance for points to be attracted by surface feature point or edge, to local maximum edge length.

Constraints:
  • gt = 0

n_solve_iterations: Annotated[int, Ge(ge=0)] = 30 (alias 'n_solve_iter')#

Number of mesh displacement relaxation iterations.

Constraints:
  • ge = 0

n_relax_iterations: Annotated[int, Ge(ge=0)] = 5 (alias 'n_relax_iter')#

Number of relaxation iterations during the snapping. If the mesh does not conform the geometry and all the iterations are spend, user may try to increase the number of iterations.

Constraints:
  • ge = 0

n_feature_snap_iterations: Annotated[int, Ge(ge=0)] = 15 (alias 'n_feature_snap_iter')#

Number of relaxation iterations used for snapping onto the features. If not specified, feature snapping will be disabled.

Constraints:
  • ge = 0

multi_region_feature_snap: bool = True#

When using explicitFeatureSnap and this switch is on, features between multiple surfaces will be captured. This is useful for multi-region meshing where the internal mesh must conform the region geometrical boundaries.

strict_region_snap: bool = False#

Attract points only to the surface they originate from. This can improve snapping of intersecting surfaces.