|
[Sponsors] |
February 21, 2012, 00:57 |
|
#21 |
New Member
Gopal Shinde
Join Date: Sep 2009
Location: Pune, India
Posts: 28
Rep Power: 17 |
Hi thr,
I am using version 1.6. I have included the path in the program calcMassFlow.C. But still I am getting this error. Plz help. ================================================== ==================== [shindg2@cd80si0017 calcMassFlow]$ wmake SOURCE=calcMassFlow.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/edm/shindg2/.PKG/OpenFOAM/OpenFOAM-1.6/src/cfdTools/lnInclude -I/home/edm/shindg2/.PKG/OpenFOAM/OpenFOAM-1.6/src/cfdTools/general/lnInclude -I/home/edm/shindg2/.PKG/OpenFOAM/OpenFOAM-1.6/src/meshTools/lnInclude -I/home/edm/shindg2/OpenFOAM/shindg2-1.6/Libraries/cellFaceSetUtilities/lnInclude -IlnInclude -I. -I/home/edm/shindg2/.PKG/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/home/edm/shindg2/.PKG/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/calcMassFlow.o calcMassFlow.C:36:30: error: FaceSetUtilities.H: No such file or directory calcMassFlow.C:37: error: ‘FaceSetUtilities’ is not a namespace-name calcMassFlow.C:37: error: expected namespace-name before ‘;’ token calcMassFlow.C: In function ‘int main(int, char**)’: calcMassFlow.C:105: error: ‘flipSet’ was not declared in this scope calcMassFlow.C:105: error: template argument 1 is invalid calcMassFlow.C:105: error: invalid type in declaration before ‘=’ token calcMassFlow.C:105: error: ‘checkFaceSetSides’ was not declared in this scope calcMassFlow.C:111: error: ‘flips’ cannot be used as a function make: *** [Make/linux64GccDPOpt/calcMassFlow.o] Error 1 [shindg2@cd80si0017 calcMassFlow]$ ================================================== ===================== with rgds, -Gopal. |
|
February 21, 2012, 00:58 |
|
#22 |
New Member
Gopal Shinde
Join Date: Sep 2009
Location: Pune, India
Posts: 28
Rep Power: 17 |
Hi thr,
I am using version 1.6. I have included the path in the program calcMassFlow.C. But still I am getting this error. Plz help. ================================================== ==================== [shindg2@cd80si0017 calcMassFlow]$ wmake SOURCE=calcMassFlow.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/edm/shindg2/.PKG/OpenFOAM/OpenFOAM-1.6/src/cfdTools/lnInclude -I/home/edm/shindg2/.PKG/OpenFOAM/OpenFOAM-1.6/src/cfdTools/general/lnInclude -I/home/edm/shindg2/.PKG/OpenFOAM/OpenFOAM-1.6/src/meshTools/lnInclude -I/home/edm/shindg2/OpenFOAM/shindg2-1.6/Libraries/cellFaceSetUtilities/lnInclude -IlnInclude -I. -I/home/edm/shindg2/.PKG/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/home/edm/shindg2/.PKG/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/calcMassFlow.o calcMassFlow.C:36:30: error: FaceSetUtilities.H: No such file or directory calcMassFlow.C:37: error: ‘FaceSetUtilities’ is not a namespace-name calcMassFlow.C:37: error: expected namespace-name before ‘;’ token calcMassFlow.C: In function ‘int main(int, char**)’: calcMassFlow.C:105: error: ‘flipSet’ was not declared in this scope calcMassFlow.C:105: error: template argument 1 is invalid calcMassFlow.C:105: error: invalid type in declaration before ‘=’ token calcMassFlow.C:105: error: ‘checkFaceSetSides’ was not declared in this scope calcMassFlow.C:111: error: ‘flips’ cannot be used as a function make: *** [Make/linux64GccDPOpt/calcMassFlow.o] Error 1 [shindg2@cd80si0017 calcMassFlow]$ ================================================== ===================== with rgds, -Gopal. |
|
February 21, 2012, 09:52 |
|
#23 |
Senior Member
Anne Gerdes
Join Date: Aug 2010
Location: Hamburg
Posts: 168
Rep Power: 16 |
Hey Gopal,
you are missing a library which is needed for the utility. Look at this post, they have the same problems: http://www.cfd-online.com/Forums/ope...massflowc.html Here you can download the libraries: http://openfoamwiki.net/index.php/Contrib_calcMassFlow Follow the instructions which are neccessary for inserting the libraries. Then try it again Anne |
|
February 22, 2012, 00:54 |
|
#24 |
New Member
Gopal Shinde
Join Date: Sep 2009
Location: Pune, India
Posts: 28
Rep Power: 17 |
Hi Anne,
I have downloaded the required files /libraries. Thanks for the info. I will give it a try and come back on this forum for some more help. with rgds, -Gopal. |
|
April 11, 2012, 15:48 |
Thanx philippose...
|
#25 |
New Member
Deshaka Kottage
Join Date: Mar 2012
Posts: 2
Rep Power: 0 |
Thanx philippose....It works..really nice work....
|
|
November 21, 2012, 10:28 |
|
#26 | |
Member
Paula
Join Date: Aug 2012
Posts: 30
Rep Power: 14 |
Quote:
Hi all, I´ve made what Philippose told and I´ve been able to compile it, but when I execute de command calcMassFlowDic I´ve got a message error related with the variable phi: Error... Patch: Name_of_my_Boundary not found No phi for Time=4000 -> Skipping Can anyone help me, please? |
||
November 21, 2012, 11:29 |
|
#27 | |
Member
Paula
Join Date: Aug 2012
Posts: 30
Rep Power: 14 |
Quote:
|
||
November 21, 2012, 15:14 |
|
#28 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
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 |
||
November 21, 2012, 15:18 |
|
#29 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
By copying and adapting the sources of the utility.
Personally I'd do that with swak4Foam. Either by using a patchExpression-function-Object during the simulation or the funkyDoCalc-utility afterwards (swak4Foam is one of the reasons why I don't maintain calcMassFlow anymore)
__________________
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 |
|
November 26, 2012, 07:40 |
|
#30 |
Member
Paula
Join Date: Aug 2012
Posts: 30
Rep Power: 14 |
I´ll try
Thanks! |
|
December 8, 2012, 06:45 |
|
#31 |
New Member
Mulualem
Join Date: May 2010
Posts: 11
Rep Power: 16 |
Dear Foamers,
I am trying to calculate the mass flow and/or the pressure force at any field or any section of the domain, which is not pre-defined patch like the inlet/outlet patch. This question has been asked back in 2009 by haghajani in this thread though it seems no one has tried to answer it or may be I couldn’t come across any other posts related to this issue Would be great help if some one has done or modified the patchNames in order to calculate the mass flow at any section of the domain and lend me a hand on it. Have a nice day! |
|
December 8, 2012, 07:26 |
|
#32 |
Member
Paula
Join Date: Aug 2012
Posts: 30
Rep Power: 14 |
Hi Mulualem,
I´m not so sure if I´m the adecuate person to help you. Anyway, I´ll try ^^ In ParaView, click Filters-->Slice and enter the coordenates of the plane you want to calculate the mass flow into the tab Properties. Then, Filters--->Calculator and in Scalars choose U_X or U_Y depending on the direction of the mass flow you want to calculate. Continue with: Filters--->Integrate Variables... You´ll see a chart in wich the U_X is, in fact, the mass flow in the x-direction. This is because when you apply the filter Integrate Variables, ParaView is multiplying each area of cell of the slice you´ve chosen for the variable U_X in this cell. That´s all, hope it´s useful for you |
|
December 8, 2012, 07:34 |
|
#33 |
New Member
Mulualem
Join Date: May 2010
Posts: 11
Rep Power: 16 |
Hi Paula,
Thank you very much for your quick reply. I will definately try your method and hope it works. I am still at my desk so will come back to you if I have encountered any problem. This means I can even calculate the pressure forces at the same faces using using the p_rgh, am I right? Thanks a lot! |
|
December 8, 2012, 08:28 |
|
#34 | |
New Member
Mulualem
Join Date: May 2010
Posts: 11
Rep Power: 16 |
Quote:
I have been trying the steps you gave me to calculate the mass flow rate and it works fine. At least I can now work out to calculate the integral of the pressure at a chosen cross-section to obtain the pressure forces at that section. Just I have one question though, If I want to calculate the flow rate at a small section of the face area (say a sum of cells in the domain face area), is paraView capable of choosing such kind of certain cells from the total face area of the domain? Thanks! Mulualem |
||
December 8, 2012, 09:03 |
|
#35 |
Member
Paula
Join Date: Aug 2012
Posts: 30
Rep Power: 14 |
Hi Mulualem,
Happy to know It worked I don´t know the exact answer to your new question but I think there´s a filter called Select Extract Cells or something like that. Try it as the same way you used the other filter... and let me know if it works too Regards, Paula |
|
December 8, 2012, 09:57 |
|
#36 | |
New Member
Mulualem
Join Date: May 2010
Posts: 11
Rep Power: 16 |
Quote:
It works great. Steps: After slice...go to filters>ExtractCellsByRegion In the properties tab under the intersect with list, you can choose plane if you want to cut only one side of the face and set the coordinate but if you want to cut more than one side, you can choose box and work out with the translate, rotate and scale data in order to extract the exact surface area you want. It has been great to talk to you and you saved a lot of my time. I have been looking the codes developed for this kind of post processing jobs but now I will put them aside for the time being and post-process my data using the paraView. Thank you and have a nice weekend! Best Wishes, Mulualem |
||
December 8, 2012, 12:13 |
|
#37 |
Member
Paula
Join Date: Aug 2012
Posts: 30
Rep Power: 14 |
Great! It´s nice having been useful
Thanks for your reply ! Good luck! |
|
March 22, 2013, 09:07 |
|
#38 |
New Member
Join Date: Feb 2012
Posts: 1
Rep Power: 0 |
Hi.
Have you finally found why was your flux oscillating? Because i have the same problem (with steady boundary conditions). Thanks George |
|
July 1, 2013, 09:22 |
Mass flux output in a file
|
#39 |
Member
Hale
Join Date: May 2013
Posts: 53
Rep Power: 13 |
Hi,
Is there any body who knows how to write the fluxes given by calcMassFlow in a text file and not on the terminal where it normally does? I want to plot the values on a graph but I don't know how to write them in a file! NB. calcMassFlow is a ultility that gives the mass flux through patches. Thank a lot |
|
July 1, 2013, 19:21 |
|
#40 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
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 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calculate Mass Flow in a faceSet during calculation | torvic | OpenFOAM Running, Solving & CFD | 1 | August 11, 2008 20:05 |
mass flow rate calculation | Ahmed | CFX | 7 | June 20, 2008 06:55 |
Calculation of mass flow rate | msrinath80 | OpenFOAM Running, Solving & CFD | 0 | April 18, 2007 15:05 |
Calculation of added mass in viscous flow | kharati | Main CFD Forum | 2 | February 1, 2006 01:28 |
Mass Flow Rate Calculation | Paul | FLUENT | 9 | March 23, 2002 09:37 |