GuiCommand | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
This equation calculate viscous fluid flows using the Navier-Stokes equations.
For info about the math of the equation, see the Elmer models manual, section Navier-Stokes Equations.
- After adding an Elmer solver as described here, select it in the tree view.
- Now either use the toolbar button or the menu Solve → Flow equation.
- Change the equation's solver settings or the general solver settings if necessary.
For the general solver settings, see the Elmer solver settings.
The flow equation provides these special settings:
-
Div Discretization: To be set to true for incompressible flow for more stable discretization when the Reynolds number increases.
-
Flow Model: The flow model that should be used. The default Full includes convection and time derivative terms in the model. No convection switches off the convection terms and the Stokes model switches off the convection terms and the (explicit) time derivative terms.
-
Gradp Discretization: If set to true pressure Dirichlet boundary conditions can be used. Also the mass flux is available as a natural boundary condition.
-
Variable: Optional only for calculations in 2D: You can change the default of 3 to 2.Note: In this case none of the flow velocity constraints can have a specified z-component.
Equation:
-
Convection: The type of convection to be used in the Heat equation.Note: For thermal flows it must be set to Computed (the default).
-
Magnetic Induction: If set to true the magnetic induction equation will be solved along with the Navier-Stokes equations.
If the solver results do not converge, you can try these things (in the given order):
- Reduce the Relaxation Factor, see the nonlinear system settings.
- Increase the value for Nonlinear Newton After Iterations, see the nonlinear system settings.
- Reduce the number of CPU cores used, see the FEM preferences.
- Increase the mesh density (make it more fine).
The electrostatic equation takes the following constraints into account if they are set:
- Constraint flow velocity
- Constraint initial flow velocity
- Constraint pressure
- Constraint initial pressure ((v0.21) )
- Except for calculations in 2D, for all above constraints it is important that they act on a face or body. Constraints for 3D set to lines or vertices are not recognized by the Elmer solver.
- Since Constraint pressure can only be set to faces, pressure constraints cannot be used for calculations in 2D.
- If there is no Constraint pressure set, Constraint initial pressure will only be taken into account if Gradp Discretization is set to true.
The results are the velocity in
{{FEM Tools navi}}
⏵ documentation index > FEM > FEM EquationFlow