CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

How to set time intervall for averaging

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 22, 2018, 13:36
Default How to set time intervall for averaging
  #1
Member
 
Join Date: Jun 2017
Posts: 73
Rep Power: 8
Friendly is on a distinguished road
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.
Friendly is offline   Reply With Quote

Old   February 23, 2018, 06:55
Default
  #2
Senior Member
 
Syavash Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18
syavash is on a distinguished road
Quote:
Originally Posted by Friendly View Post
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?
Hi Friend!

I use something similar and it is working for me!

Code:
    fieldAverage1
    {
        type            fieldAverage;
        functionObjectLibs ("libfieldFunctionObjects.so");
        enabled         true;
        outputControl   outputTime;
        timeStart       70;
        fields
(

...

)
Regards,
Syavash

P.S. I use OF 2.3.1
syavash is offline   Reply With Quote

Old   February 23, 2018, 10:55
Default
  #3
Member
 
Join Date: Jun 2017
Posts: 73
Rep Power: 8
Friendly is on a distinguished road
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?
Friendly is offline   Reply With Quote

Old   March 1, 2018, 18:02
Default
  #4
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,674
Rep Power: 65
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
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
LuckyTran is offline   Reply With Quote

Old   March 16, 2018, 08:09
Default
  #5
Member
 
Join Date: Jun 2017
Posts: 73
Rep Power: 8
Friendly is on a distinguished road
Hi,

I am using 4.1
Friendly is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 11:18.