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

[snappyHexMesh] Water burst inside snappyHexMesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 5, 2012, 10:09
Default Water burst inside snappyHexMesh
  #1
New Member
 
Efstratios Mavrogiannis
Join Date: Dec 2012
Posts: 20
Rep Power: 13
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, 18 views)
raysark is offline   Reply With Quote

Old   December 5, 2012, 12:34
Default
  #2
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
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, 12:53
Default
  #3
New Member
 
Efstratios Mavrogiannis
Join Date: Dec 2012
Posts: 20
Rep Power: 13
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, 12:55
Default
  #4
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
You have to use setFields after snappyHexMesh.
mturcios777 is offline   Reply With Quote

Old   December 5, 2012, 13:34
Default
  #5
New Member
 
Efstratios Mavrogiannis
Join Date: Dec 2012
Posts: 20
Rep Power: 13
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, 13:49
Default
  #6
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
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


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
No liquid water exist in my Fuel Cell simulation fatchang FLUENT 19 October 15, 2018 14:27
[snappyHexMesh] Moving/rotating STL/OBJ inside SnappyHexMesh palgroth OpenFOAM Meshing & Mesh Conversion 3 December 31, 2017 07:44
Evaporation of thin water film Stephen Waite CFX 6 July 3, 2014 22:14
free surface flow inside channel that gets narrower JohnAB STAR-CCM+ 4 June 24, 2013 15:48
[snappyHexMesh] SnappyHexMesh Meshing inside a cylinder nammari OpenFOAM Meshing & Mesh Conversion 5 March 11, 2011 19:49


All times are GMT -4. The time now is 04:50.