Wall#

class Wall[source]#

Bases: BoundaryBase

Wall class defines the wall boundary condition based on the inputs. Refer here for formulation details.

Example

  • Wall with wall function and prescribed velocity:

    >>> fl.Wall(
    ...     entities=geometry["wall_function"],
    ...     velocity = ["min(0.2, 0.2 + 0.2*y/0.5)", "0", "0.1*y/0.5"],
    ...     use_wall_function=True,
    ... )
    
    >>> fl.Wall(
    ...     entities=volume_mesh["8"],
    ...     velocity=WallRotation(
    ...       axis=(0, 0, 1),
    ...       center=(1, 2, 3) * u.m,
    ...       angular_velocity=100 * u.rpm
    ...     ),
    ...     use_wall_function=True,
    ... )
    
  • Define isothermal wall boundary condition on entities with the naming pattern "fluid/isothermal-*":

    >>> fl.Wall(
    ...     entities=volume_mesh["fluid/isothermal-*"],
    ...     heat_spec=fl.Temperature(350 * fl.u.K),
    ... )
    
  • Define isoflux wall boundary condition on entities with the naming pattern "solid/isoflux-*":

    >>> fl.Wall(
    ...     entities=volume_mesh["solid/isoflux-*"],
    ...     heat_spec=fl.HeatFlux(1.0 * fl.u.W/fl.u.m**2),
    ... )
    
  • Define Slater no-slip bleed model on entities with the naming pattern "fluid/SlaterBoundary-*":

    >>> fl.Wall(
    ...     entities=volume_mesh["fluid/SlaterBoundary-*"],
    ...     velocity=fl.SlaterPorousBleed(
    ...         static_pressure=1.01e6 * fl.u.Pa, porosity=0.4, activation_step=200
    ...     ),
    ... )
    
  • Define roughness height on entities with the naming pattern "fluid/Roughness-*":

    >>> fl.Wall(
    ...     entities=volume_mesh["fluid/Roughness-*"],
    ...     roughness_height=0.1 * fl.u.mm,
    ... )
    

Attributes

entities: EntityList[Surface, MirroredSurface, WindTunnelGhostSurface]#

List of boundaries with the Wall boundary condition imposed.

name: str, optional#

Name of the Wall boundary condition.

Default:

'Wall'

use_wall_function: bool#

Specify if use wall functions to estimate the velocity field close to the solid boundaries.

Default:

False

velocity: SlaterPorousBleed | WallRotation | tuple[str, str, str] | VelocityType.Vector, optional#

Prescribe a velocity or the velocity model on the wall.

Default:

None

heat_spec: HeatFlux | Temperature#

Specify the heat flux or temperature at the Wall boundary.

Default:

HeatFlux()

roughness_height: LengthType.NonNegative#

Equivalent sand grain roughness height. Available only to Fluid zone boundaries.

Default:

0 * m

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')