CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   How the grading is calculated (https://www.cfd-online.com/Forums/openfoam/82711-how-grading-calculated.html)

Rickard.Solsjo December 3, 2010 06:47

How the grading is calculated
 
If I use 10 cells and 10 cm together with a stretching lets say 2
All cells are initially 1 cm each. Will the smallest cell be 1/2 cm or is it calculated in some other way?

Thx
R

Bernhard December 3, 2010 08:34

It is quite clearly explained in the user guide I think: http://www.openfoam.com/docs/user/bl...hp#x25-1440137

Rickard.Solsjo December 3, 2010 09:16

We talked it over here and assumed they are using some kind of numerical summation
L = sum(n=0,N-1)x(1+n/(N-1)) where in the end we get
x = 2L/3N based on some kind of average in the middle


All times are GMT -4. The time now is 22:34.