NavierStokesInitialCondition#
- class NavierStokesInitialCondition[source]#
Bases:
ExpressionInitialConditionBaseNavierStokesInitialConditionclass for specifying theFluid.initial_condition.Note
The result of the expressions will be treated as non-dimensional values. Please refer to the Units Introduction for more details.
Example
>>> fl.NavierStokesInitialCondition( ... rho = "(x <= 0) ? (1.0) : (0.125)", ... u = "0", ... v = "0", ... w = "0", ... p = "(x <= 0) ? (1 / 1.4) : (0.1 / 1.4)" ... )
Attributes
- constants: dict[str, typing.Annotated[str, AfterValidator(func=<function process_expressions at 0x7bbe26477a30>)]] | None#
The expression for the initial condition.
- Default:
None
Additional Constructors
- classmethod from_file(filename)#
Load a Flow360BaseModel from a .json file.
- Parameters:
filename (str)
- Return type:
Flow360BaseModel
Methods