|
[Sponsors] |
How to trigger the fieldAverage functionality after a specific time in OF5.0 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 8, 2017, 22:40 |
How to trigger the fieldAverage functionality after a specific time in OF5.0
|
#1 |
New Member
Oliver Pasqual
Join Date: Nov 2016
Posts: 5
Rep Power: 10 |
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 |
|
November 10, 2017, 06:01 |
|
#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 06:02. Reason: alignment |
|
November 11, 2017, 08:22 |
|
#3 | |
New Member
Oliver Pasqual
Join Date: Nov 2016
Posts: 5
Rep Power: 10 |
Quote:
Extremely appreciated for your kind information. following your suggestion, it has been solved. Thank you again. Pasqual |
||
Tags |
controldict., fieldaverage, openfoam 5.0 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
bash script for pseudo-parallel usage of reconstructPar | kwardle | OpenFOAM Post-Processing | 42 | May 8, 2024 00:17 |
courant number increases to rather large values | 6863523 | OpenFOAM Running, Solving & CFD | 22 | July 6, 2023 00:48 |
pressure in incompressible solvers e.g. simpleFoam | chrizzl | OpenFOAM Running, Solving & CFD | 13 | March 28, 2017 06:49 |
Compression stoke is giving higher pressure than calculated | nickjuana | CFX | 62 | May 19, 2015 14:32 |
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 | bookie56 | OpenFOAM Installation | 8 | August 13, 2011 05:03 |