code-saturne / code_saturne

code_saturne public mirror
https://www.code-saturne.org
GNU General Public License v2.0
218 stars 81 forks source link

Incorrect wall distance using axisymmetric mesh #41

Open YvanFournier opened 5 years ago

YvanFournier commented 5 years ago

On "axysymmetric" cases (where the mesh uses a radially extruded slice, with symmetry on the sides), the wall distance approximated by a diffusion equation (in distpr) can be imprecise, with a difference up to 40% having been observed.

This issue also occurs using the CDO operators, so seems due to the the choice of equation or boundary conditions rather than linear operator.

In any case, this can induce an error on turbulence variables.

More works needs to be done on this, but replacing the approximate wall distance with a geometrically computed wall distance for the boundary cells might at least mitigate the effects.

Attached is a small case allowing to test this. test_pipe_axi.tar.gz