MassFlowRate#

class MassFlowRate[source]#

Bases: Flow360BaseModel

MassFlowRate class to specify the mass flow rate for Inflow or Outflow boundary condition via Inflow.spec/Outflow.spec.

Example

>>> fl.MassFlowRate(
...     value = 123 * fl.u.lb / fl.u.s,
...     ramp_steps = 100,
... )

Attributes

value: Any#

The mass flow rate.

ramp_steps: int, optional#

Number of pseudo steps before reaching MassFlowRate.value within 1 physical step.

Default:

None

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