TotalPressure#

class TotalPressure[source]#

Bases: Flow360BaseModel

TotalPressure class to specify the total pressure for Inflow boundary condition via Inflow.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

help(methods=False)#

Print fields and methods of a Flow360BaseModel using rich.

Parameters:

methods (bool)

Return type:

None

to_file(filename, **kwargs)#

Export Flow360BaseModel instance to a .json file.

Parameters:
Return type:

None