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 = ( ... f"{OMEGA[1]} * (z - {CENTER[2]}) - {OMEGA[2]} * (y - {CENTER[1]})", ... f"{OMEGA[2]} * (x - {CENTER[0]}) - {OMEGA[0]} * (z - {CENTER[2]})", ... f"{OMEGA[0]} * (y - {CENTER[1]}) - {OMEGA[1]} * (x - {CENTER[0]})", ... ), ... 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), ... )
- use_wall_function: bool = False#
Specify if use wall functions to estimate the velocity field close to the solid boundaries.
- velocity: 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 tangential velocity 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.
- entities: EntityList[Surface] [Required] (alias 'surfaces')#
List of boundaries with boundary condition imposed.