AutomatedFarfield#
- class AutomatedFarfield[source]#
Bases:
_FarfieldAllowingEnclosedEntitiesSettings for automatic farfield volume zone generation.
Example
>>> fl.AutomatedFarfield(name="Farfield", method="auto")
Attributes
- domain_type: Literal['half_body_positive_y', 'half_body_negative_y', 'full_body'], optional#
- half_body_positive_y: Trim to a half-model by slicing with the global Y=0 plane; keep the ‘+y’ side for meshing and simulation. - half_body_negative_y: Trim to a half-model by slicing with the global Y=0 plane; keep the ‘-y’ side for meshing and simulation. - full_body: Keep the full body for meshing and simulation without attempting to add symmetry planes. Warning: When using AutomatedFarfield or UserDefinedFarfield, setting domain_type overrides automatic symmetry plane detection.
- Default:
None
- enclosed_entities: EntityList[Surface, Cylinder, AxisymmetricBody, Sphere, CustomVolume], optional#
The surfaces/surface groups that are the interior boundaries of the farfield zone when defining custom volumes. - Only allowed when using one or more `CustomZone`(s) to define volume zone(s) in meshing parameters - Cylinder, AxisymmetricBody, Sphere entities must be associated with `RotationVolume`(s)
- Default:
None
- relative_size: float#
Radius of the far-field (semi)sphere/cylinder relative to the max dimension of the geometry bounding box.
- Default:
50.0
Properties
- farfield#
Returns the farfield boundary surface.
- symmetry_plane: GhostSurface#
Returns the symmetry plane boundary surface.
- symmetry_planes#
Returns the symmetry plane boundary surface(s).
Additional Constructors
- classmethod from_file(filename)#
Loads a
Flow360BaseModelfrom .json, or .yaml file.- Parameters:
filename (str) – Full path to the .yaml or .json file to load the
Flow360BaseModelfrom.- Returns:
An instance of the component class calling load.
- Return type:
Flow360BaseModel
Example
>>> params = Flow360BaseModel.from_file(filename='folder/sim.json')
Methods
- help(methods=False)#
Prints message describing the fields and methods of a
Flow360BaseModel.- Parameters:
methods (bool = False) – Whether to also print out information about object’s methods.
- Return type:
None
Example
>>> params.help(methods=True)