|
[Sponsors] |
February 22, 2018, 13:36 |
How to set time intervall for averaging
|
#1 |
Member
Join Date: Jun 2017
Posts: 73
Rep Power: 8 |
Hello everyone,
I would like to use the averaging function of OpenFOAM for my velocity and pressure field. But not just from the beginning, but from 0.5 seconds to 1 second. Does anyone know how it works? I have bnot found a solution so far. I have also found, that you can add "timeStart" und "timeEnd" to your controlDict but it does not work for me. The averaging still begings from 0 seconds. functions { fieldAverage1 { type fieldAverage; libs ("libfieldFunctionObjects.so"); writeControl writeTime; timeStart 0.5; timeEnd 1; Does anyone know whats wrong or generally how to solve my problem? Last edited by Friendly; February 22, 2018 at 15:45. |
|
February 23, 2018, 06:55 |
|
#2 | |
Senior Member
Syavash Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18 |
Quote:
I use something similar and it is working for me! Code:
fieldAverage1 { type fieldAverage; functionObjectLibs ("libfieldFunctionObjects.so"); enabled true; outputControl outputTime; timeStart 70; fields ( ... ) Syavash P.S. I use OF 2.3.1 |
||
February 23, 2018, 10:55 |
|
#3 |
Member
Join Date: Jun 2017
Posts: 73
Rep Power: 8 |
Hi syavash!
Thanks for your reply! I am using the OpenFOAM-dev version. Maybe thats the problem, why startTime and timeEnd are not working. Does someone else know a solution? |
|
March 1, 2018, 18:02 |
|
#4 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,674
Rep Power: 65 |
So what version of OpenFOAM are you using? The timeStart and timeEnd options got added in 2.0.x
http://www.openfoam.org/mantisbt/view.php?id=290 |
|
March 16, 2018, 08:09 |
|
#5 |
Member
Join Date: Jun 2017
Posts: 73
Rep Power: 8 |
Hi,
I am using 4.1 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
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 |
High Courant Number @ icoFoam | Artex85 | OpenFOAM Running, Solving & CFD | 11 | February 16, 2017 13:40 |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 06:20 |
Micro Scale Pore, icoFoam | gooya_kabir | OpenFOAM Running, Solving & CFD | 2 | November 2, 2013 13:58 |