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

What is the easiest way to create a 2D blockMesh with a triangular cut-out?

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

Like Tree1Likes
  • 1 Post By Bazinga

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 7, 2018, 16:37
Default What is the easiest way to create a 2D blockMesh with a triangular cut-out?
  #1
Member
 
Axel
Join Date: May 2016
Location: Augsburg, Germany
Posts: 46
Rep Power: 10
Illmatic is on a distinguished road
Hi everybody!

I am trying to get a rather simple 2D mesh, that is basically a rectangular 2D fluid domain with a triangular cut-out in the middle of it, where I can easily change the coordinates of the triangle's points.

How can I create such a mesh? I thought about using a topoSet but I couldn't find an option for triangular sets there.

Best regards,
Axel
Illmatic is offline   Reply With Quote

Old   June 8, 2018, 03:21
Default
  #2
Senior Member
 
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 16
Bazinga is on a distinguished road
Not sure if this is what you are looking for, but you could use a variable at the top of blockMeshDict for the location of the points of the triangle to conveniently change the geometry of the triangle quickly. If the size of the rectangle is also depending on the triangle it is also possible to make their location dependent on the triangle size etc.
Bazinga is offline   Reply With Quote

Old   June 8, 2018, 03:49
Default
  #3
Member
 
Axel
Join Date: May 2016
Location: Augsburg, Germany
Posts: 46
Rep Power: 10
Illmatic is on a distinguished road
Hi Bazinga,

thanks for your reply! Yes this is part of the solution I am looking for. However right now I was not even able to get a blockMesh for 3 fixed points.

So first I would need some advice on how to get the cut-out with a fixed triangle, then I would take your advice to use the variables in blockMeshDict.

Best regards,
Axel
Illmatic is offline   Reply With Quote

Old   June 8, 2018, 04:45
Default
  #4
Senior Member
 
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 16
Bazinga is on a distinguished road
I did not try a triangle yet, but blockMesh should be capable of doing it as you can create blocks with fewer than 8 vertices (check in the user guide "5.3.5 Creating blocks with fewer than 8 vertices").
Bazinga is offline   Reply With Quote

Old   June 8, 2018, 04:54
Default
  #5
Member
 
Axel
Join Date: May 2016
Location: Augsburg, Germany
Posts: 46
Rep Power: 10
Illmatic is on a distinguished road
Ok, but how would I use the triangle blockMesh to make a cut-out inside a rectangular blockMesh?
Illmatic is offline   Reply With Quote

Old   June 8, 2018, 05:00
Default
  #6
Senior Member
 
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 342
Rep Power: 28
GerhardHolzinger will become famous soon enoughGerhardHolzinger will become famous soon enough
Go the extra mile, if you're blockMesh-masochistic enough.

In that case, you can use moveMesh to rotate the red mesh region into any orientation you like. Afterwards, use AMI or stitchMesh to create single mesh region.
Attached Images
File Type: png triangleDragBlockStructure.png (11.5 KB, 54 views)
GerhardHolzinger is offline   Reply With Quote

Old   June 8, 2018, 05:02
Default
  #7
Senior Member
 
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 16
Bazinga is on a distinguished road
Is this maybe working? (see attachement)
Attached Images
File Type: png Selection_013.png (17.1 KB, 62 views)
siamak 60 likes this.
Bazinga is offline   Reply With Quote

Old   June 8, 2018, 05:04
Default
  #8
Member
 
Axel
Join Date: May 2016
Location: Augsburg, Germany
Posts: 46
Rep Power: 10
Illmatic is on a distinguished road
Hello Gerhard,

this is not exactly what I need as I believe in your case the shape of the triangle would be fixed, right?

Best regards,
Axel
Illmatic is offline   Reply With Quote

Old   June 8, 2018, 05:05
Default
  #9
Member
 
Axel
Join Date: May 2016
Location: Augsburg, Germany
Posts: 46
Rep Power: 10
Illmatic is on a distinguished road
Hi Bazinga!

That looks very promising! I will try something like this as soon as I come home.

Best regards,
Axel
Illmatic 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
[Tutorials] Tutorial of how to plot residuals ! wolle1982 OpenFOAM Community Contributions 172 Today 07:20
Thin Walls using blockMesh varun OpenFOAM Running, Solving & CFD 6 December 8, 2020 14:18
Meshing a Sphere Ajay FLUENT 10 September 3, 2016 15:18
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55
[Technical] What is the best option for create a mesh not using blockmesh titio OpenFOAM Meshing & Mesh Conversion 4 January 17, 2008 03:37


All times are GMT -4. The time now is 10:21.