CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

patch mass flows in 1706

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 9, 2017, 08:59
Default patch mass flows in 1706
  #1
Member
 
Join Date: Mar 2009
Posts: 90
Rep Power: 17
aerogt3 is on a distinguished road
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?
aerogt3 is offline   Reply With Quote

Old   August 9, 2017, 12:26
Default
  #2
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25
philippose will become famous soon enough
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
philippose is offline   Reply With Quote

Old   August 10, 2017, 08:53
Default
  #3
Member
 
Join Date: Mar 2009
Posts: 90
Rep Power: 17
aerogt3 is on a distinguished road
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 11:53.
aerogt3 is offline   Reply With Quote

Old   August 10, 2017, 09:40
Default
  #4
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29
akidess will become famous soon enough
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.
akidess is offline   Reply With Quote

Old   August 10, 2017, 09:41
Default
  #5
Member
 
Join Date: Mar 2009
Posts: 90
Rep Power: 17
aerogt3 is on a distinguished road
Quote:
Originally Posted by akidess View Post
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
Yes, and in previous versions I used that. But in 1706, I cannot see the faceSource function object or anything that appears to replace it - other than fluxSummary which does not work for patches.
aerogt3 is offline   Reply With Quote

Old   August 10, 2017, 11:39
Default
  #6
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29
akidess will become famous soon enough
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.
akidess is offline   Reply With Quote

Old   August 10, 2017, 13:13
Default
  #7
Member
 
Join Date: Mar 2009
Posts: 90
Rep Power: 17
aerogt3 is on a distinguished road
So that's where it went! Brilliant, thanks a lot :-)
aerogt3 is offline   Reply With Quote

Old   August 11, 2017, 01:56
Default
  #8
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29
akidess will become famous soon enough
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.
akidess is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
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 19:43
Compressor Simulation using rhoPimpleDyMFoam Jetfire OpenFOAM Running, Solving & CFD 107 December 9, 2014 13:38
mixerVesselAMI2D's mass is not balancing sharonyue OpenFOAM Running, Solving & CFD 6 June 10, 2013 09:34
Multicomponent fluid Andrea CFX 2 October 11, 2004 05:12


All times are GMT -4. The time now is 07:40.