|
[Sponsors] |
How to extract a series of cells from a fvMsh object |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 24, 2008, 01:34 |
Now we can use findCell method
|
#1 |
New Member
Jia Rui
Join Date: Mar 2009
Posts: 9
Rep Power: 17 |
Now we can use findCell method of Class primitiveMesh to find the label of one cell, if we know the exact location, ie, 3D coordinate(x,y,z).
But how I can acquire a list of labels of cells, if the cells have the same x (or y, or z) coordinate. Can someone help? Thanks! |
|
November 25, 2008, 01:34 |
Hi Jia
cell sets might help
|
#2 |
Senior Member
Join Date: Mar 2009
Posts: 248
Rep Power: 18 |
Hi Jia
cell sets might help you in that. take a look at the /utilities/mesh/manipulation/cellSet folder. In there you will also find a cellSetDict file which shows all the options available to make a cellset. go through it and see if it suits your purpose. write back if you will have questions related to cellset usage etc. hope that helps :-) Regards Jaswi |
|
November 25, 2008, 03:08 |
Thanks for your reply.
I n
|
#3 |
New Member
Jia Rui
Join Date: Mar 2009
Posts: 9
Rep Power: 17 |
Thanks for your reply.
I need to extract all cells from a circular section of a mesh. I examined cellSetDict, and guessed that 'surfaceToCell' entry may help me out with this problem. The following about surfaceToCell entry is from file cellSetDict: // Select based on surface surfaceToCell { file "www.avl.com-geometry.stl"; outsidePoints ((-99 -99 -59)); // definition of outside includeCut false; // cells cut by surface includeInside false; // cells not on outside of surf includeOutside false; // cells on outside of surf nearDistance -1; // cells with centre near surf // (set to -1 if not used) curvature 0.9; // cells within nearDistance // and near surf curvature // (set to -100 if not used) } According to this, I think I need first generate a stl file which describes the circular section, and then set 'includeInside' true. What do you think of this idea? Thanks! Regards, JiaRui |
|
November 25, 2008, 03:47 |
Hi JiaRui,
Why don't you try
|
#4 |
Senior Member
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20 |
Hi JiaRui,
Why don't you try the box feature of the cellSet utility? Is simple and effective, if you have a plannar surface. I hope it will be helpful, Dragos |
|
November 25, 2008, 06:22 |
Thanks for your idea. It sound
|
#5 |
New Member
Jia Rui
Join Date: Mar 2009
Posts: 9
Rep Power: 17 |
Thanks for your idea. It sounds good.I just heard that Foam::cuttingPlane::cells() method may also work. Maybe I can make a comparison.
I'd like to hear more comments about these methods. Thanks! |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to determine the type of an object in the object registry | mwild | OpenFOAM Running, Solving & CFD | 8 | June 8, 2010 21:58 |
[Technical] How to output a series of cells for paraFoam view | jennyrui2008 | OpenFOAM Meshing & Mesh Conversion | 1 | December 15, 2008 05:44 |
Shell cells to Fluid cells | Mahbub | Siemens | 1 | October 20, 2003 16:21 |
extract wss | ranran | FLUENT | 0 | April 17, 2003 07:44 |
UDF: neighbour cells, upwind cells | Dmitriy Makarov | FLUENT | 0 | February 18, 2001 14:53 |