Calculation of mass flow rate in OpenFOAM 2.0.1
Hello friends,
After looking around the forums and reading some posts, I am confused with the measurement of mass flow rate in Openfoam. I want to calculate the values of my inlet and outlet patches. Could anybody can show me the proper way in OpenFoam 2.0.1? I am sorry for taking your time with that simple question. Kind regards |
Here you go...
This is probably one of the easier ways to do so. |
thank you for your reply I saw the post you send me. But still have a doubt are you talking about calcMassFlow utility? It seems to be it is valid for ver. 1.4
|
You can just use the command "patchIntegrate phi patchname", can't you ?
|
Thank you it works!
|
Hi Aurelien,
I have used the "patchIntergrate phi Patchname" command. I want to calculate the mass flow at my oultet patch and also want to plot it over the time in paraview. I have two questions 1. Is the mass flow calculated by the patchIntergrate command stored somewhere?? or is just shown in the terminal. 2. Do you have an idea on plotting/viewing the mass flow at a particular patch in paraview? Thank you in advance Regards Abhinay |
Dear Abhinay,
I am interested in this feature, too. Have you solved it, by chance? If so, what have you done? Thanks, Samuele. |
Hi Samuele,
unfortunately i have not found a solution although i did find an interesting discussion on the forum. I did try the way suggested here but have not quite understood the method. Still searching :). Here is the link http://www.cfd-online.com/Forums/ope...-paraview.html Let me know if you figure it out. Regards Abhinay |
Hi All,
You can save the data into a text file use patchIntegrate phi INLET >inletflow This will create a file named "inletflow" in which the data will be saved at each timestep. Hope this helps :) |
Hi all,
thanks for help. Just a question: where should I insert the command Code:
patchIntegrate phi INLET >inletflow Should I insert it in a control-dict file or something like this? Thanks a lot, Samuele. |
Hi Samuele,
Get inside the case folder using cd command in command prompt and then used the "patchIntegrate" command. Note: if the case is a decomposed one, reconstruct it and then use this command Regards Kripal |
hi all,
I am relatively new in OpenFOAM and with my observation i can say that patchIntegrate gives the integrated values, but what to do if somebody is interested in calculating the average values for the same I tried using Code:
patchAverage phi Inlet Thanks and Regards, Adarsh |
Hi everybody,
I meet a problem with calculating the mass flow rate. I would like to know if mass flow rate for an interior surface, instead of the boundary surfaces. Is this possible? My mesh is 3D and generated by ICEM. Actually I have made an interior surface there, but as you may know, for openfoam, this interior surface does not appear in the boundary list (constant/polymesh/boundary). So it seems that "patchIntegrate phi BC_name" doed not work for this. Anybody has some ideas for this? Thank you so much. best regards, OFFO |
MFR in interior surfaces
Hi All,
I have to reopen this thread. I think its been 2 years since the last post. OPenfoam has developed more now. I would like to know if there is anyway to calculate mass flow rate in any of the interior surfaces ? Regards, Manoj |
MassFlowRate; Inlet and Oulet Patch
Hi guys,
I am also needing to calculate the mass flow rate at the inlet and outlet to ensure that the mass is conserved. Is there a way to do it on Openfoam4? Regards Shaq |
Have you guys tried flowRateInletVelocity? I found this BC on https://www.openfoam.com/documentati...conditions.php
|
All times are GMT -4. The time now is 09:04. |