GeometryRefinement#
- class GeometryRefinement[source]#
Bases:
Flow360BaseModelSetting for refining surface elements for given Surface, or within a
Boxregion. 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. Where several boxes overlap, each setting is combined towards the more conservative value (finestgeometry_accuracy, largestsealing_size, smallest effectivemin_passage_size, andpreserve_thin_geometryenabled if any box enables it), independently of the order in which the boxes are listed. See Overlapping refinement boxes for details.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
- entities: EntityList[Surface, MirroredSurface, WindTunnelGhostSurface, Box]#
Surfaces to which these settings apply, and/or
Boxregions 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: ‘remove’ deletes them, ‘thicken’ inflates them into a thin closed shell, and ‘default’ applies no special baffle handling. This only takes effect if remove_hidden_geometry is true. If not specified, inherits meshing.defaults.baffle_face_treatment.
- Default:
None
- baffle_thicken_outward: float, optional#
How far a thickened baffle face in this face group extends past the original surface on its more exposed side (the side with more open space around it), in multiples of geometry_accuracy. Which side is more exposed is inferred from the surrounding geometry (if the two sides are equally exposed, the total is split evenly instead). Set to 0 to put the whole shell on the inward side. The two extents must sum to at least 4.0. If not specified, inherits meshing.defaults.baffle_thicken_outward, which is 2.0.
- Default:
None
- baffle_thicken_inward: float, optional#
How far a thickened baffle face in this face group extends past the original surface on its less exposed side, in multiples of geometry_accuracy. Set to 0 to put the whole shell on the outward side. The two extents must sum to at least 4.0. If not specified, inherits meshing.defaults.baffle_thicken_inward, which is 2.0.
- Default:
None
Methods