SurfaceRefinement#

class SurfaceRefinement[source]#

Bases: Flow360BaseModel

Setting for refining surface elements for given Surface.

Example

>>> fl.SurfaceRefinement(
...     faces=[geometry["face1"], geometry["face2"]],
...     max_edge_length=0.001*fl.u.m
... )

Attributes

name: str, optional#
Default:

'Surface refinement'

entities: EntityList[Surface, MirroredSurface, WindTunnelGhostSurface, GhostSurface, GhostCircularPlane]#
max_edge_length: Any, optional#

Maximum edge length of surface cells.

Default:

None

curvature_resolution_angle: Any, optional#

Default maximum angular deviation in degrees. This value will restrict the angle between a cell’s normal and its underlying surface normal.

Default:

None

resolve_face_boundaries: bool, optional#

Flag to specify whether boundaries between adjacent faces should be resolved accurately during the surface meshing process using anisotropic mesh refinement.

Default:

None

Methods

classmethod remap_symmetric_to_user_name(value)[source]#

Remap ‘symmetric’ ghost entity to user’s symmetry surface name for UDF backward compat.

classmethod ensure_surface_existence(value)[source]#

Ensure all boundaries will be present after mesher

classmethod ensure_geometry_ai_or_beta_mesher(value)[source]#

Ensure curvature resolution angle is specified only when beta mesher or geometry AI is used

classmethod ensure_geometry_ai_features(value, info)[source]#

Validate that the feature is only used when Geometry AI is enabled.

require_at_least_one_setting()[source]#

Ensure that at least one of max_edge_length, curvature_resolution_angle, or resolve_face_boundaries is specified for SurfaceRefinement.