|
[Sponsors] |
April 27, 2017, 18:52 |
|
#61 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Code:
mixingEff1 { type swakExpression; verbose true; valueType faceZone; zoneName control1; expression "alpha*YH2*phi*flip()/inflowH2"; accumulations ( sum ); variables ( "inflowH2{inlet}=sum(phi*YH2);" "alpha=equivRatio<1 ? 1 : 1/equivRatio;" ); }
__________________
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 |
||
April 28, 2017, 06:39 |
|
#62 | |
Member
Mukesh Adlak
Join Date: Jun 2016
Posts: 32
Rep Power: 10 |
Quote:
Thanks gschaider, Should I put this expression in controldict file and will it work in openfoam-3.0.x ??? I will study this and try to implement it. Thanks again for ur quick reply. |
||
May 1, 2017, 17:58 |
|
#63 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
The solution would require swak4foam (you'll have to install that). The last release of that should work with OF 3.0. Yes. It goes into the functions-dictionary in the controlDict
__________________
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 |
|
May 12, 2017, 07:54 |
|
#64 | |
Member
Mukesh Adlak
Join Date: Jun 2016
Posts: 32
Rep Power: 10 |
Quote:
Hi gschaider, I understood all but except following 3 things: verbose true; valueType faceZone; zoneName control1; Not sure but facezone might be related to cross section over I want to calc. efficiency. I dont have any facezones or facesets. If I will create facezones using toposet it will create patches for that but it may affect the flow field inside the domain. i dont know about the sampledsurfaces, will it be useful for my case ? |
||
January 9, 2020, 16:08 |
For MultiRegion
|
#65 |
New Member
Pratyush Kumar
Join Date: Jun 2019
Location: Mumbai
Posts: 19
Rep Power: 7 |
Hello Anne Gerdes,
How can I use this utility for Multi region case, running in parallel ? |
|
April 4, 2024, 12:47 |
|
#66 |
New Member
Join Date: Dec 2022
Posts: 15
Rep Power: 4 |
Hi there,
I improved a bit the provided code that was originally OF-2. It works pretty neat now for OF-10. Please, enjoy. Use: calcMassFlow -latestTime (no other optional arguments accepted) If someone can 'repair' the time loop that I plugged in, thank you in advance... |
|
|
|
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 |