how to calculate mass flow rate /simpleFoam
Hi Foamers,
How can I get the mass flow rate through patch?? I´m trying to obtain mass flow rate values to validate the result using the "flow in a 90° planar tee-junction" validation test case of Fluent ( Experiments by Hayes) http://oniken.free.fr/prg%20ecole/fl.../PDF/VAL_4.PDF I was able to obtain similars contouts of static pressure, but I´m having severs problem to get the mass flow rate through exits. I´m working with openfoam 2.0, simpleFoam solver and I can´t compile calcMassFlow utilityhttp://openfoamwiki.net/index.php/Contrib_calcMassFlow and I don´t understand how to use swak4foam. Code:
usuarioubuntu@SAN1496UBU:~/swak4Foam/otros/calcMassFlow$ wmake |
|
Quote:
|
Quote from the wiki.
Quote:
|
Thanks for the answer.
I had compiled swak4foam without problems, but I think that the mass flow entry need some changes. If I use the the one in wiki I got this error; Quote: Starting time loop --> FOAM Warning : From function dlLibraryTable:pen(const fileName&) in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99 could not load "libsimpleFunctionObjects.so" --> FOAM FATAL ERROR: Unknown function type patchMassFlow Table of functionObjects is empty From function functionObject::New(const word& name, const Time&, const dictionary&) in file db/functionObjects/functionObject/functionObject.C at line 74. FOAM exiting So now I´m trying to replace "libsimpleFunctionObjects.so" and patchMassFlow Thanks! |
I'll have a look at it tomorrow.
|
I keep trying with swak4foam but no results..
I have compiled calcMassFlow http://openfoamwiki.net/index.php/Contrib_calcMassFlow An I was able to obtain some result, I will check the values now |
Hi again
Just tried adding the entry from the wiki and this is the output. So it works fine. Code:
smoothSolver: Solving for Ux, Initial residual = 1.74784e-06, Final residual = 5.48515e-08, No Iterations 3 I've also compiled the full swak4foam for OF21. Try to do this instead. Code:
functions |
Quote:
|
Quote:
The libsimpleFunctionObjects.so wasn´t there so I went to swak4foam folder and "Allwmake" it. Now the libsimple... is in the folder $FOAM_USER_LIBBIN . Many thanks! I have studied the case http://www.sciencedirect.com/science...45793089900273 ( I dont have the paper so if anyone have it pls pm me) https://www.sharcnet.ca/Software/Flu...gvmfl010-1.jpg My results under simpleFoam are really similars for % of flow split Code:
Reynolds 10 100 200 300 400 |
This is a bit tangential to the original question, but still falls unde the scope of the title. I'm struggling with understanding how mass flow rate is determined in the simpleFoam models (I'm using buoyantBoussinesqSimpleFoam) when there is no specification of the density in the transportProperties file. Does anyone have an idea of where the density may be entered, before I dig into the source code? Thanks in advance.
|
Quote:
|
What is the factor 19.7363 there for? Is it a unit conversion, and if so, from what to what?
|
Quote:
|
Quote:
|
Hi
Its just a factor, if you want it in m3/s you just set it to 1. I have no idea what the factor 19.7363 converts it into, it was taken directly copy/paste from the Wiki. |
All times are GMT -4. The time now is 12:25. |