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

[OpenFOAM] How to plot flow rate over time with Paraview

Register Blogs Community New Posts Updated Threads Search

Like Tree32Likes
  • 30 Post By siddharameshwara
  • 2 Post By AlmostSurelyRob

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 27, 2009, 12:02
Default How to plot flow rate over time with Paraview
  #1
New Member
 
sekunda's Avatar
 
F. G. P.
Join Date: Jul 2009
Location: Italy
Posts: 1
Rep Power: 0
sekunda is on a distinguished road
Hello everybody, I already searched for a similar topic, but I couldn't find it.
I guess my question about Paraview (3.4.0, Win version) is rather simple for you, but I didn't find any tip about it neither on the web.

I am dealing with a fluid-structure interaction problem for hemodynamics. First step of my work is a fluid flow in a straight tube. I imported in Paraview a *.case file containing pressure, velocity and displacement data of every node of a mesh over 100 time steps. Now I have to plot pressure and flow rate (volume per second) over time for several sections of the tube. How can I do it?

I used "Slice" filter to select my sections of interest, but I don't understand how filters like "Integrate variables" or "Plot ... over time" work.

Can anybody help me (even with links to useful online tutorials, for example)?

Thanks a lot
Best regards
sekunda is offline   Reply With Quote

Old   October 23, 2010, 15:39
Question
  #2
Senior Member
 
maysmech's Avatar
 
Join Date: Jan 2010
Posts: 347
Blog Entries: 2
Rep Power: 17
maysmech is on a distinguished road
I have same problem in ParaView 3.8
------------

Dear Foamers,

How can i calculate mass flow rate of a surface which its velocity profile is available (by using paraView calculator)?

Last edited by wyldckat; November 23, 2014 at 16:23. Reason: merged 3 posts from the same topic
maysmech is offline   Reply With Quote

Old   December 15, 2010, 07:37
Smile
  #3
Member
 
Join Date: Sep 2010
Posts: 36
Rep Power: 17
siddharameshwara is on a distinguished road
Quote:
Originally Posted by sekunda View Post
Hello everybody, I already searched for a similar topic, but I couldn't find it.
I guess my question about Paraview (3.4.0, Win version) is rather simple for you, but I didn't find any tip about it neither on the web.

I am dealing with a fluid-structure interaction problem for hemodynamics. First step of my work is a fluid flow in a straight tube. I imported in Paraview a *.case file containing pressure, velocity and displacement data of every node of a mesh over 100 time steps. Now I have to plot pressure and flow rate (volume per second) over time for several sections of the tube. How can I do it?

I used "Slice" filter to select my sections of interest, but I don't understand how filters like "Integrate variables" or "Plot ... over time" work.

Can anybody help me (even with links to useful online tutorials, for example)?

Thanks a lot
Best regards
#


Hello,

step 1:In filters--->alphabets you select calculator option.

and then a block will be opened in that you select scalars---->U_X or U_Y depending on the direction you want. and name it in the Result array name as flow rate and then click apply.

step 2: and the n select filters---->alphabets----> integrate variables option.

step 3:It will display one window in that you select the variable name you have given flowrate

step 4:Now, filters----->alphabets---->plot selection over time

now click the copy active selction option and then press apply.
siddharameshwara is offline   Reply With Quote

Old   May 2, 2011, 09:31
Default Plotting an average value of pressure Vs Time
  #4
New Member
 
Jan
Join Date: Nov 2009
Posts: 21
Rep Power: 17
vinaynitrkl is on a distinguished road
I want to plot a graph of average value of pressure at certain height Vs Time of a 3D column in Paraview. I am a newbie to paraview. Couldn't find any relevant info on net and in paraview tutorial.

Can anyone please help me with this?
vinaynitrkl is offline   Reply With Quote

Old   November 1, 2011, 08:46
Default
  #5
New Member
 
giovanni silva
Join Date: Jul 2010
Posts: 14
Rep Power: 16
giovanni10 is on a distinguished road
Quote:
Originally Posted by siddharameshwara View Post
#


Hello,

step 1:In filters--->alphabets you select calculator option.

and then a block will be opened in that you select scalars---->U_X or U_Y depending on the direction you want. and name it in the Result array name as flow rate and then click apply.

step 2: and the n select filters---->alphabets----> integrate variables option.

step 3:It will display one window in that you select the variable name you have given flowrate

step 4:Now, filters----->alphabets---->plot selection over time

now click the copy active selction option and then press apply.

I have a 2D cavity (2Pi X 2Pi) with periodic boundary conditions in both x and y directions. I have already found the kinetic energy {(Ux²+Uy²)/2 } for each time step.
At the moment, I want to find the mean kinetic energy for each time step and plot kinetic energy versus time.
I was thinking of declaring in calculator a variable Ekinetic/(2Pi²) and and select integrate variables option. Then, plot selection over time.
Is it correct?
Thanks in advance!
giovanni10 is offline   Reply With Quote

Old   November 18, 2011, 05:42
Default
  #6
Senior Member
 
Robert Sawko
Join Date: Mar 2009
Posts: 117
Rep Power: 22
AlmostSurelyRob will become famous soon enough
Quote:
Originally Posted by siddharameshwara View Post
#

step 1:In filters--->alphabets you select calculator option.

and then a block will be opened in that you select scalars---->U_X or U_Y depending on the direction you want. and name it in the Result array name as flow rate and then click apply.

step 2: and the n select filters---->alphabets----> integrate variables option.

step 3:It will display one window in that you select the variable name you have given flowrate

step 4:Now, filters----->alphabets---->plot selection over time

now click the copy active selction option and then press apply.
I would just like to add one comment. For the flow rate, above procedure works well as for ParaView 3.12. There is one more step though between 3 and 4

Step 3' Visualise your integrate variables in a 3D view and select in via Select Points Through

Step 4 Apply your Plot selection over time

Also in case you were like me and wanted to plot an integral of a scalar over time rather than flow rates bear in mind that you still HAVE to use the Calculator filter. I am not sure why this is so, but if I was doing integrate variables on my raw scalar fields the Plot Over Time filter wouldn't work. I guess it has something to do with the fact that the first variable in my Integrate Variable was velocity.

After applying the Calculator filter and just retyping my scalar as "Result" I got what I wanted.

Thanks!
mizzou and Fabian2602 like this.
AlmostSurelyRob is offline   Reply With Quote

Old   December 15, 2011, 06:25
Question selection plot over time
  #7
New Member
 
tomek
Join Date: Dec 2011
Location: Stuttgart, Germany
Posts: 13
Rep Power: 14
sto16 is on a distinguished road
hey...

i have a 2d simulation of a turbulent 2 species flow in reactingFoam.

Now i want to plot the change of concentration of the species at one point on the bottom line ("wall") over the time.
I tried the steps u explained before and I managed to select points and cells - but when i click on "plot selection over time" there is always an error-message with several entries:

"warning: in /build/buildd /paraview-3.6.2/VTK/Common/vtkDataArrayTemplate.txx, line 450
vtkIdTypeArray (0xd1c7248): Input and Output array data types do not match"


do u have an idea how to solve this problem.

Is there a problem because of the boundary conditions at the wall?

But even when i choose a point some distance away from the wall, the error comes again.

sto16 is offline   Reply With Quote

Old   December 16, 2011, 03:46
Default
  #8
New Member
 
tomek
Join Date: Dec 2011
Location: Stuttgart, Germany
Posts: 13
Rep Power: 14
sto16 is on a distinguished road
ok...
i managed to plot several informations (RowData: p, U, T, ...) over time with a finer mesh and selecting cells, which do not belong to the wall, by entering the location manually.

unfortunatelly i can not plot the concentration over time.


does anybody have an idea what is the reason for this problem and how to solve it?!?


greetz and thanks...
sto16 is offline   Reply With Quote

Old   July 18, 2014, 06:31
Default
  #9
Senior Member
 
Join Date: Jan 2013
Posts: 372
Rep Power: 14
openfoammaofnepo is on a distinguished road
Dear Robert,

Thank you for your comments. For your Step 3', I am not sure the underlying purpose. When I apply the Integrate Variable filter, I will have a separate window, actually it is a table where the integral values are listed there. Here why the 3D visulization is needed here for plotting the selection over time?

OFFO
openfoammaofnepo is offline   Reply With Quote

Old   July 18, 2014, 12:24
Default
  #10
Senior Member
 
Robert Sawko
Join Date: Mar 2009
Posts: 117
Rep Power: 22
AlmostSurelyRob will become famous soon enough
The reason for doing 3' is to be able to do 4. In order to run "Plot Selection over Time" you need something to be selected and as far as I know you cannot just select it in "Pipeline Browser". It must be selected from one of the views. 3D is one possibility, but you can also select a tuple from your table view and then run "Plot selection over time" which is perhaps more intuitive, but I wasn't aware of this possibility at the time.

So to summarise 3' is optional. You just cannot select Integrate Variables from the "Pipeline Browser" must be a view, either "Table View" or "3D view" but you must select something. In 3D view Integrate Variables is represented as a point in Table View it's a tuple.

Hope that helps.
AlmostSurelyRob is offline   Reply With Quote

Old   July 18, 2014, 12:28
Default
  #11
Senior Member
 
Join Date: Jan 2013
Posts: 372
Rep Power: 14
openfoammaofnepo is on a distinguished road
Thank you. I found that when I complete the filter "integrate the variables", I can click the table , and then click the copy active selction option and then press apply. It seems working. Now my paraview is running and I will see it can indeed give me the results I want. Which version did you use? Thank you.
openfoammaofnepo is offline   Reply With Quote

Old   July 20, 2014, 07:25
Default
  #12
Senior Member
 
Robert Sawko
Join Date: Mar 2009
Posts: 117
Rep Power: 22
AlmostSurelyRob will become famous soon enough
I am on the latest ParaView. 4.1 I think, but these posts were probably related to 3.x. I would say that the only counter-intuitive thing is that a selection of an object from Pipeline Browser + Plot Selection Over Time (PSOT), doesn't work. I guess this has to do with the way PSOT is working - you have to select something from an active view rather than browsers.
AlmostSurelyRob is offline   Reply With Quote

Old   July 20, 2014, 16:24
Default
  #13
Senior Member
 
Join Date: Jan 2013
Posts: 372
Rep Power: 14
openfoammaofnepo is on a distinguished road
Dear Robert,

Thank you for your reply. I use Paraview 3.98.1, and what you mentioned worked. But now I have a problem. When I use the above procedures, the paraview will work for a long time since my data is very large. Sometimes paraview console will terminate automatically. Did you have this similar problem when you did the above procedures?

Thank you very much.
OFFO
openfoammaofnepo is offline   Reply With Quote

Old   July 7, 2015, 16:32
Default
  #14
New Member
 
shorab hossain
Join Date: Jun 2015
Posts: 4
Rep Power: 11
shorab hossain is on a distinguished road
[QUOTE=openfoammaofnepo;502371]Dear Robert,

Thank you for your reply. I am beginner in Ansys.and working on pulsatile blood flow through artery.now i want to draw velocity vs time graph at different position of artery In Ansys fluent.How can i draw it in CFD post?Or is there any other way?
Attached Images
File Type: jpg Untitled.jpg1.jpg (43.4 KB, 307 views)
shorab hossain is offline   Reply With Quote

Old   July 7, 2015, 16:56
Default
  #15
New Member
 
shorab hossain
Join Date: Jun 2015
Posts: 4
Rep Power: 11
shorab hossain is on a distinguished road
Thank you for your reply. I am beginner in Ansys.and working on pulsatile blood flow through artery.now i want to draw velocity vs time graph at different position of artery In Ansys fluent.How can i draw it in CFD post?Or is there any other way?
shorab hossain is offline   Reply With Quote

Old   December 2, 2015, 13:42
Default
  #16
Senior Member
 
ArielJ
Join Date: Aug 2015
Posts: 127
Rep Power: 11
arieljeds is on a distinguished road
Hi,

I am trying to simulate free surface flow in a wave tank. I'm a newbie at CFD/Openfoam, etc etc so I'm trying to mess around a bit with boundary conditions and also using the waves2Foam toolbox for wave generation. I have created a simulation that appears to generate regular waves across a wave tank but I would like to be able to plot the velocities and pressures at specific places in the flow. Later, I will add a cylinder into the flow and would like to be able to generate and plot velocities and pressures in a specific part of the flow.

My question is:

How can I plot a variable (velocity or pressure) over time at a specific place?

I attempted a few different things, and got no plot:
1) plot global variables over time - no output plot
2) created a slice filter and attempted to make a plot on that slice only.
3) Followed the steps given earlier in this thread. This did not work either.

I know that I'm probably going about this wrong but would really appreciate some advice on how to do this as I'm sure it's simple in paraview. I suspect that it involves me better understanding the data or what I'm plotting, so any advice on this would be greatly appreciated as well

Thank you!
Ariel
arieljeds is offline   Reply With Quote

Old   March 17, 2016, 07:06
Default
  #17
New Member
 
Prasanna Welahettige
Join Date: Jan 2016
Location: Norway
Posts: 28
Rep Power: 10
prasa is on a distinguished road
Hi,

If u have a plot over time on poin , read this

https://cmake.org/pipermail/paraview...ch/011471.html
prasa is offline   Reply With Quote

Old   July 23, 2020, 14:14
Arrow Calculate the FlowRate and Plot it Over Time in ParaView
  #18
Senior Member
 
Asmaa
Join Date: Mar 2016
Posts: 102
Rep Power: 10
foamiste is on a distinguished road
Please check the video below to understand How to Calculate the FlowRate and Plot it Over Time in ParaView:

https://youtu.be/vgFL8kv320w
foamiste is offline   Reply With Quote

Reply

Tags
integrate, paraview, plot


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
[Other] Contribution a new utility: refine wall layer mesh based on yPlus field lakeat OpenFOAM Community Contributions 58 December 23, 2021 03:36
Pressure Outlet Targeted Mass Flow Rate LuckyTran FLUENT 1 November 23, 2016 11:40
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 16:33
plot over time fferroni OpenFOAM Post-Processing 7 June 8, 2012 08:56
How to Plot Mass Flow Rate w.r.t No. of Iterations Julie FLUENT 2 July 30, 2002 11:50


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