flow360.TotalPressure#
- class TotalPressure[source]#
Bases:
Flow360BaseModelTotalPressureclass to specify the total pressure for Inflow boundary condition viaInflow.spec.Example
Using a constant value:
>>> fl.TotalPressure( ... value = 1.04e6 * fl.u.Pa, ... )
Using an expression (nondimensionalized by Flow360 pressure unit, rho * a^2):
>>> fl.TotalPressure( ... value = "pow(1.0+0.2*pow(0.1*(1.0-y*y),2.0),1.4/0.4) / 1.4", ... )
- value: Annotated[str, AfterValidator(func=process_expressions)] | Annotated[_Constrained, PlainSerializer(func=_dimensioned_type_serializer, return_type=PydanticUndefined, when_used=always)] [Required]#
The total pressure value. When a string expression is supplied the value needs to be nondimensionalized by the Flow360 pressure unit (rho_inf * a_inf^2).