flow360.Wall#

class Wall[source]#

Bases: BoundaryBase

Wall class defines the wall boundary condition based on the inputs.

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
    ...     ),
    ... )
    

name: str | None = 'Wall'#

Name of the Wall boundary condition.

type: Literal['Wall'] = 'Wall'#
use_wall_function: bool = False#

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

velocity: Annotated[SlaterPorousBleed | WallRotation, FieldInfo(annotation=NoneType, required=True, discriminator='type_name')] | Tuple[Annotated[str, AfterValidator(func=process_expressions)], Annotated[str, AfterValidator(func=process_expressions)], Annotated[str, AfterValidator(func=process_expressions)]] | Annotated[_VectorType, PlainSerializer(func=_dimensioned_type_serializer, return_type=PydanticUndefined, when_used=always)] | None = None#

Prescribe a velocity or the velocity model on the wall.

heat_spec: HeatFlux | Temperature = HeatFlux(value=unyt_quantity(0., 'W/m**2'), type_name='HeatFlux')#

Specify the heat flux or temperature at the Wall boundary.

roughness_height: Annotated[_Constrained, PlainSerializer(func=_dimensioned_type_serializer, return_type=PydanticUndefined, when_used=always)] = unyt_quantity(0, 'm')#

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

Constraints:
  • func = <function _dimensioned_type_serializer at 0x70391099c040>

  • return_type = PydanticUndefined

  • when_used = always

entities: EntityList[Surface] [Required] (alias 'surfaces')#

List of boundaries with boundary condition imposed.