|
[Sponsors] |
March 31, 2021, 04:56 |
Mass flow average at arbitrary location
|
#1 |
New Member
Patrick Lüscher
Join Date: Feb 2018
Location: Switzerland
Posts: 4
Rep Power: 8 |
Hello everyone
I'm using OpenFOAM-6 with chtMultiRegionFoam to run transient simulations. The case is basically a pipe with a specific inlet and outlet geometry. The simulation runs perfectly fine, but I need help with runtime post-processing the results. I need to calculate the average temperature and pressure at multiple locations along the pipe. Therefore I used a function object in the controlDict to calculate the area average like this: Code:
avgPlane { type surfaceFieldValue; libs ("libfieldFunctionObjects.so"); region fluid; writeControl runTime; writeInterval 0.005; writeFields false; regionType sampledSurface; name "surf000"; operation areaAverage; sampledSurfaceDict { type plane; planeType pointAndNormal; pointAndNormalDict { basePoint (0 0 0.5); normalVector (0 0 1); } } fields (T p Uz k); } Code:
operation weightedAverage; weightField phi;
Can anyone help me to calculate a mass flow average at an arbitrary location? |
|
December 9, 2021, 07:09 |
|
#2 |
New Member
Patrick Lüscher
Join Date: Feb 2018
Location: Switzerland
Posts: 4
Rep Power: 8 |
Can anyone help me here? I still have not found a solution.
|
|
December 13, 2021, 15:24 |
|
#3 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
If you can move to a different version, the weightField with a sampled surface should work more recent versions, such as OpenFOAM-v2106 or the upcoming OpenFOAM-v2112. They also support multiple weight fields - for example (rho U) to have mass-weighted.
Direct weighting with a surface field (phi) will only work for a small subset of sampled surfaces - faceZone, patch - where it is possible to reliably map their values to a corresponding sample surface face. |
|
December 14, 2021, 08:24 |
|
#4 |
New Member
Patrick Lüscher
Join Date: Feb 2018
Location: Switzerland
Posts: 4
Rep Power: 8 |
Thank you for your answer! I will check if I can move my project from OF6 to OFv2106.
|
|
December 14, 2021, 10:02 |
|
#5 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
||
May 27, 2024, 22:00 |
|
#6 |
New Member
Join Date: Nov 2023
Posts: 18
Rep Power: 3 |
Were you able to create your zone to find the average mass flow using this method? If so do you mind sharing your process?
|
|
May 28, 2024, 06:03 |
|
#7 |
New Member
Patrick Lüscher
Join Date: Feb 2018
Location: Switzerland
Posts: 4
Rep Power: 8 |
Unfortunately, I didn't have time to try it. I'm currently not working on any OpenFoam projects.
|
|
Tags |
chtmultiregionfoam, field object, mass flow average, of6, post-processing |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Target Mass Flow Rate | Nitin | FLUENT | 9 | June 17, 2017 11:30 |
Near wall treatment in k-omega SST | Arnoldinho | OpenFOAM Running, Solving & CFD | 38 | March 8, 2017 14:48 |
Pressure Outlet Targeted Mass Flow Rate | LuckyTran | FLUENT | 1 | November 23, 2016 11:40 |
Duct CFM: Velocity (mass flow average) vs Mass flow * Density | Witchking782 | STAR-CCM+ | 1 | January 28, 2016 17:36 |
Difference between Mass Flow Average in CFX and Mass-Weighted Average in Fluent | dasha | ANSYS | 0 | December 21, 2012 05:41 |