CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Setting volume fraction in a specific block? (https://www.cfd-online.com/Forums/openfoam/85538-setting-volume-fraction-specific-block.html)

tbolt427 February 28, 2011 18:50

Setting volume fraction in a specific block?
 
Hi All

I have a basic question that I can't seem to figure out in the docs. I have a domain consisting of two blocks. For the interFoam examples, setFieldsDict always uses boxToCell to set non-default values for alpha1. That is,

regions
(
boxToCell
{
box (0 0 -1) (0.1461 0.292 1);
fieldValues
(
volScalarFieldValue alpha1 1
);
}
);

Is there a method to set alpha1 in a block that has been defined in blockMeshDict?

Thanks

nimasam March 1, 2011 07:11

search in wiki about funkySetField it gave more option ;)

tbolt427 March 1, 2011 08:23

Thanks for the reply. I'll look at the wiki.

I thought about writing code to setup 0/alpha1 but it doesn't seem that it is simple to figure out which cells belong to a given block.

Again, thanks for the tip.


All times are GMT -4. The time now is 16:33.