CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Is writeInterval independent form file updating time?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 7, 2022, 09:05
Default Is writeInterval independent form file updating time?
  #1
New Member
 
Dohyun Kim
Join Date: Jul 2021
Posts: 2
Rep Power: 0
Dohyun is on a distinguished road
Unless I stop the simulation, is the actual writeInterval always based on startTime?

I am trying to write data only at specific times:
(10.3, 10.55, 10.8, 11.05, ... , 12.3).
I used a 'file updating function object' method.
But the results I've got was:
(10.3, 10.5, 10.75, 11.0, ... , 12.25).
Changing the writeInterval seem to be worked properly, but the time I've changed the interval did not affected the actual saved times.

I've used the settings shown below.
Isn't it proper for my purpose?

controlDict:
Code:
~~
startFrom       startTime;

startTime       10.3;

stopAt          endTime;

endTime         12.3;

deltaT          0.0002;

writeControl    adjustableRunTime;

writeInterval   0.25;

purgeWrite      0;

writeFormat     binary;

writePrecision  8;

writeCompression on;

timeFormat      general;

timePrecision   10;

runTimeModifiable yes;

adjustTimeStep  no;

maxCo           0.2;

functions
{
    #includeFunc vorticity
    #includeFunc CourantNo
    
    fileUpdate_writeInterval
    {
        type              timeActivatedFileUpdate;
        libs              ("libutilityFunctionObjects.so");
        writeControl      timeStep;
        writeInterval     1;
        fileToUpdate      "$FOAM_CASE/system/controlDict";
        timeVsFile
        (
            (10.3    "$FOAM_CASE/system/controlDict_new")
        );
    }
}
controlDict_new:
Code:
~~
startFrom       startTime;

startTime       10.3;

stopAt          endTime;

endTime         12.3;

deltaT          0.0002;

writeControl    adjustableRunTime;

writeInterval   0.25;

purgeWrite      0;

writeFormat     binary;

writePrecision  8;

writeCompression on;

timeFormat      general;

timePrecision   10;

runTimeModifiable yes;

adjustTimeStep  no;

maxCo           0.2;

functions
{
    #includeFunc vorticity
    #includeFunc CourantNo
    
    fileUpdate_writeInterval
    {
        type              timeActivatedFileUpdate;
        libs              ("libutilityFunctionObjects.so");
        writeControl      timeStep;
        writeInterval     1;
        fileToUpdate      "$FOAM_CASE/system/controlDict";
        timeVsFile
        (
            (10.3    "$FOAM_CASE/system/controlDict_new")
        );
    }
}
Dohyun 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
Using PengRobinsonGas EoS with sprayFoam Jabo OpenFOAM Running, Solving & CFD 36 July 16, 2024 04:52
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 04:30
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 20:43
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 11:23
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51


All times are GMT -4. The time now is 01:35.