CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (http://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   CellSet question (http://www.cfd-online.com/Forums/openfoam-post-processing/61322-cellset-question.html)

bobbicknell February 24, 2009 17:50

I have a question about the us
 
I have a question about the use of cellSet. I'm trying to extract a cellSet out of my mesh where 0 <= gamma <= 0.5 AND it is in a box (5 0 -10) (25 12 10). I can get cellSet to do one or the other but not both simulateously. Below is the cellSetDict that I have been working with.

Any help would be greatly appreciated.

Bob


/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: 1.5 |
| \ / A nd | Web: http://www.OpenFOAM.org |
| \/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object cellSetDict;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

// Name of set to operate on
name DriveBubbleSet;

// One of clear/new/invert/add/delete|subset/list
action new;

// Actions to apply to cellSet. These are all the topoSetSource's ending
// in ..ToCell (see the meshTools library).

topoSetSources
(

// Cells with cell centre within box


// values of field within certain range
fieldToCell
{
fieldName alpha1; // Note: uses mag(U) since volVectorField
min 0.0;
max 0.5;
}
boxToCell
{
box (5 0 -10) (25 12 10);
}

);


//************************************************** *********************** //


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