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

3D Splash - InterFOAM

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By aow
  • 2 Post By guin

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 2, 2017, 17:10
Default 3D Splash - InterFOAM
  #1
New Member
 
Benjamin
Join Date: Apr 2014
Location: Zürich
Posts: 27
Rep Power: 12
Benji is on a distinguished road
Hey @all OpenFOAM users

After quite a long time I came back to using OpenFOAM for an experiment that I am currently working on. In the end, the 3D visualisation will be as important as the computation/the result itself.

Situation: A volume of water (shape: not important at the current stage) falls from a certain height into a basin (shape: not important at the current stage) filled with water. What I am interested in is the height of the water splash that follows the impact, as well as the waves that are generated an reflected by the walls of the basin.

In a first step I just altered the interFOAM dambreak case to a very simple 3D geometry with blockMesh. After that, I let the volume (here: box) of water fall down into the „basin“.



What I was wondering is the direction of the waves that follow the impact: It seems the the propagation of the waves that follow the impact is only in direction oft he x-axis and not (or at least not in the same manner/speed) in z-direction.



I have seen this also in some other 3D dambreak cases (examples on youtube).

Of course I can also upload code/files but I have the feeling that this is due to a rather trivial mistake, can someone help me fix this or have an expanlation?

I’d be really thankful for some help on this, or also just suggestions/ideas. Thanks!

Ben

PS: If someone has inputs to the following I'll take them gladly
2. I’ll change the shape of the basin from the rectangle to cylindric, heart-formed, etc. I think I will use snappyHexMesh. Does someone have tips or a better idea?
3. I will also alter the shape of the water volume to a sphere, „drop“,... Any tips what is a good way to do this?
4. Any recommendation on visualisation tools other than paraFOAM?
Benji is offline   Reply With Quote

Old   September 5, 2017, 14:25
Default
  #2
Member
 
Rodrigo
Join Date: Mar 2010
Posts: 98
Rep Power: 16
guin is on a distinguished road
Quick guess: may you have "empty" boundary conditions for the XY-patches?
guin is offline   Reply With Quote

Old   September 8, 2017, 20:26
Default Re: 3D Splash - InterFOAM
  #3
aow
Member
 
Andrew O. Winter
Join Date: Aug 2015
Location: Seattle, WA, USA
Posts: 78
Rep Power: 11
aow is on a distinguished road
Benji,

I believe Rodrigo is correct. The default dambreak tutorial is performed as a 2D simulation with empty boundaries. To change this, go to the blockMeshDict and add the "front" and "back" faces, giving them the type "wall". You should add them into the "0" directory boundary condition files ("alpha.water", "U", "p_rgh", etc...) too, using the same conditions as those used for "leftWall", "rightWall", and "lowerWall". Once this is done correctly, all of the boundaries should behave as solid walls.

If that doesn't work, please post a .zip or .tar of your case files or at least provide sufficient details about your case setup so we can better understand what is going on.

Addressing your PS questions...

Quote:
2. I’ll change the shape of the basin from the rectangle to cylindric, heart-formed, etc. I think I will use snappyHexMesh. Does someone have tips or a better idea?
snappyHexMesh can mesh around any shape that you can make a stereolithograpy (.stl file extension) file out of, which may be done manually (see the stereolithography Wikipedia page for the format and then generate the point and normal vector data with python, Matlab, etc...) or with Autodesk's Inventor (free for students) or other similar CAD programs. There are other options too such as foamyHexMesh.

Quote:
3. I will also alter the shape of the water volume to a sphere, „drop“,... Any tips what is a good way to do this?
The setFields utility only works for rectangular regions to my knowledge so you'll have to try something different. After a quick search, I found funkySetFields, which seems to be a good option for setting non-uniform internal field values.

Quote:
4. Any recommendation on visualisation tools other than paraFOAM?
For my work I've found that ParaView is the most suitable software, but I've also tried Tecplot, which makes some very nice looking visualizations of data.

Best regards,

Andrew
Benji likes this.
aow is offline   Reply With Quote

Old   September 12, 2017, 04:41
Default
  #4
New Member
 
Benjamin
Join Date: Apr 2014
Location: Zürich
Posts: 27
Rep Power: 12
Benji is on a distinguished road
Hey

1. Thanks for the tipps, it wasn't exactly the empty patches at the walls, but rather ill defined walls in general, thanks for the direction

2. It did not get to work on this for too long, so far I have the cylindric mesh done still with blockMesh. I will try and post when I'm done with more complicated geometries, thanks for the tip with the stl-files!

3. Yup, funkySetFields seems to be it.

4. Hm, thanks again, never heard of Tecplot, but I'll give it a try.

I'll probably need some time now, but I'm sure I'll come back with more questions/problems/(results). Thanks

Ben
Benji is offline   Reply With Quote

Old   November 16, 2017, 12:10
Default
  #5
New Member
 
Benjamin
Join Date: Apr 2014
Location: Zürich
Posts: 27
Rep Power: 12
Benji is on a distinguished road
Hey everyone

I got to work on this a bit, although my goals/geometry have changed quite a bit. I still need to alter the initial conditions, but at the moment I have a more pressing thing: So far, I exported the results from paraview as jpgs/pngs and put them together with ffmpeg .

Depending on the angle there are some "un-nice" things like gaps in the surface, opacity where it shouldn't be, wrong colors at the borders between two blocks, and so on (see attachment). Does anyone have the same and/or have any tipps on how to make these images more smooth (some setting)?

Would be great, thanks.

Ben
Attached Images
File Type: jpg halfpipe_screenshot.JPG (28.3 KB, 46 views)
Benji is offline   Reply With Quote

Old   March 23, 2018, 14:24
Default
  #6
aow
Member
 
Andrew O. Winter
Join Date: Aug 2015
Location: Seattle, WA, USA
Posts: 78
Rep Power: 11
aow is on a distinguished road
Hello again Benji,

I hope you've figured out how to improve the quality of your images, but if not how did you get that surface in paraview? I've been using the following post's (Multiphase 3D free wave surface post-processing visualization in paraview) instructions (see SirWombat's first reply) to get pretty decent results for the free surface. I do get some "tears" or "holes" in the surface though (see examples below). I've not really tried hard to fix this yet though so sorry I cannot give better advice.


aow is offline   Reply With Quote

Old   March 24, 2018, 21:28
Default
  #7
Member
 
Rodrigo
Join Date: Mar 2010
Posts: 98
Rep Power: 16
guin is on a distinguished road
Again with a guess: Are you postprocessing a case in parallel? In such case, I'd suggest you to reconstruct the case before post-processing it. ParaView has usually problems with the interpolations across processor boundaries.
5tern and aow like this.
guin is offline   Reply With Quote

Old   March 26, 2018, 02:36
Default
  #8
aow
Member
 
Andrew O. Winter
Join Date: Aug 2015
Location: Seattle, WA, USA
Posts: 78
Rep Power: 11
aow is on a distinguished road
Guin,

Thanks for the tip! I have indeed been using decomposed cases in Paraview. I'll give it a shot with a recomposed case and post the results when I can to verify if that's the issue.

Andrew
aow is offline   Reply With Quote

Old   September 19, 2019, 18:54
Default Parallel vs. Reconstructed Case Free-Surface Contours
  #9
aow
Member
 
Andrew O. Winter
Join Date: Aug 2015
Location: Seattle, WA, USA
Posts: 78
Rep Power: 11
aow is on a distinguished road
I realize this is very late, but I did eventually get around to trying out using reconstructed case data instead of parallel case data as was suggested by guin who was correct about the "tears" in the free-surface contour being due to using parallel instead of reconstructed case data. I've attached an example of a case I reconstructed to show how much better it looks.

Thanks for the tip guin!

aow 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
interFoam vs. simpleFoam channel flow comparison DanM OpenFOAM Running, Solving & CFD 12 January 31, 2020 16:26
interFoam (HELYX-OS) pressure boundary conditions SFr OpenFOAM Running, Solving & CFD 8 June 23, 2016 17:36
k-e & GAMG interFoam Schemitisation Stability Issue JFM OpenFOAM Running, Solving & CFD 3 December 1, 2015 06:58
what "If" condition means in rebound brbbhatti OpenFOAM Programming & Development 0 August 12, 2014 10:18
interFoam in parallel gooya_kabir OpenFOAM Running, Solving & CFD 0 December 9, 2013 06:09


All times are GMT -4. The time now is 09:48.