|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Bob Bicknell
Join Date: Mar 2009
Posts: 1
Rep Power: 0 ![]() |
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); } ); //************************************************** *********************** // |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[mesh manipulation] BlockMesh cellSet refineMesh | mattijs | OpenFOAM Meshing & Mesh Conversion | 41 | April 7, 2020 09:32 |
Create a cellSet out of the gamma directory | cricke | OpenFOAM Running, Solving & CFD | 11 | July 12, 2009 03:52 |
C question | kar | OpenFOAM Running, Solving & CFD | 26 | May 20, 2008 06:05 |
Center coordinates of all the cells in a cellset | lizhihua | Siemens | 0 | August 21, 2006 03:59 |
question about LES | gino briganti | FLUENT | 3 | June 27, 2005 06:05 |