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/)
-   -   openFoam utility (https://www.cfd-online.com/Forums/openfoam-pre-processing/91279-openfoam-utility.html)

run_cfd August 5, 2011 08:40

openFoam utility
 
Hello OF users'

In OpenFoam, with the existing utilities, is it possible to select the cells contained inside an arbitrary shaped volume?

MLD

gschaider August 8, 2011 09:33

Quote:

Originally Posted by run_cfd (Post 319022)
Hello OF users'

In OpenFoam, with the existing utilities, is it possible to select the cells contained inside an arbitrary shaped volume?

MLD

Depends on how you want to specify the volume. If you've got the surface in a format that OF understands then the surfaceToCell-topoSet might help you. If you've got a field (with for instance 0 and 1) then fieldToCell might be your thing. If you've go an expression that specifies the cells then there is an expressionToCell-topoSet in swak4Foam

For the first 2 alternatives have a look at the dict that comes with the sources of the topoSet-utility. For the last option have a look at the examples that come with swak4Foam.


All times are GMT -4. The time now is 02:23.