|
[Sponsors] |
[OpenFOAM] How to calculate the fluid flow through a surface |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 14, 2008, 12:23 |
How to calculate the fluid flow through a surface
|
#1 |
New Member
Oliver Sommer
Join Date: Mar 2009
Posts: 12
Rep Power: 17 |
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. |
|
April 14, 2008, 15:53 |
Don't know how to do it in par
|
#2 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
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 |
|
April 18, 2008, 05:25 |
Hello!!
Don't know how to d
|
#3 |
New Member
Gabriela Bracho
Join Date: Mar 2009
Location: Valencia, Valencia, Spain
Posts: 14
Rep Power: 17 |
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 |
|
April 19, 2008, 10:31 |
Hi Oliver,
there is an easy
|
#4 |
Member
Johannes Baumann
Join Date: Mar 2009
Location: Baden-Wuerttemberg, Germany
Posts: 43
Rep Power: 17 |
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 |
|
January 20, 2016, 12:58 |
|
#5 |
Senior Member
Thomas Oliveira
Join Date: Apr 2015
Posts: 114
Rep Power: 12 |
You can also try using a function object. See this post for instructions: http://www.cfd-online.com/Forums/ope...tml#post581774
|
|
|
|
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 06:21 |
[Gmsh] Problem with Gmsh | nishant_hull | OpenFOAM Meshing & Mesh Conversion | 23 | August 5, 2015 03:09 |
Water subcooled boiling | Attesz | CFX | 7 | January 5, 2013 04:32 |
How to calculate phase flow rate? | sangramroy | FLUENT | 0 | January 11, 2012 14:02 |
Free - Surface Flow: Split Fluid Forces acting on a Boat Hull | eee | CFX | 2 | August 28, 2009 09:36 |