Navier-Stokes in a volume

Numerical methods and mathematical models of Elmer

Navier-Stokes in a volume

Postby synthetiser » 20 Jun 2017, 18:37

I'm trying to simulate the transportation of gas inside volumes. I tried to base myself on the tutorials, but I'm not sure I did it right.
I putted all walls on no slip, an entrance and a exit for the gas as in the tutorial. For the simulation I used the transient and BDF setups. You can find in attachment the case.sif and the result illustrated with paraview (the volume is almost cylindrical, I need to succeed to use the 3d because it's just the first step. Later I'll use non symmetric volumes).
First of all you can see that in the bottlenecks the gas does not seem to go through. Is it just the representation that fail to use unique tetrahedrons or there's a problem?
Then the vectors does not look correct to me, they seem to go directly against the walls, without really following it.

The question is simply, do I use correctly the Navier-Stokes simulation, given in the attached case.sif?

Thank you very much for your help
(2.39 KiB) Downloaded 11 times
The gas arrive from the bottom and exits through the top.
(179.58 KiB) Not downloaded yet
Posts: 2
Joined: 20 Jun 2017, 17:20

Re: Navier-Stokes in a volume

Postby kishpishar » 30 Jun 2017, 21:17


Looking at your sif - a few comments. Air Flow inlet velocity is 10 m/s, so the flow could be turbulent: use a turbulence model, for eg. kepsilon. Also remove NS Convect = False from Equation 1 - you need convection. Didn't quite understand why you used two materials - air and ideal gas. If there is only one fluid, i.e, air, please use navier-stokes and k-epsilon solvers with just one coupled non-linear iteration of both solvers.

Posts: 15
Joined: 17 Jun 2015, 10:04

Re: Navier-Stokes in a volume

Postby raback » 01 Jul 2017, 03:33


I think that for ideal gas you should probably use the bubble stabilization. It is more generic while the standard stabilization assumes more strict form of the equation.

Site Admin
Posts: 3083
Joined: 22 Aug 2009, 11:57
Location: Espoo, Finland

Re: Navier-Stokes in a volume

Postby synthetiser » 10 Jul 2017, 16:18

Thanks for your answers,
To put convection helped, I already got a more convincing result, but not yet very different.
For the k-epsilon, I'm quite ignorant. I tried to figure it out, especially from the elmersolvermanual.pdf, but it's not described.
I tried quickly a naive approach, putting it active an launching it just to see what it gives. I just got NaN as Relative change values and it finishes on an ERROR.
I obviously use it wrongly (sorry, I'm really a beginner in FEM). Can you give me some indications to use it correctly please? thank you very much.

PS: Changing to bubble stabilization didn't have significative effect; the case.sif is the same except for NS Convect
Posts: 2
Joined: 20 Jun 2017, 17:20

Return to ElmerSolver

Who is online

Users browsing this forum: No registered users and 5 guests