|
[Sponsors] |
October 4, 2010, 11:00 |
Mass flow through a patch
|
#1 |
New Member
Join Date: Jul 2010
Posts: 17
Rep Power: 15 |
Hi,
I want to calculate mass flow through a patch, using incompressible RANS transient solver (2D case). I have tried various methods, but I have some trouble with all of them 1 - Using post processing tool patchIngrate Code:
patchIntegrate phi outlet 2 - Using libsimpleFunctionObjects library 2.1 - "patchMassFlow" function : In this case I have a strange warning from OpenFoam : Code:
--> FOAM Warning : From function SolverInfo::SolverInfo(const dictionary& dict,const objectRegistry &obr) in file SolverInfo/SolverInfo.C at line 88 Neither LES nor RANS found. Assuming no turbulence It works but the output is a vector and once again I have to process the file before I can use it. Actually the best solution should be using patchMassFlow but I struggle to understand this warning. Thanks for help |
|
October 4, 2010, 11:05 |
|
#2 |
Senior Member
Emanuele
Join Date: Mar 2009
Posts: 110
Rep Power: 17 |
Take a look here:
http://www.cfd-online.com/Forums/ope...-openfoam.html I attached a file of calcMassFlow that works on OF 1.7+ |
|
October 4, 2010, 11:44 |
|
#3 |
New Member
Join Date: Jul 2010
Posts: 17
Rep Power: 15 |
Thanks for your answer. No problem to run your code but actually I have the same problem than with patchIntegrate, ie I have to format the file. I would like to get something that I could read more or less directly with gnuplot.
Code:
#Time Massflow 0.02 12.51 0.04 13.20 0.06 15.24 |
|
October 4, 2010, 12:02 |
|
#4 |
Senior Member
Emanuele
Join Date: Mar 2009
Posts: 110
Rep Power: 17 |
A precision: it's not my code. I only made some modification to get it working on OF 1.7.x
Original source code: http://openfoamwiki.net/index.php/Contrib_calcMassFlow I hope you can modify the code and obtain a "gnuplot ready" file Regards Emanuele |
|
October 5, 2010, 03:33 |
|
#5 |
New Member
Join Date: Jul 2010
Posts: 17
Rep Power: 15 |
So, I have made change in the patchIntegrate tool to fit my need and basically it works.
Anyway, I would prefer to use the libsimpleFunctionObjects in order to control the output interval and I don't really understand if the warning I get is a bug or if I miss anything. I get this warning only when I use the patchMassFlow type with this lib and not when using the patchIntegrate type from the same lib. |
|
October 5, 2010, 12:49 |
|
#6 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Bernhard PS: bug-Report at the mantis of the extend-project would be nice though |
||
October 6, 2010, 04:47 |
|
#7 |
New Member
Join Date: Jul 2010
Posts: 17
Rep Power: 15 |
Bernhard, thanks for your answer.
I am still in the learning process with OpenFOAM and I have thought that SolverInfo was an OpenFOAM class. I have run a calculation using patchMassFlow from libsimpleFunctionObjects and so far everything looks fine. |
|
|
|
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 |
[Commercial meshers] Using starToFoam | clo | OpenFOAM Meshing & Mesh Conversion | 33 | September 26, 2012 04:04 |
[blockMesh] Cyclic BC's: Possible face ordering problem? (Channel flow) | sega | OpenFOAM Meshing & Mesh Conversion | 3 | September 28, 2010 12:46 |
different mass flow rates | michael | FLUENT | 4 | February 21, 2005 03:48 |
Target mass flow rate | Saturn | FLUENT | 0 | December 10, 2004 04:18 |