|
[Sponsors] |
[blockMesh] Set internal face as boundary with blockMesh |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 16, 2016, 19:58 |
Set internal face as boundary with blockMesh
|
#1 |
Member
Michael Frank
Join Date: Aug 2012
Posts: 55
Rep Power: 14 |
Hi,
I am trying to create a very simple mesh of a box with an inlet located on its bottom face. In addition to the 8 vertices forming my box, is it possible to create 4 more vertices which lie on the bottom plane and and use them to define an inlet? (or even just select a number of faces from the bottom face to represent the boundary!!) If not, is my only other option to split the box into 5 blocks etc.? That sounds way too complicated for what I need. Thanks in advance for your help Cheers Mike |
|
March 16, 2016, 23:03 |
|
#2 |
Senior Member
Join Date: Aug 2013
Posts: 407
Rep Power: 16 |
Hi,
You will probably need to define a faceSet with topoSet and then use the faceSet to create a patch using createPatchDict. Hope this helps. Cheers, Antimony |
|
March 17, 2016, 08:55 |
|
#3 |
Member
Michael Frank
Join Date: Aug 2012
Posts: 55
Rep Power: 14 |
Hi Antimony,
This was exactly what I was looking for. Thank you so much. |
|
March 24, 2016, 06:05 |
|
#4 |
Member
AdOo
Join Date: Mar 2016
Location: Bordeaux
Posts: 91
Rep Power: 10 |
Hi Antimony and all foamers,
I've seen that you're told to make a toposetDict to extract some faces. But I'm a bit lost with these tools, and I didn't find many documents on it. I would like to select only few face of my mesh which are define on one of my walls (in order to define them as an inlet boundary). So how to select only few faces of a path ? I've been thinking of doing this : In a first time, the tool patchToFace will allow me to select all my wall faces. Then, in a second time, I'll have to select only the faces that are interesting me by naming them one by one using the tool labelToFaces. So here is my questions: FIRST : Is it possible to do it ? I mean, doing a first selection of faces, then doing a second selection, more precise, among the first selection. SECOND : IF IT'S POSSIBLE. How to know the numbering of the faces in order to select them in the second time ? FIRD : IF it's not possible or if it's not the best way to do it, how would you do it ? I hope I've been clear. Any clue would be welcome Thanks |
|
March 24, 2016, 06:21 |
|
#5 |
Senior Member
Join Date: Aug 2013
Posts: 407
Rep Power: 16 |
Hi,
A1. Yes, you can do that. In the "action" type choose "subset" A2. Unfortunately, I am not aware of how the faces are numbered. But isn't there an easier criteria for you to use instead of labels? Maybe they all lie in a box? Or a cylinder? Whose coordinates you can define? A3. Basically combine A1 and A2 and look through the example topoSetDict available (https://github.com/OpenFOAM/OpenFOAM...et/topoSetDict) It has always been my go to source when I want to know what I can and can't do with topoSet and has been extremely useful for me. Hope this helps. Cheers, Antimony |
|
March 24, 2016, 06:45 |
|
#6 |
Member
AdOo
Join Date: Mar 2016
Location: Bordeaux
Posts: 91
Rep Power: 10 |
Thank you Antimony,
I didn't know the website you've told me. That would be very helpful ! Especially for topoSet were I didn't find much documents on it. Unfortunately my wall is a bit complicated curved surface (three sides in straight line but a fourth side curved). So I only know the four corners position of my wall... As a result, I can't specify any coordinates to select faces. |
|
March 24, 2016, 07:04 |
|
#7 |
Member
Michael Frank
Join Date: Aug 2012
Posts: 55
Rep Power: 14 |
Hi adrieno,
If the faces you want to select are not on the same plane, topoSet allows you to define a volume and select all the cells/faces whose centres are within that volume. Have a look at http://nerdalytics.blogspot.co.uk/20...-circular.html Here the first action (jetCells) gathers all the cells within the specified cylinder. The next action (f0) selects all the faces of the previously gathered cells. And the last action (f0 again) chooses the subset of faces which are in the specified volume. I hope this helps. |
|
March 25, 2016, 06:12 |
|
#8 |
Member
AdOo
Join Date: Mar 2016
Location: Bordeaux
Posts: 91
Rep Power: 10 |
Hi,
A special thanks to you two mike.franky and Antimony. Yesterday with your advices I've been able to make my new boundary. For anyone who would have one day the same questions than me:
|
|
March 29, 2016, 10:23 |
so close but so far
|
#9 |
Member
AdOo
Join Date: Mar 2016
Location: Bordeaux
Posts: 91
Rep Power: 10 |
Hi again all foamers,
I've been trying to run your method in order to make an inlet from my wall, but as a result I've got a problem with a "ghost boundary". I explain myself:
Here is my problem, when I run icofoam I get this message : // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create mesh for time = 0 Reading transportProperties Reading field p --> FOAM FATAL IO ERROR: Cannot find patchField entry for wallWithOpening Why is "wallWithOpening" boundary still existing while it's the "old" patch ? Moreover, I don't understand because when I run my createPatchDict I get on my terminal: Removing zero-sized patch wallWithOpening type wall at position 1 Removing patches. Writing repatched mesh to 5e-05 which tell me that all went fine, this old patch has been delated because it was empty (as I understand). Maybe this is due to the way I'm doing all of this ? FIRST: I run blockMesh SECOND: I run topoSet (my topoSetDict is in my "system" folder) FIRD : I run createPatch (my topoSetDict is in my "system" folder) FOURTH : I run icoFoam. Should I change manually something in my file "Boundary" or something else ? (Because nothing changes in my Boundary file (in constant) after runing topoSet and createPatch) |
|
March 29, 2016, 10:38 |
|
#10 |
Member
Michael Frank
Join Date: Aug 2012
Posts: 55
Rep Power: 14 |
Hi adrieno,
When using createPatch, use the -overwrite switch with it: createPatch -overwrite Hope this helps |
|
March 29, 2016, 10:45 |
|
#11 |
Member
AdOo
Join Date: Mar 2016
Location: Bordeaux
Posts: 91
Rep Power: 10 |
Yes cool that's it !
Thank you very much ! So happy |
|
June 26, 2019, 17:06 |
Create internal faces as walls
|
#12 |
New Member
Paras
Join Date: Jun 2019
Posts: 3
Rep Power: 7 |
Hello All,
I have been trying a lot in creating internal walls which are inclined at some angle but didn't succeed. I have been successful in generating vertical faces as walls by creating a faceSet in topoSetDict using boxToFace and then running createBaffles. I know I cannot use boxToFace for inclined walls. So is there a way to create a face inside my mesh domain? It's a simple 2D mesh. I think pointToFace should work but I am not sure what point means here. When tried it asks for pointSet. How do I define it. I know the coordinates through which the face passes. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] Error snappyhexmesh - Multiple outside loops | avinashjagdale | OpenFOAM Meshing & Mesh Conversion | 53 | March 8, 2019 10:42 |
How to make only some parameters pass trough internal face converted into a boundary | mizo | OpenFOAM Running, Solving & CFD | 4 | April 30, 2017 13:15 |
Wrong flow in ratating domain problem | Sanyo | CFX | 17 | August 15, 2015 07:20 |
[blockMesh] blockMesh how to set internal face ? | seav | OpenFOAM Meshing & Mesh Conversion | 2 | May 8, 2014 17:10 |
Create an internal face | aylalisa | OpenFOAM Pre-Processing | 1 | June 19, 2013 13:02 |