|
[Sponsors] |
is there a post processing keyword for obtaining mass flow rate and total mass? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 1, 2013, 18:07 |
is there a post processing keyword for obtaining mass flow rate and total mass?
|
#1 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
I was searching about a function to calculate mass flow rate during the run.now i need to calculate mass flow rate and also total mass entering in or exiting from a patch after the end of run.does anyone know the related keyword or way to do this?
|
|
April 2, 2013, 00:06 |
|
#2 | |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 848
Rep Power: 18 |
Quote:
Hi, Try this code from Mr.Prasant Code:
functions { massflow { type faceSource; functionObjectLibs ("libfieldFunctionObjects.so"); enabled true; outputControl timeStep; log true; valueOutput false; source patch; sourceName yourpatchname; operation sum; fields ( phi ); } } |
||
April 2, 2013, 01:15 |
|
#3 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
thank you.then type massflow in the terminal?
|
|
April 2, 2013, 03:35 |
|
#4 |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 848
Rep Power: 18 |
||
April 2, 2013, 06:27 |
|
#5 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
i think this add mass flow rates in new time folders.is there a way to calculating it after the run has done?like keywords Mach,Pe,vorticity,etc in postProcessing?
|
|
April 2, 2013, 09:57 |
|
#6 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
can write phi in previous time folders?
|
|
April 2, 2013, 09:59 |
|
#7 |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 848
Rep Power: 18 |
||
April 2, 2013, 10:08 |
|
#8 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
do you know what does valueOutput mean and why is set to false?
|
|
April 2, 2013, 20:29 |
|
#9 |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 848
Rep Power: 18 |
||
April 3, 2013, 05:05 |
how to obtain mass balance after run?
|
#10 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
i want a code that can calculate net mass on patches(add mass inflow and outflow on patches) preferably in a time period.
|
|
April 3, 2013, 07:31 |
|
#11 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22 |
Check out the patchAverage and patchIntegrate utilities. They should be able to do what you need.
|
|
April 3, 2013, 10:44 |
|
#12 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
how can move this thread to post processing forum to get more helps and answers?
|
|
April 3, 2013, 17:48 |
|
#13 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
patchAverage and patchIntegrate doesn't work on surfaceScalarFields.
any idea? thanks. |
|
April 3, 2013, 18:04 |
whats the command for calculating mass flow?
|
#14 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
I was searching about a function to calculate mass flow rate during the run.now i need to calculate mass flow rate and also total mass entering in or exiting from a patch after the end of run.does anyone know the related keyword or way to do this?
|
|
April 3, 2013, 20:19 |
|
#15 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings to all,
I've moved this thread to the post-processing forum. And to quote my answer from a few minutes ago on another thread: Quote:
Bruno PS: also moved a few other related posts/threads started by Ehsan...
__________________
Last edited by wyldckat; April 3, 2013 at 20:23. Reason: see "PS:" |
||
April 4, 2013, 09:02 |
|
#16 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
thank you dear Bruno for moving!
the thread gives this error in compiling as I put in Cp thread for more convenience of readers: Code:
ehsan@Ehsan-com:~/Desktop/calcMassFlow$ wmake Making dependency list for source file calcMassFlow.C could not open file fvCFD.H for source file calcMassFlow.C could not open file FaceSetUtilities.H for source file calcMassFlow.C SOURCE=calcMassFlow.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam220/src/cfdTools/lnInclude -I/opt/openfoam220/src/cfdTools/general/lnInclude -I/opt/openfoam220/src/meshTools/lnInclude -I/home/ehsan/OpenFOAM/ehsan-2.2.0/Libraries/cellFaceSetUtilities/lnInclude -IlnInclude -I. -I/opt/openfoam220/src/OpenFOAM/lnInclude -I/opt/openfoam220/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/calcMassFlow.o calcMassFlow.C:33:19: fatal error: fvCFD.H: No such file or directory compilation terminated. make: *** [Make/linux64GccDPOpt/calcMassFlow.o] Error 1 if mass flow trouble resolves almost my work can be finished successfully. |
|
April 4, 2013, 18:54 |
|
#17 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
is it possible to use a mass flow rate and/or summation of mass on patches during an interval code for compiling?
|
|
April 6, 2013, 08:51 |
|
#18 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Ehsan,
Just a little pointer before continuing to the issue with calcMassFlow - simpleFunctionObjects can easily be used for calculating the mass flow during run: http://www.cfd-online.com/Forums/ope...tml#post418739 - although I vaguely remember you writing somewhere about how you need to calculate it after the solver had already been executed. So, moving onto the adaptation of calcMassFlow to OpenFOAM 2.2:
_________________________ Edit: as per requested, I've managed to create a variant that writes to file instead of the standard output. Based on the instructions above, here's the ones for calcMassFlow2File to OpenFOAM 2.2:
Best regards, Bruno
__________________
Last edited by wyldckat; April 14, 2013 at 07:47. Reason: added calcMassFlow2File |
|
April 6, 2013, 10:47 |
|
#19 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
Thank you dear Bruno.it works.i put the results in a log file.
is it possible that all left flow rate values be writed separately and after ending of left values right values be writed too. like: left: time0 value0 time1 value1 time2 value2 . . . right: time0 value0 time1 value1 time2 value2 |
|
April 9, 2013, 06:51 |
|
#20 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
could you please do some modifications in very useful (i think the sole)post processing tool for calculating mass flow rate to write in a file with a good order?then it will be a complete nice tool for anyone to refer to(and specially for me )
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Target Mass Flow Rate | Nitin | FLUENT | 9 | June 17, 2017 11:30 |
how to set BC for compressible flow target mass flow rate | foolboy007 | FLUENT | 1 | April 4, 2012 04:24 |
Mass flow rate through each cell | Babakjingo | Main CFD Forum | 0 | August 21, 2011 04:18 |
particle, parcel and mass flow rate balance | flybird | FLUENT | 0 | May 24, 2007 11:44 |
mass flow inlet | Denis Tschumperle | FLUENT | 7 | August 9, 2000 03:19 |