CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [OpenFOAM] velocity vs time plot in paraFoam (https://www.cfd-online.com/Forums/paraview/62893-velocity-vs-time-plot-parafoam.html)

raagh77 March 23, 2009 07:37

velocity vs time plot in paraFoam
 
Hello all,

I have a very basic question in using paraFoam ..

Anyone please tell me know how do I plot velocity as a function of time..

My simulation domain is 2D rectangular region (xmax = 0.2 and ymax = 0.6). I have velocities for every time T upto 500 seconds. I have to plot velocity vs time plot at a particular value of x and y (x = 0.05 and y = 0.25).

I was able to plot velocity vs x - coordinate (or y - coordinate ) for each time T (i.e. for constant T and varying X or Y coordinates) but I was not successful plotting velocity vs time T for constant X and Y coordinates (i.e. at fixed position but varying time T).

Awaiting for replies

Regards
Raghavendra

raagh77 March 23, 2009 08:14

plot selection over time
 
I used plot selection over time in th filter menu ..but when I click apply nothing is displayed..

I think I have some problem in giving time data range

Regards
Raghavendra

raagh77 March 29, 2009 14:08

credits goes to Alberto..
 
  • The first step is selecting the point in paraFoam, so after loading your case, do the following:
    • Show your case as usual, by clicking on "Apply" in the "Properties" tab.
    • Select the field you want to plot, for example the pressure "p", in the "Display" tab.
    • Now, go to the "View" menu, and choose "Selection inspector".
    • Click on "Create Selection".
    • In "Selection type", choose "Locations".
    • In "Field type", choose "POINT".
    • In the "Locations" table that appears, insert the coordinates of the point where you want to measure your data.
    • Now the selection is created.
  • The next step is to plotting the selection:
    • Go to the "Filters -> Data Analysis -> Plot selection over time" menu.
    • On the left on the screen, you will see a button "Copy Active Selection", push it.
    • Click on "Apply" above that button.
    • You should now see your data plotted against time.

nandiganavishal February 7, 2011 13:23

Dear Ragg,

I followed your procedure, and it was displaying the time plot, but along with the variable that I wanted it is also plotting the probe location and when I deselct the probe location using the display tab, I get the following error


ASSERT failure in QList<T>::operator[]: "index out of range", file /usr/include/qt4/QtCore/qlist.h, line 399
Aborted


Further, I wanted to plot valocity so when I change from U_mag to U_x component I get the same error and paraview exits on its own..

Kindly let me know what could be the issue.

Thanks

raagh77 February 8, 2011 01:52

Hi Vishal,

Initially even I struggled to plot flow variables vs Time..
Later with the perlscripts I was able to extract data and plot variables vs Time (Thanks to my supervisor who helped me in this)

Regards
Raghu

nandiganavishal February 8, 2011 10:18

Dear Raghu,

Thanks for the reply. could you elaborate on the pearl scripts which you had mentioned.. Did you use paraview to view the time plots ??

alimea January 29, 2017 02:09

Quote:

Originally Posted by raagh77 (Post 211198)
  • The first step is selecting the point in paraFoam, so after loading your case, do the following:
    • Show your case as usual, by clicking on "Apply" in the "Properties" tab.
    • Select the field you want to plot, for example the pressure "p", in the "Display" tab.
    • Now, go to the "View" menu, and choose "Selection inspector".
    • Click on "Create Selection".
    • In "Selection type", choose "Locations".
    • In "Field type", choose "POINT".
    • In the "Locations" table that appears, insert the coordinates of the point where you want to measure your data.
    • Now the selection is created.
  • The next step is to plotting the selection:
    • Go to the "Filters -> Data Analysis -> Plot selection over time" menu.
    • On the left on the screen, you will see a button "Copy Active Selection", push it.
    • Click on "Apply" above that button.
    • You should now see your data plotted against time.


Dear Raghavendra
Thanks for the procedure. I want to select a point by giving it's coordinates, not manual selecting on domain. How can I do that?
Regards


All times are GMT -4. The time now is 11:23.