Page 1 of 1

point source of a passive scalar

Posted: Tue Jul 17, 2018 10:15 am
by OUKALI
Dear Yvan,

Thank you very muck for providing this clarifications!

As I told, thanks to Code_Saturne I want to simulate the atmospheric dispersion of a pollutant emitted from a point source, first in case of a flat terrain. For this,

- I'm using the version 5.0,

- I used the Graphical Interface (.xml file, please see attachment),

- I created a structured mesh (please also see attachment).

So, I would like to insert a point source of a passive scalar with an ejection speed, viscosity and Schmidt number that I must specify.

Thank you in advance!

Best regards,

Y. Oukali

Re: point source of a passive scalar

Posted: Tue Jul 17, 2018 7:16 pm
by Yvan Fournier
Hello,

There is no "true" point source in Code_Saturne, only volume sources, but you simply need to select a small volume containing you point.

Be careful, selection criteria such as "box[]" select only cells whose center of gravity is in the indicated volume, so a better selection approach might be to use a user subroutine, and select (using "findpt") the cell whose center is closest to your given point. Otherwise, with the GUI, you can also create additional postprocessing meshes using a given cell selection, so you can use trial and error to select a single cell and visualize it, if you do not want to use user functions.

If the point does not move between computations, an alternative option might be to insert a small boundary portion in the mesh to handle this as an inlet (easier to control velocity and direction, as you otherwise probably need both a scalar source term and a velocity source term).

Best regards,

Yvan