flow360.snappy.SurfaceEdgeRefinement#

class SurfaceEdgeRefinement#

Bases: Flow360BaseModel

Edge refinement for bodies and regions in snappyHexMesh.

refinement_type: Literal['SnappySurfaceEdgeRefinement'] = 'SnappySurfaceEdgeRefinement'#
spacing: Annotated[_VectorType, PlainSerializer(func=_dimensioned_type_serializer, return_type=PydanticUndefined, when_used=always)] | Annotated[_Constrained, PlainSerializer(func=_dimensioned_type_serializer, return_type=PydanticUndefined, when_used=always)] | None = None#

Spacing on and close to the edges. Defaults to default min_spacing.

distances: Annotated[_VectorType, PlainSerializer(func=_dimensioned_type_serializer, return_type=PydanticUndefined, when_used=always)] | None = None#

Distance from the edge where the spacing will be applied.

min_elem: Annotated[int, Ge(ge=0)] | None = None#

Minimum number of elements on the edge to apply the edge refinement.

min_len: Annotated[_Constrained, PlainSerializer(func=_dimensioned_type_serializer, return_type=PydanticUndefined, when_used=always)] | None = None#

Minimum length of the edge to apply edge refinement.

included_angle: Annotated[_Constrained, PlainSerializer(func=_dimensioned_type_serializer, return_type=PydanticUndefined, when_used=always)] = unyt_quantity(150, 'degree')#

If the angle between two elements is less than this value, the edge is extracted as a feature.

Constraints:
  • func = <function _dimensioned_type_serializer at 0x76d26c7ff370>

  • return_type = PydanticUndefined

  • when_used = always

entities: EntityList[SnappyBody, Surface] = None#
retain_on_smoothing: bool = True#

Maintain the edge when smoothing is applied.