CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Native Meshers: snappyHexMesh and Others

Water burst inside snappyHexMesh

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 5, 2012, 11:09
Default Water burst inside snappyHexMesh
  #1
New Member
 
Efstratios Mavrogiannis
Join Date: Dec 2012
Posts: 20
Rep Power: 4
raysark is on a distinguished road
Hi,

i am a begineer in OpenFoam.

I created an stl file representing three connected tubes and this is my snappyHexMesh.

I want to find a way to add a water box inside me snappyHexMesh that bursts like the damBreak case.

Do you know what do I have to write and where (e.g. snappyHexMeshDict)?

Thank you
Attached Images
File Type: jpg Screenshot from 2012-12-05 14:11:16.jpg (61.0 KB, 14 views)
raysark is offline   Reply With Quote

Old   December 5, 2012, 13:34
Default
  #2
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 725
Rep Power: 18
mturcios777 will become famous soon enough
The damBreak case uses setFields to define a region where the fluid is located (two-phase flow). If this is all you want, then you don't need to do anything in snappyHexMesh, just use setFields. If you want actual patches you can set conditions on (split the domain into an inside/outside), you'll need to refer to the pimpleDyMFoam propeller tutorial case. They create an internal cylinder to use as an AMI boundary; you could use the same approach.
mturcios777 is offline   Reply With Quote

Old   December 5, 2012, 13:53
Default
  #3
New Member
 
Efstratios Mavrogiannis
Join Date: Dec 2012
Posts: 20
Rep Power: 4
raysark is on a distinguished road
Quote:
Originally Posted by mturcios777 View Post
The damBreak case uses setFields to define a region where the fluid is located (two-phase flow). If this is all you want, then you don't need to do anything in snappyHexMesh, just use setFields. If you want actual patches you can set conditions on (split the domain into an inside/outside), you'll need to refer to the pimpleDyMFoam propeller tutorial case. They create an internal cylinder to use as an AMI boundary; you could use the same approach.
I tried to use setFields but I couldn't do it. At the beginning I set a boxToCell with water in the Mesh but of course disappeared when I executed snappyHexMesh. Do you know which box "command" to use in order to keep it in after the snappyHexMesh. Probably I need a box that it is not connected to any of the faces of the blockMesh so i can locate it in the place where the snappyHexMesh appears and with locationInMesh to keep. Sorry if too complicated and thank you for the pimpleDyMFoam case I will see it
raysark is offline   Reply With Quote

Old   December 5, 2012, 13:55
Default
  #4
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 725
Rep Power: 18
mturcios777 will become famous soon enough
You have to use setFields after snappyHexMesh.
mturcios777 is offline   Reply With Quote

Old   December 5, 2012, 14:34
Default
  #5
New Member
 
Efstratios Mavrogiannis
Join Date: Dec 2012
Posts: 20
Rep Power: 4
raysark is on a distinguished road
Quote:
Originally Posted by mturcios777 View Post
You have to use setFields after snappyHexMesh.
I set the locationInMesh so both the blockMesh and the snappyHexMesh can be seen and I used setFields after the snapyHexMesh. everything was ok until I pressed play and no volume field for water was available in the Mesh only the blockMesh and the snappyHexMesh
raysark is offline   Reply With Quote

Old   December 5, 2012, 14:49
Default
  #6
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 725
Rep Power: 18
mturcios777 will become famous soon enough
After you have created your domain with snappyHexMesh, you can then run setFields on the newly created domain. Make sure that the settings in system/controlDict have your start time to be the mesh created by sHM. Are you using the overwrite function for sHM, or are you keeping the intermediate meshes?
mturcios777 is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Inside and outside mesh with snappyhexmesh nzy102 OpenFOAM Native Meshers: snappyHexMesh and Others 17 May 8, 2013 17:04
Water subcooled boiling Attesz CFX 7 January 5, 2013 04:32
meshing F1 front wing Steve FLUENT 0 April 17, 2003 12:37
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 09:11
uptodate water distribution network fredius,magige,tanzanian,(e.a) Main CFD Forum 0 January 27, 2002 08:10


All times are GMT -4. The time now is 18:03.