CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Paraview & paraFoam

How to plot flow rate over time with Paraview

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

Like Tree14Likes
  • 14 Post By siddharameshwara

Reply
 
LinkBack Thread Tools Display Modes
Old   July 27, 2009, 11: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, 14:39
Question
  #2
Senior Member
 
maysmech's Avatar
 
Join Date: Jan 2010
Posts: 347
Blog Entries: 2
Rep Power: 8
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: 7
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, 08:31
Default Plotting an average value of pressure Vs Time
  #4
New Member
 
Vinay
Join Date: Nov 2009
Location: Nagpur
Posts: 21
Rep Power: 7
vinaynitrkl is on a distinguished road
Send a message via Yahoo to vinaynitrkl
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: 6
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: 116
Rep Power: 13
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!
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: 5
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: 5
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, 05:31
Default
  #9
Senior Member
 
Join Date: Jan 2013
Posts: 196
Rep Power: 4
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, 11:24
Default
  #10
Senior Member
 
Robert Sawko
Join Date: Mar 2009
Posts: 116
Rep Power: 13
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, 11:28
Default
  #11
Senior Member
 
Join Date: Jan 2013
Posts: 196
Rep Power: 4
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, 06:25
Default
  #12
Senior Member
 
Robert Sawko
Join Date: Mar 2009
Posts: 116
Rep Power: 13
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, 15:24
Default
  #13
Senior Member
 
Join Date: Jan 2013
Posts: 196
Rep Power: 4
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   Today, 15:32
Default
  #14
New Member
 
shorab hossain
Join Date: Jun 2015
Posts: 4
Rep Power: 2
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, 1 views)
shorab hossain is offline   Reply With Quote

Old   Today, 15:56
Default
  #15
New Member
 
shorab hossain
Join Date: Jun 2015
Posts: 4
Rep Power: 2
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

Reply

Tags
integrate, paraview, plot

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 15:33
Convergence moving mesh lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 15:09
sos! How to define the flow rate of outflow BC? zjm FLUENT 0 June 4, 2004 09:12
Mass flow rate graph Lior FLUENT 0 March 7, 2004 11:02
Possible?: Periodic conditions with non-constant mass flow rate. Ray FLUENT 0 April 10, 2000 06:10


All times are GMT -4. The time now is 20:35.