|
[Sponsors] |
fieldAverage functionObject is not working : openFOAM v2312 |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Ravi
Join Date: Dec 2023
Posts: 3
Rep Power: 2 ![]() |
I am using openFOAM v2312 and I am trying to do fieldAveraging of U p and T in my case file.
I have implemented the fieldAverage as per the openFOAM documentation but it is not working. After running the case I do not find any averaged files written. I am a beginner in this software, so any help is appreciated. I am posting the controlDict file below, where I have implemented the fieldAverage Also is there a way to do fieldAverage as a postProcess. I don't see fieldAverage as an option in postProcess -list. Thanks. FoamFile |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,169
Rep Power: 27 ![]() |
Hello,
Do you see info related to this function object in your terminal/log file when running the solver? (look for the solver start up and on write times) Do you see files such as UMean, pMean, TMean in your time step directories? Yann |
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
Ravi
Join Date: Dec 2023
Posts: 3
Rep Power: 2 ![]() |
Hello,
Thanks for the reply. There is no information about the fieldAverage when I run it. Even at write times, it just shows the usual residual Ux, Uy etc. It does not display anything indicating as if averaging is happening. The time step directories have a folder called uniform. Uniform contains, functionObjects folder and a time file. The functionObjects folder has a functionObjectProperties file, which is just empty. I will post the functionObjectProperties file below. The time file just indicates at which time it is getting written.
|
|
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,169
Rep Power: 27 ![]() |
Alright, I misread your controlDict.
You are missing the functions{} section to encapsulate your function object definition: Code:
functions { fieldAverage1 { type fieldAverage; libs (fieldFunctionObjects); writeControl writeTime; fields ( U { mean yes; prime2Mean no; base time; } p { mean yes; prime2Mean no; base time; } T { mean yes; prime2Mean no; base time; } ); } } Yann |
|
![]() |
![]() |
![]() |
![]() |
#5 |
New Member
Ravi
Join Date: Dec 2023
Posts: 3
Rep Power: 2 ![]() |
Hello,
Wonderful. That worked! Thank you very much for your support. |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
scotch parallel run is not working in OpenFOAM 2012 | chandra shekhar pant | OpenFOAM Running, Solving & CFD | 7 | December 7, 2022 03:13 |
Map of the OpenFOAM Forum - Understanding where to post your questions! | wyldckat | OpenFOAM | 10 | September 2, 2021 05:29 |
[OpenFOAM] Paraview not working in openfoam | Milind Kshirsagar | ParaView | 1 | May 9, 2019 03:52 |
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology | wyldckat | OpenFOAM | 17 | November 10, 2017 15:54 |
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 | cfd.direct | OpenFOAM Announcements from Other Sources | 2 | August 31, 2015 13:36 |