CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (http://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Select cells based on fields (http://www.cfd-online.com/Forums/openfoam-pre-processing/102036-select-cells-based-fields.html)

dmoroian May 21, 2012 05:31

Select cells based on fields
 
Hello,
I'm trying to select a set of cells based on their velocity magnitude. In the old days there was an utility called fieldToCellSet, then cellSet, but now only setSet.
Could anyone clue me how to use it to select a set of cells based on their velocity magnitude?

Thanks,
Dragos

dmoroian May 21, 2012 08:15

setSet
 
The answer seems to be:
setSet
>cellSet bubu new
>cellSet bubu add fieldToCell U 50 150
>quit
Now, there is a cell set with all the cells having the velocity magnitude in the range [50;150]


All times are GMT -4. The time now is 09:35.