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/)
-   -   how to define a region with specific gas (https://www.cfd-online.com/Forums/openfoam-pre-processing/169396-how-define-region-specific-gas.html)

SH_Zhong April 9, 2016 03:54

how to define a region with specific gas
 
Hi friends. I am working on a project about combustion in a box-a DNS study.Since I am a freshman with OF, I come across many problems. One of my problems is how to define a region with specific gas like n-heptane, I want a spherical region in my box, which is filled with n-heptane. However, I don't know how to achieve it.
Many thanks in advance.

Pier84 April 15, 2016 06:12

Are you using XiFoam?
I would like to know as well how define a gas region in an air domain containing a gas region.

PO

SH_Zhong April 15, 2016 11:18

setfields utility
 
Quote:

Originally Posted by Pier84 (Post 595144)
Are you using XiFoam?
I would like to know as well how define a gas region in an air domain containing a gas region.

PO

Hi PO,
I am using reactingFoam instead of XiFoam. And I hava define a region with different gas with setfields utility. You can learn about damBreak for a example, which is in the tutorial-multiphase-interFoam.

SH

Pier84 April 18, 2016 00:34

Quote:

Originally Posted by SH_Zhong (Post 595192)
Hi PO,
I am using reactingFoam instead of XiFoam. And I hava define a region with different gas with setfields utility. You can learn about damBreak for a example, which is in the tutorial-multiphase-interFoam.

SH

Hi Zhong,

Thank you for the suggestion.
I used the utility "setFields" as in the damBreak example. I think I miss something because XiFoam does not read the defined gas region.

Please give more about using setFields for defining a gas region. I used setFields for mapping Su for example (e.g. Su=0 outside the gas region) but it does not work.

Thanks,
PO


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