CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Problem in 3D Navier stokes solver (https://www.cfd-online.com/Forums/main/125419-problem-3d-navier-stokes-solver.html)

suhas jain October 25, 2013 03:36

Problem in 3D Navier stokes solver
 
1 Attachment(s)
Hi everyone,

I am solving unsteady 3D Navier stokes equations on staggered cartesian grid. The solver is converging but the results are not matching with the Literature. What might be the reason? I have attached the profile obtained for Re Number 1000.


Thanks in advance.

suhas

FMDenaro October 25, 2013 04:12

check if you really reached a steady solution, then check if the divergence-free constraint is satisfied cell-by-cell. The BC is correctly imposed?
Furthermore, you case is a 3D lid-driven, what database are you using to compare your solution?

suhas jain October 25, 2013 05:41

Hi,


Thank you for the reply.

1. It is reaching steady state.
2. It is divergence-free with residual 10e-10
3. I am doubtful about the boundary condition applied. I am using explicit BC method i.e I am updating the value of ghost cell after the iteration. Is this right?
4. I ran the same solution in OpenFOAM to compare it with mine and referred Feldman paper to match 3D results.


And the more important thing is I am using first order upwind which should be more diffusive. But I am getting a bigger secondary vortex as can be seen in the above attachment. How can this occur?

FMDenaro October 25, 2013 06:01

Quote:

Originally Posted by suhas jain (Post 458951)
Hi,


Thank you for the reply.

1. It is reaching steady state.
2. It is divergence-free with residual 10e-10
3. I am doubtful about the boundary condition applied. I am using explicit BC method i.e I am updating the value of ghost cell after the iteration. Is this right?
4. I ran the same solution in OpenFOAM to compare it with mine and referred Feldman paper to match 3D results.


And the more important thing is I am using first order upwind which should be more diffusive. But I am getting a bigger secondary vortex as can be seen in the above attachment. How can this occur?

1. is reaching or reached?
2. cell-by-cell?
3. are you using a first order extrapolation?
4. I don't know that paper, I suggest to check for a more quantitative variable than the snapshot of streamlines. It is also advisable to check if a 2D solver provides the well known solution at Re=1000.

First order upwind can increase the tangential stress, more energy can be transferred to secondary vortices and they can become bigger.

suhas jain October 25, 2013 08:36

1. It has already reached steady state.
2. I am checking divergence free for every cell and the max value of residual is 10e-10.
3. What exactly do you mean by extrapolation(Is it richardson extrapolation?).
4. I have plotted the centre line value of Ux velocity and tried to match with Ghia's result, but there is small difference due to the presence of that vortex which cuts that centre line.

FMDenaro October 25, 2013 08:54

you can not compare your 3D driven cavity with the Ghia's solution that is 2D... have you tested the 2D OpenFoam solver?

suhas jain October 25, 2013 09:00

No I ran a 3D OpenFOAM problem. And one more difference is the solution in OpenFOAM was highly unsteady for that Reynolds Number. But for my case it was less fluctuating and reached steady state earlier than OpenFOAM's result.

FMDenaro October 25, 2013 09:05

Quote:

Originally Posted by suhas jain (Post 458993)
No I ran a 3D OpenFOAM problem. And one more difference is the solution in OpenFOAM was highly unsteady for that Reynolds Number. But for my case it was less fluctuating and reached steady state earlier than OpenFOAM's result.

it has no sense in comparing 3D and 2D solutions due to the strong effect of the lateral walls.... you have to do a 2D run..
A possible chance is to run a lower Re case (Re=400) using the 3D solver but setting periodic condition in the spanwise direction (z).

suhas jain October 25, 2013 09:11

No I actually ran 3D OpenFOAM code to match it with my solver which is also 3D.

mnabi October 26, 2013 11:36

It is probably because of first order upwinding. Try, for example, Quick Scheme and then compare the results.

suhas jain October 26, 2013 14:19

Yes I am changing that first order upwind now to deferred correction by giving blending between UDS and CDS.

mnabi October 26, 2013 14:32

You also can try central differentiating. If you use pressure correction, no wiggles will usually happen, as the pressure correction acts as stabilizer for the momentum. You can try, and see either your model works without wiggles for your applied Re number.


All times are GMT -4. The time now is 09:16.