|
[Sponsors] |
[OpenFOAM] contours for flow depths in paraview |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 26, 2019, 09:39 |
contours for flow depths in paraview
|
#1 |
New Member
Mohsin Raza
Join Date: Aug 2019
Posts: 11
Rep Power: 6 |
Hi foamers,
I am currently trying to post process an open channel flow with paraview. I am trying for the last one moth and search forums to get an answer for my problem. I want to draw contours for flow depths like the attached picture. Last edited by moraza; August 29, 2019 at 08:25. |
|
August 28, 2019, 04:16 |
|
#2 |
Super Moderator
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,399
Rep Power: 46 |
At which point in the process are you stuck? I can give you some hints, but since I haven't done the exact same plot you will still have to do some fumbling around on your own.
First of all, I assume this is some kind of 3D multiphase simulation like VOF? Then you should be able to create an iso-surface of fluid phase=0.5 to represent the interface. Then on this interface, you can create a contour plot of the height coordinate. In case the floor is not 0, create a calculator first which subtracts the floor height. There will still be some more cosmetics to get the plot looking like your example, but I hope this helps get you started. Then again, why do a 2D contour plot when you could just as well show the 3D isosurface of the fluid phase? Last edited by flotus1; August 29, 2019 at 17:50. |
|
August 29, 2019, 03:50 |
reply
|
#3 |
New Member
Mohsin Raza
Join Date: Aug 2019
Posts: 11
Rep Power: 6 |
Thank you for the quick reply.
Yes, this is a 3D multiphase flow (VOF method). Attached are few pictures of what I have done so far. Then I imported the .csv file to ArcMap to create a contour, but the contour was a bit messy. One last question. In my case there is a bed slope of 10^-6, how can I calculate the depths at different points using calculator? As for as 2D contours is concerned, I want to do this for validation Last edited by moraza; August 29, 2019 at 08:25. |
|
August 29, 2019, 17:53 |
|
#4 |
Super Moderator
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,399
Rep Power: 46 |
Looks like you are almost there, just a bit more cosmetics.
As for the slope...I guess you could derive a formula for the floor z-coordinate at every given xy-coordinate. Then subtract that in the calculator from the z-coordinate of the iso-surface. Messy contours: Paraview has a built-in "smooth" filter. You might try that on the iso-surface, but it could be considered cheating, depending on who you ask. |
|
August 30, 2019, 06:35 |
|
#5 |
New Member
Mohsin Raza
Join Date: Aug 2019
Posts: 11
Rep Power: 6 |
Thank You for the encouragement,
I am facing another problem. In my case the geometry is symmetrical, but for some reasons on the downstream side of the cylinder the results seems to be unsymmetrical. My question is, Is there any problem with the geometry or mesh. Pic attached |
|
August 30, 2019, 07:59 |
|
#6 |
Super Moderator
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,399
Rep Power: 46 |
There could be a lot going on... this question would be better suited in the sub-forum of the solver you are using. You will have to give more details about the flow, your solver and its settings. And the mesh you used. Be descriptive, show pictures.
If you used none of the solvers that have a dedicated sub-forum here, try the main forum. First things that come to mind, in no particular order:
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to visualize contours of functions in paraview ? | TRIDEV G | Visualization & Post-Processing | 0 | May 22, 2019 05:45 |
Display the value of isosurface in contours of Paraview | Jingxue Wang | OpenFOAM Running, Solving & CFD | 0 | January 18, 2018 05:06 |
[OpenFOAM] Trouble smoothing contours in Paraview | deji | ParaView | 0 | October 19, 2017 13:10 |
[General] Paraview 4.4.0 - Problem generating velocity contours | davibarreira | ParaView | 2 | November 7, 2015 07:33 |
paraFoam reader for OpenFOAM 1.6 | smart | OpenFOAM Installation | 13 | November 16, 2009 21:41 |