flow360.MeshingDefaults#
- class MeshingDefaults[source]#
Bases:
Flow360BaseModel
Default/global settings for meshing parameters.
Example
>>> fl.MeshingDefaults( ... surface_max_edge_length=1*fl.u.m, ... surface_edge_growth_rate=1.2, ... curvature_resolution_angle=12*fl.u.deg, ... boundary_layer_growth_rate=1.1, ... boundary_layer_first_layer_thickness=1e-5*fl.u.m ... )
- geometry_accuracy: Annotated[_Constrained, PlainSerializer(func=_dimensioned_type_serializer, return_type=PydanticUndefined, when_used=always)] | None = None#
The smallest length scale that will be resolved accurately by the surface meshing process. This parameter is only valid when using geometry AI.It can be overridden with class: ~flow360.GeometryRefinement.
- surface_edge_growth_rate: float = 1.2#
Growth rate of the anisotropic layers grown from the edges.This can not be overridden per edge.
- Constraints:
ge = 1
- boundary_layer_growth_rate: float = 1.2#
Default growth rate for volume prism layers.
- Constraints:
ge = 1
- boundary_layer_first_layer_thickness: Annotated[_Constrained, PlainSerializer(func=_dimensioned_type_serializer, return_type=PydanticUndefined, when_used=always)] | None = None#
Default first layer thickness for volumetric anisotropic layers. This can be overridden with
BoundaryLayer
.
- number_of_boundary_layers: Annotated[int, Ge(ge=0)] | None = None#
Default number of volumetric anisotropic layers. The volume mesher will automatically calculate the required no. of layers to grow the boundary layer elements to isotropic size if not specified. This is only supported by the beta mesher and can not be overridden per face.
- planar_face_tolerance: Annotated[float, Ge(ge=0)] | None = 1e-06#
Tolerance used for detecting planar faces in the input surface mesh / geometry that need to be remeshed, such as symmetry planes. This tolerance is non-dimensional, and represents a distance relative to the largest dimension of the bounding box of the input surface mesh / geometry. This can not be overridden per face.
- Constraints:
strict = True
- surface_max_edge_length: Annotated[_Constrained, PlainSerializer(func=_dimensioned_type_serializer, return_type=PydanticUndefined, when_used=always)] | None = None#
Default maximum edge length for surface cells. This can be overridden with
SurfaceRefinement
.
- surface_max_aspect_ratio: Annotated[float, Gt(gt=0)] | None = 10.0#
Maximum aspect ratio for surface cells for the GAI surface mesher. This cannot be overridden per face
- surface_max_adaptation_iterations: Annotated[int, Ge(ge=0)] | None = 50#
Maximum adaptation iterations for the GAI surface mesher.
- curvature_resolution_angle: Annotated[_Constrained, PlainSerializer(func=_dimensioned_type_serializer, return_type=PydanticUndefined, when_used=always)] | None = unyt_quantity(12, 'degree')#
Default maximum angular deviation in degrees. This value will restrict: 1. The angle between a cellβs normal and its underlying surface normal. 2. The angle between a line segmentβs normal and its underlying curve normal. This can not be overridden per face.