|
[Sponsors] |
September 2, 2017, 17:10 |
3D Splash - InterFOAM
|
#1 |
New Member
Benjamin
Join Date: Apr 2014
Location: Zürich
Posts: 27
Rep Power: 12 |
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? |
|
September 5, 2017, 14:25 |
|
#2 |
Member
Rodrigo
Join Date: Mar 2010
Posts: 98
Rep Power: 16 |
Quick guess: may you have "empty" boundary conditions for the XY-patches?
|
|
September 8, 2017, 20:26 |
Re: 3D Splash - InterFOAM
|
#3 | |||
Member
Andrew O. Winter
Join Date: Aug 2015
Location: Seattle, WA, USA
Posts: 78
Rep Power: 11 |
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:
Quote:
Quote:
Best regards, Andrew |
||||
September 12, 2017, 04:41 |
|
#4 |
New Member
Benjamin
Join Date: Apr 2014
Location: Zürich
Posts: 27
Rep Power: 12 |
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 |
|
November 16, 2017, 12:10 |
|
#5 |
New Member
Benjamin
Join Date: Apr 2014
Location: Zürich
Posts: 27
Rep Power: 12 |
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 |
|
March 23, 2018, 14:24 |
|
#6 |
Member
Andrew O. Winter
Join Date: Aug 2015
Location: Seattle, WA, USA
Posts: 78
Rep Power: 11 |
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. |
|
March 24, 2018, 21:28 |
|
#7 |
Member
Rodrigo
Join Date: Mar 2010
Posts: 98
Rep Power: 16 |
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.
|
|
March 26, 2018, 02:36 |
|
#8 |
Member
Andrew O. Winter
Join Date: Aug 2015
Location: Seattle, WA, USA
Posts: 78
Rep Power: 11 |
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 |
|
September 19, 2019, 18:54 |
Parallel vs. Reconstructed Case Free-Surface Contours
|
#9 |
Member
Andrew O. Winter
Join Date: Aug 2015
Location: Seattle, WA, USA
Posts: 78
Rep Power: 11 |
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! |
|
|
|
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 |