WindTunnelFarfield#

class WindTunnelFarfield[source]#

Bases: _FarfieldBase

Settings for analytic wind tunnel farfield generation. The user only needs to provide tunnel dimensions and floor type and dimensions, rather than a geometry.

Important: By default, the volume mesher will grow boundary layers on WindTunnelFarfield. Use PassiveSpacing to project or disable boundary layer growth.

Example

>>> fl.WindTunnelFarfield(
    width = 10 * fl.u.m,
    height = 5 * fl.u.m,
    inlet_x_position = -10 * fl.u.m,
    outlet_x_position = 20 * fl.u.m,
    floor_z_position = 0 * fl.u.m,
    floor_type = fl.CentralBelt(
        central_belt_x_range = (-1, 4) * fl.u.m,
        central_belt_width = 1.2 * fl.u.m
    )
)

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

name: str#

Name of the wind tunnel farfield.

Default:

'Wind Tunnel Farfield'

width: LengthType.Positive#

Width of the wind tunnel.

Default:

10 * m

height: LengthType.Positive#

Height of the wind tunnel.

Default:

6 * m

inlet_x_position: LengthType#

X-position of the inlet.

Default:

-20 * m

outlet_x_position: LengthType#

X-position of the outlet.

Default:

40 * m

floor_z_position: LengthType#

Z-position of the floor.

Default:

0 * m

floor_type: StaticFloor | FullyMovingFloor | CentralBelt | WheelBelts#

Floor type of the wind tunnel.

Default:

StaticFloor()

Properties

symmetry_plane: GhostSurface#

Returns the symmetry plane boundary surface for half body domains.

Additional Constructors

classmethod from_file(filename)#

Loads a Flow360BaseModel from .json, or .yaml file.

Parameters:

filename (str) – Full path to the .yaml or .json file to load the Flow360BaseModel from.

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) 
to_file(filename, **kwargs)#

Exports Flow360BaseModel instance to .json or .yaml file

Parameters:

filename (str) – Full path to the .json or .yaml or file to save the Flow360BaseModel to.

Return type:

None

Example

>>> params.to_file(filename='folder/flow360.json')