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

[OpenFOAM] How to calculate the fluid flow through a surface

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 14, 2008, 11:23
Default How to calculate the fluid flow through a surface
  #1
New Member
 
Oliver Sommer
Join Date: Mar 2009
Posts: 12
Rep Power: 16
lynx is on a distinguished road
Hello Foamers,

i have a problem. I'm not able to calculate the fluid flow through a surface (inlet or outlet for example).

At my domain i have several inlets and outlets with different settings. ("pressureInlet", "inlet" and "fixedVelocityOutlet")
To see if paraView calculates right, i let it calulate the fluid flow at the "inlet"- and the "fixedVelocityOutlet"-patch. (one by one - not at same time). Because so i can compare the paraView result value for the fluid flow with the theoretical value which i set up through the magnitude of the surface area and the given velocity there (dV/dt=A*U). (they should be equal)

My procedure:
I clicked on "Filter" in the menu and selected "Extract Parts" by clicking on it. Then i chose my "inlet"-patch (for example) and clicked on "Accept". Now with "ExtractParts0" highlightened i clicked on "Generate a Glyph" and the velocity-vectors from this patch (surface) are shown. Last i clicked on "Integrate a Vectorfield" to yield the fluid flow through this surface. But now i get the problem. the calulated value does not match the theoretical value.

My questions are:
1)Did i anything (or all) wrong?
2)What are the units (dimension) of this value there? (my theor. fluid flow value was in [m/h] - so i calculated it to [m/s], cause foam uses [m] als length units (as i likely too)
In fact i expected a value arround 160000 m/h and paraView showed me a value arround 120.000 [???]
3)Is the "." (dot) a sign for the 1000er value or the comma for the value?

Thank you in advance for your help.
lynx is offline   Reply With Quote

Old   April 14, 2008, 14:53
Default Don't know how to do it in par
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,226
Rep Power: 50
gschaider will become famous soon enoughgschaider will become famous soon enough
Don't know how to do it in paraview.
I usually do it with this utility:
http://openfoamwiki.net/index.php/Contrib_calcMassFlow
(it should compile as posted under 1.4, if not: tell me so.) (there is a more advanced version floating around on the message board)

Bernhard
__________________
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   April 18, 2008, 04:25
Default Hello!! Don't know how to d
  #3
New Member
 
Gabriela Bracho
Join Date: Mar 2009
Location: Valencia, Valencia, Spain
Posts: 14
Rep Power: 16
gaby is on a distinguished road
Hello!!

Don't know how to do it in paraview.

You can go to the discussion:

http://www.cfd-online.com/cgi-bin/Op...how.cgi?1/6921

There is the application "calcMassFlow" (by Philippose Rajan), and the steps that you must follow. It works very nice.

I hope it will work for you.

Bye
gaby is offline   Reply With Quote

Old   April 19, 2008, 09:31
Default Hi Oliver, there is an easy
  #4
Member
 
Johannes Baumann
Join Date: Mar 2009
Location: Baden-Wuerttemberg, Germany
Posts: 43
Rep Power: 16
johannes is on a distinguished road
Hi Oliver,

there is an easy way to calculate the volume flow in ParaView using the filter "Surface Flow".

Unfortunately, it doesn't work with standard OpenFOAM files, so you have to convert your case to VTK format first.

Then you can open the .vtk file of the patch you want to determine the flow through and apply the Surface Flow filter. It will print out the volume flow in m/s.

If you want to calculate the flow at various timesteps and are using ParaView 3.*, be sure to open the top level .vtk file (e.g. "outlet_..vtk") in a patch directory and not a timestep specific file (e.g. "outlet_10.vtk").

You may get an error regarding missing vectors when applying the filter and/or viewing timestep "0". The reason is: After converting an OpenFOAM case to VTK the first timestep does not contain any fields and thus no volume flow can be calculated. So nothing to worry about.

Best regards,
Johannes
johannes is offline   Reply With Quote

Old   January 20, 2016, 11:58
Default
  #5
Senior Member
 
Thomas Oliveira
Join Date: Apr 2015
Posts: 114
Rep Power: 11
t.oliveira is on a distinguished road
You can also try using a function object. See this post for instructions: http://www.cfd-online.com/Forums/ope...tml#post581774
t.oliveira 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
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 05:21
[Gmsh] Problem with Gmsh nishant_hull OpenFOAM Meshing & Mesh Conversion 23 August 5, 2015 02:09
Water subcooled boiling Attesz CFX 7 January 5, 2013 03:32
How to calculate phase flow rate? sangramroy FLUENT 0 January 11, 2012 13:02
Free - Surface Flow: Split Fluid Forces acting on a Boat Hull eee CFX 2 August 28, 2009 08:36


All times are GMT -4. The time now is 22:25.