CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Problem with simpleFoam (https://www.cfd-online.com/Forums/openfoam-solving/86373-problem-simplefoam.html)

 salvoblack March 21, 2011 10:02

Problem with simpleFoam

Dear foamers, i have a problem.
Every time I do a calculation with simpleFoam, I have problems related to the type of mesh used. In fact, using an airfoil, if I use a fairly low number of cells as 20,000 I get acceptable results, but if my airfoil is thicker (70000) of the cells i have completely absurd results : the solution diverges. I do not change anything between the various settings, change only the mesh. could you tell me if there is a parameter that should be changed depending on the quality of the mesh??

 mirko March 21, 2011 11:22

Quote:
 Originally Posted by salvoblack (Post 300355) Dear foamers, i have a problem. Every time I do a calculation with simpleFoam, I have problems related to the type of mesh used. In fact, using an airfoil, if I use a fairly low number of cells as 20,000 I get acceptable results, but if my airfoil is thicker (70000) of the cells i have completely absurd results : the solution diverges. I do not change anything between the various settings, change only the mesh. could you tell me if there is a parameter that should be changed depending on the quality of the mesh??
You may have to decrease the time step. Check your courant number.

 salvoblack March 22, 2011 05:41

Hello,
I use the cam to calculate the Co courant in openFoam?

Quote:
 Originally Posted by mirko (Post 300373) You may have to decrease the time step. Check your courant number.
If using simpleFoam the Co is useless, since the simulation is steady state!
Salvo, could you post checkMesh of the old (coarse) mesh and the new (finest) mesh? How do you made the refinement? Increasing the cell number does not mean that you improve mesh quality!!!
Have you try to see where the problem may be using simpleFoamResiduals?

 salvoblack March 22, 2011 10:23

i put in the terminal Co so i have the Courant number for my mesh.
I have a very very high value of this number:6*10^6. i think that this is the problem for my case.
i know that i can impose Co=1 knowing the distance between cells and the time step. How can I calculate these factors for my mesh???I don't know how calcolate the distance between cells
thanks

Hi Salvo,
Quote:
 Originally Posted by salvoblack (Post 300545) hi maddalena,sorry for my english. i put in the terminal Co so i have the Courant number for my mesh. I have a very very high value of this number:6*10^6. i think that this is the problem for my case. i know that i can impose Co=1 knowing the distance between cells and the time step. How can I calculate these factors for my mesh???I don't know how calcolate the distance between cells thanks
your English is not a big issue as far as I can understand your problem. ;)
However... are you really using simpleFoam? If so, than Co has no meaning at all! See equation 2.2 here In your case you should have set deltaT=1, since simpleFoam is a steady state solver, thus deltaT is an iteration counter only! If you want, delete the maxCo line in controlDict file. simpleFoam should no complain about this missing entry, since it does not need it.
In conclusion: the problem lies somewhere else...

 salvoblack March 23, 2011 03:54

thank you for yor help, maddalena. i decided to re-make the mesh!!!
just a curiosity, are you italian?? :)