|
[Sponsors] |
How to average the value in a certain region in OpenFOAM? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 18, 2018, 04:51 |
How to average the value in a certain region in OpenFOAM?
|
#1 |
Senior Member
Bill Wang
Join Date: Aug 2014
Posts: 109
Rep Power: 11 |
Dear all,
I have run the simulations and caculate the volume averaged values over the whole domain in OF 4.0.1. I wonder if there is a way to calculate the averaged value over only a part of the domain instead of the whole domain. It seems that I need to separate the mesh first before I ran the simulations and average only in the needed region instead averaging over "all". Code:
volumeAverage { type volRegion; libs ("libfieldFunctionObjects.so"); log false; writeControl timeStep; writeInterval 20000; writeFields false; regionType all; operation volAverage; fields ( U ); } Thanks in advance. Best regards, Bill |
|
January 18, 2018, 05:07 |
|
#2 |
Senior Member
|
Hi,
Instead of all you set regionType to cellZone and create cellZone, where you would like to calculate volume average, with topoSet utility. See $FOAM_SRC/functionObjects/field/fieldValues/volFieldValue/volFieldValue.H for more details. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Getting Started with OpenFOAM | wyldckat | OpenFOAM | 25 | August 14, 2022 13:55 |
Can I use fvOptions to couple a solid region and a fluid region? | titanchao | OpenFOAM Running, Solving & CFD | 4 | January 14, 2022 07:55 |
Problem with chtMultiregionFoam radiation boundary condition | baran_foam | OpenFOAM Running, Solving & CFD | 10 | December 17, 2019 17:36 |
Superlinear speedup in OpenFOAM 13 | msrinath80 | OpenFOAM Running, Solving & CFD | 18 | March 3, 2015 05:36 |
Suggestion for a new sub-forum at OpenFOAM's Forum | wyldckat | Site Help, Feedback & Discussions | 20 | October 28, 2014 09:04 |