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/)
-   -   boxToCell alternatives (https://www.cfd-online.com/Forums/openfoam-pre-processing/148404-boxtocell-alternatives.html)

silo February 11, 2015 07:44

boxToCell alternatives
 
I want to simulate a compressible flow inside a cylindrical pipe what alternatives that I can use instead of boxToCell to setFields. I'm still new in openFoam

alexeym February 11, 2015 08:19

Hi,

As setFields uses topoSetSource for selecting cells, you can use examples from topoSet utility (with certain modifications), you can find them in $FOAM_APP/utilities/mesh/manipulation/topoSet/topoSetDict file.

Below is an example of cylinderToCell source usage in setFieldsDict file:

Code:

regions
(
    cylinderToCell
    {
        p1 (0 0 -1.0);
        p2 (0 0  1.0);
        radius 0.35;

        fieldValues
        (
            volScalarFieldValue T 393.15
        );
    }
);


silo February 12, 2015 04:58

Hi Alexeym,

Thanks a lot for your reply

Silo


All times are GMT -4. The time now is 10:26.