Fluid#
- class Fluid[source]#
Bases:
PDEModelBaseFluidclass for setting up the volume model that contains all the common fields every fluid dynamics zone should have.Example
>>> fl.Fluid( ... navier_stokes_solver=fl.NavierStokesSolver( ... absolute_tolerance=1e-10, ... linear_solver=fl.LinearSolver(max_iterations=35), ... low_mach_preconditioner=True, ... ), ... turbulence_model_solver=fl.SpalartAllmaras( ... absolute_tolerance=1e-10, ... linear_solver=fl.LinearSolver(max_iterations=25) ... ), ... transition_model_solver=fl.NoneSolver(), ... )
Attributes
- initial_condition: NavierStokesModifiedRestartSolution | NavierStokesInitialCondition#
The initial condition of the fluid solver.
- Default:
NavierStokesInitialCondition()
Navier-Stokes solver settings, see
NavierStokesSolverdocumentation.- Default:
NavierStokesSolver()
- turbulence_model_solver: NoneSolver | SpalartAllmaras | KOmegaSST#
Turbulence model solver settings, see
SpalartAllmaras,KOmegaSSTandNoneSolverdocumentation.- Default:
SpalartAllmaras()
- transition_model_solver: NoneSolver | TransitionModelSolver#
Transition solver settings, see
TransitionModelSolverdocumentation.- Default:
NoneSolver()
- gravity: Gravity, optional#
Gravitational body force settings. When specified, gravity is applied globally to all fluid zones. See
Gravitydocumentation.- Default:
None
- interface_interpolation_tolerance: float#
Interpolation will fail if the distance between an interpolation point and the closest triangle is greater than relative_interpolation_tolerance multiplied by the maximum edge length of the patch containing the interpolation point.
- Default:
0.2
Additional Constructors
- classmethod from_file(filename)#
Load a Flow360BaseModel from a .json file.
- Parameters:
filename (str)
- Return type:
Flow360BaseModel
Methods