|
[Sponsors] |
![]() |
![]() |
#1 |
Member
Join Date: Mar 2009
Posts: 90
Rep Power: 17 ![]() |
Hello all,
I am evaluating 1706 compared to previous versions, and one very large annoyance is the persistent difficulty in getting proper mass flows. In the case of faceZone mass flow rates, I can use the fluxSummary function object, but this STILL lacks the "phi flip" functionality of swak4foam and thus gives rubbish values, since faceZones are not oriented. For patches however, I can't get a flow rate at all. The "flowRatePatch" function from the OpenFOAM.org release is non existent, and fluxSummary works for surfaces, faceZones, and cellZones. Source: http://www.openfoam.com/documentatio...y.html#details Does anyone know, if there a way to get patch mass flows in 1706? |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25 ![]() |
Hi there,
Why not just use swak4Foam? I personally find the swak4Foam interface to be much more consistent across multiple OpenFOAM versions anyway. Regards, Philippose |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Member
Join Date: Mar 2009
Posts: 90
Rep Power: 17 ![]() |
I will try that as well, haven't tested if it work with 1706. But in general I would like to use the standard distro as much as possible. There have been mass flow calculators in the past, so there's gotta be one in this 1706.
Last edited by aerogt3; August 10, 2017 at 12:53. |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 ![]() |
You seem to already know how to sample on a faceZone. You can create a faceZone from you patch via topoSet. Or you directly use a faceSource functionObject:
https://github.com/OpenFOAM/OpenFOAM...e/faceSource.H
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
|
![]() |
![]() |
![]() |
![]() |
#5 | |
Member
Join Date: Mar 2009
Posts: 90
Rep Power: 17 ![]() |
Quote:
|
||
![]() |
![]() |
![]() |
![]() |
#6 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 ![]() |
Right. 1706 has surfaceFieldValue.
Code:
surfaceFieldValue1 { type surfaceFieldValue; libs ("libfieldFunctionObjects.so"); log true; writeControl writeTime; writeFields true; regionType patch; name YOUR_PATCH; operation sum; fields (phi); }
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
|
![]() |
![]() |
![]() |
![]() |
#7 |
Member
Join Date: Mar 2009
Posts: 90
Rep Power: 17 ![]() |
So that's where it went! Brilliant, thanks a lot :-)
|
|
![]() |
![]() |
![]() |
![]() |
#8 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 ![]() |
Which versions did you compare to? AFAIK that's how it's always been and newer CFD-direct versions work differently (since introducing the postProcess tool).
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch | gschaider | OpenFOAM Installation | 225 | August 25, 2015 20:43 |
Compressor Simulation using rhoPimpleDyMFoam | Jetfire | OpenFOAM Running, Solving & CFD | 107 | December 9, 2014 14:38 |
mixerVesselAMI2D's mass is not balancing | sharonyue | OpenFOAM Running, Solving & CFD | 6 | June 10, 2013 10:34 |
Multicomponent fluid | Andrea | CFX | 2 | October 11, 2004 06:12 |