CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Using SetFields to determine boundary conditions (https://www.cfd-online.com/Forums/openfoam-pre-processing/190942-using-setfields-determine-boundary-conditions.html)

Speno93 July 26, 2017 17:24

Using SetFields to determine boundary conditions
 
Hi there,

I'm trying to simulate a pool of gas on a floor (to simulate a spill) dissipating into the surrounding air. For this simulation I am using reactingFoam, with the reactions turned off to simulate the mixing of the two species.
Since I don't want a continuous flow of gas, I set it up using a SetFields dict, to make a small pool of the gas on the bottom of the domain.

So my question is, how do I set the boundary conditions for the gas in the 0 file? I know I need to have a specific file for each species including air and the gas, but how do I specify the initial field values for the gas, so its linked to the setFieldsDict file?


All times are GMT -4. The time now is 13:46.