CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Create cellSet in specified distance to all patches

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 15, 2017, 07:27
Default Create cellSet in specified distance to all patches
  #1
New Member
 
Join Date: Aug 2017
Posts: 10
Rep Power: 8
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:

Code:
 
// 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

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[snappyHexMesh] Problem with decomposePar, snappyHexMesh luca1992 OpenFOAM Meshing & Mesh Conversion 12 August 23, 2017 19:06
[Other] How to create patches thomas. OpenFOAM Meshing & Mesh Conversion 4 February 26, 2016 03:57
[mesh manipulation] 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 02:59.