GeometryRefinement#

class GeometryRefinement[source]#

Bases: Flow360BaseModel

Setting for refining surface elements for given Surface, or within a Box region. Inside a box, the settings specified here override the per-face values of any surface passing through it; settings left unspecified keep their per-face values.

Example

>>> fl.GeometryRefinement(
...     faces=[geometry["face1"], geometry["face2"]],
...     geometry_accuracy=0.001*fl.u.m
... )
>>> fl.GeometryRefinement(
...     entities=[fl.Box(name="region", center=(1, 0, 0)*fl.u.m, size=(2, 1, 1)*fl.u.m)],
...     geometry_accuracy=0.001*fl.u.m
... )

Attributes

name: str, optional#
Default:

'Geometry refinement'

entities: EntityList[Surface, MirroredSurface, WindTunnelGhostSurface, Box]#

Surfaces to which these settings apply, and/or Box regions inside which the settings specified here override the per-face values of any surface passing through them; settings a box leaves unspecified keep their per-face values.

geometry_accuracy: Length.PositiveFloat64, optional#

The smallest length scale that will be resolved accurately by the surface meshing process.

Default:

None

preserve_thin_geometry: bool, optional#

Flag to specify whether thin geometry features with thickness roughly equal to geometry_accuracy should be resolved accurately during the surface meshing process. When applied to a Box region, the flag controls thin-feature resolution only within the box.

Default:

None

sealing_size: Length.NonNegativeFloat64, optional#

Threshold size below which all geometry gaps are automatically closed. When nonzero, it must not be smaller than geometry_accuracy.

Default:

None

min_passage_size: Length.PositiveFloat64, optional#

Minimum passage size that hidden geometry removal can resolve for this face group. Internal regions connected by thin passages smaller than this size may not be detected. It must not be smaller than geometry_accuracy, nor smaller than sealing_size when sealing_size is nonzero. If not specified, the value is derived from geometry_accuracy and sealing_size.

Default:

None

baffle_face_treatment: Literal['remove', 'thicken', 'default'], optional#

Treatment of baffle faces (faces with both sides facing fluid) within this face group.Only applies if remove_hidden_geometry is true. ‘remove’ deletes them, while ‘thicken’ inflates them into a thin closed shell. ‘default’ applies no special treatment. If not specified, inherits meshing.defaults.baffle_face_treatment.

Default:

None

Methods

ensure_geometry_ai()[source]#

Ensure feature is only activated with geometryAI enabled.