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

how to polt surface elevation over time at a fixed point ?

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By gschaider

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 12, 2012, 14:34
Default how to polt surface elevation over time at a fixed point ?
  #1
New Member
 
Teemo
Join Date: May 2012
Posts: 28
Rep Power: 13
Teemo is on a distinguished road
Hello,

I would like to plot a graph about wave pattern at a fixed point over time in paraview, but I dont know how to trace the free surface elevation, is there any way to do that without other 3rd party software?

Regards,
T
Teemo is offline   Reply With Quote

Old   July 12, 2012, 17:55
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Teemo View Post
Hello,

I would like to plot a graph about wave pattern at a fixed point over time in paraview, but I dont know how to trace the free surface elevation, is there any way to do that without other 3rd party software?

Regards,
T
Define 3rd party software? And does it have to be paraview?

If I understand you right with "fixed point" you mean coordinates ( x , y ) and you want to find the z so that ( x , y , z ) is on the water surface and then you want to plot z(t), right?

This has been described on slide 135ff of http://www.openfoamworkshop.org/6th_...der_slides.pdf

Disadvantage is of course that swak is ThirdParty-Software. Advantage is that you can do this during the simulation and therefor get a finer temporal resolution than just taking the written times (but of course you can do that kind of calculation after the simulation with swak)
Bernhard and waynezoon like this.
gschaider is offline   Reply With Quote

Old   July 13, 2012, 07:17
Default
  #3
New Member
 
Teemo
Join Date: May 2012
Posts: 28
Rep Power: 13
Teemo is on a distinguished road
Hi,
Thanks for ur reply, sry for the bad description, I would like t plot the wave elevation z (t) at fixed (x, y) but I dont know how to trace the free surface.

is there any way to achieve it in post-processing, for example, any function in paraview since it take too much time to re-run the case
Teemo is offline   Reply With Quote

Old   July 13, 2012, 07:26
Default
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Teemo View Post
Hi,
Thanks for ur reply, sry for the bad description, I would like t plot the wave elevation z (t) at fixed (x, y) but I dont know how to trace the free surface.

is there any way to achieve it in post-processing, for example, any function in paraview since it take too much time to re-run the case
Paraview I don't know, sorry (maybe by writing your own filter in Python with ProgrammableFilter). With funkyDoCalc you could do it in swak though
gschaider is offline   Reply With Quote

Old   July 14, 2012, 14:13
Default
  #5
Member
 
Björn Windén
Join Date: Feb 2012
Location: National Maritime Research Institute, Tokyo, Japan
Posts: 37
Rep Power: 14
winden is on a distinguished road
Hi.

I probe a number of points along a vertical line at (x,y) and then, using the values of alpha along that line, work out (using linear interpolation between the first point where alpha>0.5 and the last point where alpha<0.5) where alpha=0.5.

I do this as a function object but I guess you could use probesDict and process it afterwards as well.

//Björn
winden is offline   Reply With Quote

Old   July 20, 2012, 07:45
Default
  #6
New Member
 
Teemo
Join Date: May 2012
Posts: 28
Rep Power: 13
Teemo is on a distinguished road
Hi Bjorn,

Thanks for you reply, could you send you a detailed work that how you achieve this (Teemo881123@gmail.com) ? I am new to OpenFOAM so I dont quite understand what is probesDict

Many thanks,
T
Teemo is offline   Reply With Quote

Old   July 20, 2012, 09:43
Default
  #7
Senior Member
 
Join Date: Apr 2010
Posts: 151
Rep Power: 16
flowris is on a distinguished road
Hi,

I suppose you used interFoam? In that case, make a contour of places where alpha = 0.5.
flowris is offline   Reply With Quote

Old   July 20, 2012, 09:52
Default
  #8
New Member
 
Teemo
Join Date: May 2012
Posts: 28
Rep Power: 13
Teemo is on a distinguished road
hi Flowris,

I used waveFoam,based on interFoam, to simulate a wave tank.
In paraview, I made a contour where alpha=0.5, but it only shows the free surface, how can I get the Y value (vertical) VS time at a fixed x and z point?

Thanks,
T
Teemo is offline   Reply With Quote

Old   July 20, 2012, 10:49
Default
  #9
Senior Member
 
Join Date: Apr 2010
Posts: 151
Rep Power: 16
flowris is on a distinguished road
So first you make the contour plot, and then with the calculator, you color this surface using scalars > coordsY.
flowris is offline   Reply With Quote

Old   July 21, 2012, 08:05
Default
  #10
Senior Member
 
Jens Höpken
Join Date: Apr 2009
Location: Duisburg, Germany
Posts: 159
Rep Power: 17
jhoepken is on a distinguished road
Send a message via Skype™ to jhoepken
And to get the data from that contour you could either write a python script for the programmable filter in paraview or (this is a guess) you can have a look at the datapoints of the contour in a tabulated manner.
jhoepken is offline   Reply With Quote

Old   July 21, 2020, 16:04
Default
  #11
Member
 
Francisco T
Join Date: Nov 2011
Location: Melbourne, Australia
Posts: 64
Blog Entries: 1
Rep Power: 14
frantov is on a distinguished road
Quote:
Originally Posted by gschaider View Post

If I understand you right with "fixed point" you mean coordinates ( x , y ) and you want to find the z so that ( x , y , z ) is on the water surface and then you want to plot z(t), right?

This has been described on slide 135ff of http://www.openfoamworkshop.org/6th_...der_slides.pdf

you can do that kind of calculation after the simulation with swak)
Hi GSchauder
I'm interested in that method using swak. But slides are not available anymore. Any chance to get them from somewhere else?
frantov is offline   Reply With Quote

Old   July 23, 2020, 14:39
Default
  #12
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by frantov View Post
Hi GSchauder
I'm interested in that method using swak. But slides are not available anymore. Any chance to get them from somewhere else?

The presentation can be found here https://openfoamwiki.net/index.php/C...er_information (right on top of section 7.2 - The one from the 6th Workshop). There are also example files but I assume they won't work on modern OpenFOAM-versions
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   July 29, 2020, 22:58
Default
  #13
Member
 
Francisco T
Join Date: Nov 2011
Location: Melbourne, Australia
Posts: 64
Blog Entries: 1
Rep Power: 14
frantov is on a distinguished road
Quote:
Originally Posted by gschaider View Post
The presentation can be found here https://openfoamwiki.net/index.php/C...er_information (right on top of section 7.2 - The one from the 6th Workshop). There are also example files but I assume they won't work on modern OpenFOAM-versions



OK thank you.


On the same website 7.2.2 has a tutorial on the topic.
frantov 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
problem in toposet Ahmed Khattab OpenFOAM Pre-Processing 27 March 3, 2023 21:12
Wave elevation vs time cfxmar CFX 16 October 21, 2020 12:48
[Gmsh] Error : Self intersecting surface mesh, computing intersections & Error : Impossible velan OpenFOAM Meshing & Mesh Conversion 3 October 22, 2015 11:05
InterFoam negative alpha karasa03 OpenFOAM 7 December 12, 2013 03:41
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 04:03


All times are GMT -4. The time now is 19:37.