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

Help with Tunnel in Dambreak Tutorial Modification

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 7, 2018, 15:06
Default Help with Tunnel in Dambreak Tutorial Modification
  #1
New Member
 
Join Date: May 2018
Posts: 4
Rep Power: 6
Braedan is on a distinguished road
So I have just started using openfoam, and have gone through some tutorials. I wanted to learn by modifying the dam break tutorial to encompass a tunnel for the water to flow through rather than just the water flowing over. I used the boundary conditions from the weir tutorial for an inlet and outlet for the water flow. I have also extended the tutorial to 3 dimensions. Now I wanted to add a tunnel and have achieved creating a hex of the tunnel, but I am confused on how to establish the tunnel as a hole, as right now it is just another boundary block and its 2 faces touch with the faces of the dam walls so no water will flow through the tunnel. I have tried separating the hex blocks into smaller ones to accompany for this change and of course changing the walls as well, but I only get massive errors from the blockMesh about faces not matching their patches and hexes not forming correctly. Then I proceeded on to try and create the walls of the dam and walls of the tunnel as patches and mergepatchpairs to try and establish a connection between the two but have got an error when I tried to establish the boundary conditions in my files in 0.orig for the Initial conditions on the patches. Ive spent two days trying to do this but still no luck, I feel like it is a very easy solution but it manages to escape my grasp. Any and all help is very much appreciated! Thank you very much for your time.
~Braedan
Braedan is offline   Reply With Quote

Old   May 9, 2018, 16:28
Default
  #2
Senior Member
 
Paulo Vatavuk
Join Date: Mar 2009
Location: Campinas, Brasil
Posts: 192
Rep Power: 15
vatavuk is on a distinguished road
Hi Braedan,

Welcome to the forum!
It is difficult to understand what you are trying to do. Could you make a drawing with the flow configuration you want to simulate?

Best Regards,
Paulo
vatavuk is offline   Reply With Quote

Old   May 9, 2018, 16:36
Default
  #3
New Member
 
Join Date: May 2018
Posts: 4
Rep Power: 6
Braedan is on a distinguished road
Hey Vatavuk,
Thanks for the reply. Unfortunately, at the moment I am unable to create a diagram being on the go. In essence I want to reconfigure the geometry of the damBreak tutorial so that the water, rather than flowing over the dam, flows through a block created through the dam. But my problem is that I cannot create the wall of the dam on either side where the wall of the dam is aligned with the tunnel block is empty, so that the water will actually flow through the block. I will hopefully be able to upload a drawing of the configuration I want if my problem is still to confusing at a later time. Thank you
Braedan is offline   Reply With Quote

Old   May 10, 2018, 09:15
Default
  #4
Senior Member
 
Paulo Vatavuk
Join Date: Mar 2009
Location: Campinas, Brasil
Posts: 192
Rep Power: 15
vatavuk is on a distinguished road
Hi Braedan,

There are two ways to create your geometry and mesh:

a) Use blockMesh. This may become difficult because blockMesh by default requires that the interface between blocks match perfectly with each other.

b) Use blockMesh and snappyHexMesh. This is normally best choice for a complicated geometry. First you create a simple block using blockMesh, then you create the dam with the tunnel using a CAD program and export the model to the stl format. The last step is to insert the dam inside the block using snappyHexMesh. To perform those steps, you may follow the tutorial in the link below:

https://www.hpc.ntnu.no/display/hpc/...llway+Tutorial

This tutorial was prepared for version 2.0 of OF. The geometry and mesh creation part of the tutorial works fine with the new versions of OF, but to run interFoam you must make some adaptations that are described in:

https://unicfd.ru/en/training-tracks...-openfoam-4-1/

Best regards,
Paulo
vatavuk is offline   Reply With Quote

Reply

Tags
dambreak, tutorials, waterflow

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
Good boundary conditions for a NACA wind tunnel ? TerenceA OpenFOAM Pre-Processing 2 September 25, 2017 00:53
Wing external flow (tutorial) D-0679 OpenFOAM Running, Solving & CFD 3 September 16, 2017 15:49
Help on interFoam writeControl in damBreak tutorial asaha OpenFOAM Running, Solving & CFD 1 February 2, 2009 07:36
Looking for FloWorks tutorial for wind tunnel sim Mike Winters Main CFD Forum 1 October 9, 2005 22:53
Rotor/stator tutorial, and how to... gilberto CFX 5 January 21, 2002 09:41


All times are GMT -4. The time now is 11:45.