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", ... )
Attributes
- value: str | Any#
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).
Additional Constructors
- classmethod from_file(filename)#
Load a Flow360BaseModel from a .json file.
- Parameters:
filename (str)
- Return type:
Flow360BaseModel
Methods