flow360.Inflow#

class Inflow[source]#

Bases: BoundaryBaseWithTurbulenceQuantities

Inflow defines the inflow boundary condition based on the input spec.

Example

  • Define inflow boundary condition with pressure:

    >>> fl.Inflow(
    ...     entities=[geometry["inflow"]],
    ...     total_temperature=300 * fl.u.K,
    ...     spec=fl.TotalPressure(1.028e6 * fl.u.Pa),
    ... )
    
  • Define inflow boundary condition with mass flow rate:

    >>> fl.Inflow(
    ...     entities=[volume_mesh["fluid/inflow"]],
    ...     total_temperature=300 * fl.u.K,
    ...     spec=fl.MassFlowRate(123 * fl.u.lb / fl.u.s),
    ... )
    
  • Define inflow boundary condition with turbulence quantities:

    >>> fl.Inflow(
    ...     entities=[volume_mesh["fluid/inflow"]],
    ...     turbulence_quantities= fl.TurbulenceQuantities(
    ...         turbulent_kinetic_energy=2.312e-3 * fl.u.m **2 / fl.u.s**2,
    ...         specific_dissipation_rate= 1020 / fl.u.s,
    ...     )
    ... )
    

name: str | None = 'Inflow'#

Name of the Inflow boundary condition.

type: Literal['Inflow'] = 'Inflow'#
total_temperature: Annotated[_AbsoluteTemperatureType, PlainSerializer(func=_dimensioned_type_serializer, return_type=PydanticUndefined, when_used=always), AfterValidator(func=_check_temperature_is_physical)] [Required]#

Specify the total temperature at the Inflow boundary.

Constraints:
  • func = <function _check_temperature_is_physical at 0x79c44aad76d0>

  • return_type = PydanticUndefined

  • when_used = always

velocity_direction: Axis | None = None#

Direction of the incoming flow. Must be a unit vector pointing into the volume. If unspecified, the direction will be normal to the surface.

spec: TotalPressure | MassFlowRate [Required]#

Specify the total pressure or the mass flow rate at the Inflow boundary.

turbulence_quantities: TurbulenceQuantitiesType | None = None#

The turbulence related quantities definition.See TurbulenceQuantities() documentation.

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

List of boundaries with boundary condition imposed.