|
[Sponsors] |
October 10, 2018, 08:12 |
Splitting the Boundaries
|
#1 |
Member
Chris Schäfer
Join Date: Apr 2017
Posts: 34
Rep Power: 9 |
Dear Foamers,
I read threads about toposet and others regarding spliiting patches etc. But I still struggeling with that. My goal is to split each of my Boundary-sides. I have something like a Box with left, right, front, back sides (forget the top and the bottom). I would like to split each of these 4 sides into two (so cutting each by the half) to have more flexible Boundary conditions. Has anyone an idea how to handle this? |
|
October 10, 2018, 09:20 |
|
#2 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
Easiest way to do this is using Paraview.
Follow this guide to select the cells you want in you BC. Remember to turn off "internalMesh" when you load the case. After this use surfaceToPatch with the stl you just made.
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
October 10, 2018, 10:21 |
|
#3 |
Member
Chris Schäfer
Join Date: Apr 2017
Posts: 34
Rep Power: 9 |
many many thanks Niels.
But I got an fatal error if i execute surfaceToPatch with:"No Mesh available, Probaply mesh is not read." Which sounds strange to me because my mesh is of course there! Do you have any idea where the error comes from? |
|
October 10, 2018, 11:51 |
|
#4 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
Could you please list the exact command you ran and the output of checkMesh.
Also an OF version would be nice to know.
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
October 11, 2018, 10:11 |
|
#5 |
Member
Chris Schäfer
Join Date: Apr 2017
Posts: 34
Rep Power: 9 |
The error comes from the saved surface stl file. In my case it is empty becasue paraview complains that stl files does only support triangles, I have an irregular grid. I tried it with a polygonal file format, but this does not work with the "surfaceToPatch command. The other file formats (e.g vtm)to save the surface extraction which paraview suggested fails as well.
Any idea to overcome this issue? |
|
October 11, 2018, 10:12 |
|
#6 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
Could you share the case?
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
October 12, 2018, 02:57 |
|
#7 |
Member
Chris Schäfer
Join Date: Apr 2017
Posts: 34
Rep Power: 9 |
I have a complicated environment 5terrain case which is very huge. Therefore I tried your method also on the wind around Buildings tutorial, and it fails with the same error message. A bit strange, can you maybe try on that as well?
|
|
October 12, 2018, 04:27 |
|
#8 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
Are you sure you followed all my steps?
1. Select surface cells to be used for BC 2. Extract selection 3. Extract surface 4. Save Data -> choose stl and ascii output. 5. Try and load the stl and see it is triangulated I did this for a case made with snappyHexMesh and have no problems. EDIT: Just used the windAroundBuildings tutorial and it work fine.
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
October 12, 2018, 06:43 |
|
#9 |
Member
Chris Schäfer
Join Date: Apr 2017
Posts: 34
Rep Power: 9 |
Yes, I made an animated gif, the same as your guidance but unfortunately I'am not able to share it with you. I cannot attach it as an gif the attachment management convert it to a jpg.
Sorry. |
|
October 12, 2018, 07:25 |
|
#10 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
I use imgur and then use the link to the gif here on the forum using "Insert Image".
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
October 12, 2018, 07:33 |
|
#11 |
Member
Chris Schäfer
Join Date: Apr 2017
Posts: 34
Rep Power: 9 |
Hi Niels, many thanks for your Help, and your excellent guidance.
If I apply a Triangulate filter before saving the surface stl file it works. Maybe it is somewhere predefined in your setting otherwise I do not know why you denot need it? Anyway, again many thanks. |
|
October 12, 2018, 08:00 |
|
#12 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
Maybe it is the Paraview version?
I'm using 5.5 on windows for the one I made.
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
October 15, 2018, 05:53 |
|
#13 |
Member
Chris Schäfer
Join Date: Apr 2017
Posts: 34
Rep Power: 9 |
Dear Nils,
sorry to come back again. After I could split each of my 4 patches successfully, the way forward is not clear to me. I mean now I have 8 new polymesh folders for each new splittet patch in terms of: oldside A splittet in SideA half1 and half2 oldside B splittet in SideB half1 and half2 oldside C splittet in SideC half1 and half2 oldside D splittet in SideD half1 and half2 Now I think I have to merge all of them and deleted the old entries out to have a new (combined)boundary, face, patch, owner, points and neighbour file inside the polymesh. But how, Or do I miss something? |
|
October 16, 2018, 10:21 |
|
#14 |
Member
Chris Schäfer
Join Date: Apr 2017
Posts: 34
Rep Power: 9 |
What I did in the meantime, is that I meshed the new splittet stl files with snappyhexmesh. So I think have what I want, but how I get rid of the old patches, how can I delete these. I read some other threads but I did not find the answer yet.
Any idea? |
|
October 17, 2018, 07:27 |
|
#15 |
Member
Chris Schäfer
Join Date: Apr 2017
Posts: 34
Rep Power: 9 |
Problem solved. Just using in the beginning the "half" names for each patch.
|
|
October 25, 2018, 02:12 |
|
#16 |
New Member
Bernardo Ribeiro
Join Date: Aug 2016
Posts: 13
Rep Power: 10 |
Hi guys,
Is it possible to use the same idea (in paraview) but with the internal mesh? Meaning splitting the mesh with inner and outer cylinders? Thanks! Bernardo |
|
April 30, 2019, 03:35 |
|
#17 | |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
Quote:
No that will not be possible as the cells needs to be cut to get actual cylinders. You could make the cylinders in paraview and export them as stl and use in snappy before meshing.
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
2D Rotating Detonation Engine Periodic Boundaries | whitet86 | FLUENT | 2 | June 25, 2015 12:04 |
Flux difference splitting Vs Fluctuation splitting | Vino | Main CFD Forum | 0 | January 18, 2014 16:54 |
Flux splitting | Dr B.M. Smith (Smith) | OpenFOAM Running, Solving & CFD | 19 | January 9, 2013 05:07 |
Setting Flow/Pressure Boundaries in Floworks | Eran | FloEFD, FloWorks & FloTHERM | 3 | August 11, 2009 05:23 |
periodic boundaries - flow through a net | PK | FLUENT | 0 | July 12, 2007 12:58 |