CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] contours for flow depths in paraview

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

Like Tree3Likes
  • 1 Post By flotus1
  • 1 Post By flotus1
  • 1 Post By flotus1

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 26, 2019, 09:39
Default contours for flow depths in paraview
  #1
New Member
 
Mohsin Raza
Join Date: Aug 2019
Posts: 11
Rep Power: 6
moraza is on a distinguished road
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.
moraza is offline   Reply With Quote

Old   August 28, 2019, 04:16
Default
  #2
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,398
Rep Power: 46
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
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?
moraza likes this.

Last edited by flotus1; August 29, 2019 at 17:50.
flotus1 is offline   Reply With Quote

Old   August 29, 2019, 03:50
Default reply
  #3
New Member
 
Mohsin Raza
Join Date: Aug 2019
Posts: 11
Rep Power: 6
moraza is on a distinguished road
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
Attached Images
File Type: jpg pipeline browser.JPG (12.4 KB, 33 views)
File Type: jpg pipeline 2.JPG (33.3 KB, 38 views)

Last edited by moraza; August 29, 2019 at 08:25.
moraza is offline   Reply With Quote

Old   August 29, 2019, 17:53
Default
  #4
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,398
Rep Power: 46
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
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.
moraza likes this.
flotus1 is offline   Reply With Quote

Old   August 30, 2019, 06:35
Post
  #5
New Member
 
Mohsin Raza
Join Date: Aug 2019
Posts: 11
Rep Power: 6
moraza is on a distinguished road
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
Attached Images
File Type: jpg th2 2pic.JPG (42.8 KB, 27 views)
moraza is offline   Reply With Quote

Old   August 30, 2019, 07:59
Default
  #6
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,398
Rep Power: 46
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
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:
  • flow field is stationary, but your simulation is not fully converged
  • flow field is unsteady, you used a transient solver, and this just happens to be the result at which you stopped the simulation
  • flow field is unsteady, you used a steady-state solver, and it did not suppress all low-frequency oscillations
moraza likes this.
flotus1 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 01:02.