Now we can use findCell method
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!
Hi Jia cell sets might help
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 :-)
Thanks for your reply. I n
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
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?
Hi JiaRui, Why don't you try
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,
Thanks for your idea. It sound
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.
|All times are GMT -4. The time now is 15:12.|