CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Creating a spherical domain (https://www.cfd-online.com/Forums/openfoam-solving/217275-creating-spherical-domain.html)

Yamini K May 7, 2019 01:08

Creating a spherical domain
 
Hello!
I would like to know how to initialise a spherical domain and give the input values in OpenFOAM. It would be of great help if someone could suggest some idea or the procedure or any documentation related to it.

Thank You.

fumiya May 7, 2019 09:33

Hi,

You can use the setFields utility to set values on a selected set of cells.
For selecting a spherical domain you can use the sphereToCell option:
https://github.com/OpenFOAM/OpenFOAM.../setFieldsDict

Hope this helps,
Fumiya


All times are GMT -4. The time now is 06:50.