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

How to select faces on a plane?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 26, 2019, 15:29
Default How to select faces on a plane?
  #1
New Member
 
Join Date: Mar 2016
Posts: 23
Rep Power: 11
miragemobile is on a distinguished road
Hello,

TLDR: How do I create a patch from faces along a specified plane? The plane is an external area of the domain?

I am working with faces that lie on a single plane. I am trying to combine these faces into a single faceSet/patch to define a boundary condition.

All of these faces are currently part of different patches.

To my understanding (please correct if wrong), I need to use topoSetDict and createPatchDict and maybe something with setSet and surfaceToFace or surfaceToCell or boundaryToFace.

I've tried boundaryToFace, but it combined all exterior faces into 1 faceSet. I would like to have multiple exterior faceSets.

I've seen the example below:

name heaterCellSet;
type cellSet; //faceSet;
action new;
source boxToCell; //boxToFace;
sourceInfo
{
box (-0.01001 0 -100 )(0.01001 0.00999 100);
}

However, this requires a box to be specified around the cells/faces. For faces, it seems more natural to specify a plane.

Is there a method that doesn't involve using boxToFace? I seem to get the error message 'Face X is not external to the mesh', even though my box dimensions appear to only encapsulate one cell width.
miragemobile is offline   Reply With Quote

Old   March 26, 2019, 15:42
Default
  #2
New Member
 
Join Date: Mar 2016
Posts: 23
Rep Power: 11
miragemobile is on a distinguished road
Visually,

How would one perform this grouping of exterior faces on the flat and curved faces of a cylindrical slice?

The boxToFace would not be able to encompass all exterior faces without also encompassing interior cells...
Attached Images
File Type: png howto_3d_pie_slices2.png (2.7 KB, 15 views)
miragemobile is offline   Reply With Quote

Old   March 31, 2019, 17:38
Default
  #3
Senior Member
 
Peter Hess
Join Date: Apr 2011
Location: Austria
Posts: 250
Rep Power: 18
peterhess is on a distinguished road
Hello Miragemobile!

I cant give you direct answer, anyway I can suggest the following source:

https://openfoamwiki.net/index.php/TopoSet

See: 5 List of sources

Regards

Peter
peterhess is offline   Reply With Quote

Old   April 1, 2019, 15:17
Default
  #4
New Member
 
Join Date: Mar 2016
Posts: 23
Rep Power: 11
miragemobile is on a distinguished road
Quote:
Originally Posted by peterhess View Post
Hello Miragemobile!

I cant give you direct answer, anyway I can suggest the following source:

https://openfoamwiki.net/index.php/TopoSet

See: 5 List of sources

Regards

Peter
Thank you Peter!

normalToFace could be beneficial for my selection of faces along planes.

surfaceToCell could be beneficial for my selection of faces along a curved surface. I wonder if the STL can just be an open surface or if it has to be closed.

I will try these out.

Mirage
miragemobile is offline   Reply With Quote

Old   April 1, 2019, 17:07
Default
  #5
New Member
 
Join Date: Mar 2016
Posts: 23
Rep Power: 11
miragemobile is on a distinguished road
Two more questions:

1. normalToFace obviously collects all faces normal to a given plane (including interior faces). I am looking to collect only exterior faces. I am considering using boundaryToFace, followed by normalToFace. However I am not sure how to use the functions on an existing faceSet and not the entire domain.


2. Does anyone know if surfaceToCell requires a closed surface?

Last edited by miragemobile; April 3, 2019 at 12:37.
miragemobile is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Decomposing meshes Tobi OpenFOAM Pre-Processing 22 February 24, 2023 09:23
[snappyHexMesh] Error snappyhexmesh - Multiple outside loops avinashjagdale OpenFOAM Meshing & Mesh Conversion 53 March 8, 2019 09:42
Compressor Simulation using rhoPimpleDyMFoam Jetfire OpenFOAM Running, Solving & CFD 107 December 9, 2014 13:38
foam-extend_3.1 decompose and pyfoam warning shipman OpenFOAM 3 July 24, 2014 08:14
[ICEM] Export ICEM mesh to Gambit / Fluent romekr ANSYS Meshing & Geometry 1 November 26, 2011 12:11


All times are GMT -4. The time now is 09:39.