CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Pre-Processing

Create cellSet in specified distance to all patches

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

LinkBack Thread Tools Display Modes
Old   September 15, 2017, 07:27
Default Create cellSet in specified distance to all patches
New Member
Join Date: Aug 2017
Posts: 10
Rep Power: 2
schf is on a distinguished road
Hello everyone,
I need to do calculation during runtime only on the cells which are ~1cm away from a patch.

So the goal is to create a cellSet/cellZone and then to loop over these cells. The best I found so far to create such a cellSet is this function in topoSet:

// Select based on surface     
surfaceToCell     {         
   file            "name.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)     
But I need it more general so I don't have to specify each patch by itself.

Does anybody got an idea how to do this?
schf is offline   Reply With Quote


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
Problem with decomposePar, snappyHexMesh luca1992 OpenFOAM 12 August 23, 2017 19:06
How to create patches thomas. Open Source Meshers: Gmsh, Netgen, CGNS, ... 4 February 26, 2016 04:57
Create patches from a very complex geometry CoSponge OpenFOAM Meshing & Mesh Conversion 4 October 9, 2015 12:32
How to create patches for this problem sachin OpenFOAM Running, Solving & CFD 0 August 11, 2009 08:40
Where's the singularity/mesh flaw? audrich FLUENT 3 August 4, 2009 01:07

All times are GMT -4. The time now is 16:13.