CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

How to extract a series of cells from a fvMsh object

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   November 24, 2008, 01:34
Default Now we can use findCell method
  #1
New Member
 
Jia Rui
Join Date: Mar 2009
Posts: 9
Rep Power: 8
jennyrui2008 is on a distinguished road
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!
jennyrui2008 is offline   Reply With Quote

Old   November 25, 2008, 01:34
Default Hi Jia cell sets might help
  #2
Senior Member
 
Join Date: Mar 2009
Posts: 248
Rep Power: 9
jaswi is on a distinguished road
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
jaswi is offline   Reply With Quote

Old   November 25, 2008, 03:08
Default Thanks for your reply. I n
  #3
New Member
 
Jia Rui
Join Date: Mar 2009
Posts: 9
Rep Power: 8
jennyrui2008 is on a distinguished road
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
jennyrui2008 is offline   Reply With Quote

Old   November 25, 2008, 03:47
Default Hi JiaRui, Why don't you try
  #4
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 647
Rep Power: 11
dmoroian is on a distinguished road
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
dmoroian is offline   Reply With Quote

Old   November 25, 2008, 06:22
Default Thanks for your idea. It sound
  #5
New Member
 
Jia Rui
Join Date: Mar 2009
Posts: 9
Rep Power: 8
jennyrui2008 is on a distinguished road
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!
jennyrui2008 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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 20:58
How to output a series of cells for paraFoam view jennyrui2008 OpenFOAM Meshing Format & General Technical 1 December 15, 2008 05:44
Shell cells to Fluid cells Mahbub CD-adapco 1 October 20, 2003 15:21
extract wss ranran FLUENT 0 April 17, 2003 06:44
UDF: neighbour cells, upwind cells Dmitriy Makarov FLUENT 0 February 18, 2001 14:53


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