|
[Sponsors] |
How to trigger the fieldAverage functionality after a specific time in OF5.0 |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Oliver Pasqual
Join Date: Nov 2016
Posts: 5
Rep Power: 9 ![]() |
Dear Foamers,
Recently, I want to obtain the field average of a specific field (e.g., U and p). This can be achieved through the functionality of 'fieldAverage1' in the 'ControlDict'. To discard the startup effect, the simulation data of previous 5s should be discarded for the averaging operation in my case. How can I achieve this specific feature? Code:
functions { fieldAverage1 { type fieldAverage; libs ("libfieldFunctionObjects.so"); writeControl writeTime; restartOnRestart false; restartOnOutput false; periodicRestart false; restartPeriod 0.002; fields ( U { mean on; prime2Mean on; base time; } p { mean on; prime2Mean on; base time; } } } Thanks. Pasqual |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
|
Any functionObject can be started using timeStart and ended by timeEnd:
Code:
timeStart 5; timeEnd 10; cfd direct web page Last edited by tomf; November 10, 2017 at 05:02. Reason: alignment |
|
![]() |
![]() |
![]() |
![]() |
#3 | |
New Member
Oliver Pasqual
Join Date: Nov 2016
Posts: 5
Rep Power: 9 ![]() |
Quote:
Extremely appreciated for your kind information. following your suggestion, it has been solved. Thank you again. Pasqual |
||
![]() |
![]() |
![]() |
Tags |
controldict., fieldaverage, openfoam 5.0 |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
bash script for pseudo-parallel usage of reconstructPar | kwardle | OpenFOAM Post-Processing | 42 | May 7, 2024 23:17 |
courant number increases to rather large values | 6863523 | OpenFOAM Running, Solving & CFD | 22 | July 5, 2023 23:48 |
pressure in incompressible solvers e.g. simpleFoam | chrizzl | OpenFOAM Running, Solving & CFD | 13 | March 28, 2017 05:49 |
Compression stoke is giving higher pressure than calculated | nickjuana | CFX | 62 | May 19, 2015 13:32 |
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 | bookie56 | OpenFOAM Installation | 8 | August 13, 2011 04:03 |