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

scalarIOList auto_write doesn't' write

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 18, 2016, 20:48
Default scalarIOList auto_write doesn't' write
  #1
Member
 
Lianhua Zhu
Join Date: Aug 2011
Location: Wuhan, China
Posts: 35
Rep Power: 14
zhulianhua is on a distinguished road
Dear Foamers,

While does the scalarIOList constructed by the following code doesn't write automatically as other field variables like U and p ?
Code:
    scalarIOList df
    (
        IOobject
        (
             "DF"+convert.str(),
             time_.time().timeName(),
             mesh_,
             IOobject::NO_READ,
             IOobject::AUTO_WRITE
        )
    )
It only writes if I explicitly call df.write().

Thanks,


Lianhua
zhulianhua is offline   Reply With Quote

Old   April 19, 2016, 02:44
Default
  #2
Member
 
Lianhua Zhu
Join Date: Aug 2011
Location: Wuhan, China
Posts: 35
Rep Power: 14
zhulianhua is on a distinguished road
The following pseudo solver can reproduce same problem:

Code:
#include "fvCFD.H"
#include "scalarIOList.H"

int main(int argc, char *argv[])
{
    #include "setRootCase.H"
    #include "createTime.H"
    #include "createMesh.H"
    scalarIOList df
    (
        IOobject
        (
             "DF",
             runTime.timeName(),
             mesh,
             IOobject::NO_READ,
             IOobject::AUTO_WRITE
        )
    );
    while(runTime.run())
    {
        runTime++;
        df = df + 1;
    }
    df.write();
    return 0;
}
The solver doesn't write the "DF" file at each write time specified in controlDict.

Lianhua
zhulianhua is offline   Reply With Quote

Reply

Tags
auto_write


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
mesh file for flow over a circular cylinder Ardalan Main CFD Forum 7 December 15, 2020 13:06
[Helyx OS] Helyx-OS (GUI for SnappyHexMesh elvis OpenFOAM Community Contributions 210 January 30, 2017 18:57
Have only process 0 write data syavash OpenFOAM Running, Solving & CFD 1 November 3, 2015 06:05
[snappyHexMesh] Debug option in snappy / Write volScalarField with cellLevel for postprocessing Ruli OpenFOAM Meshing & Mesh Conversion 1 March 30, 2014 08:57
Phase locked average in run time panara OpenFOAM 2 February 20, 2008 14:37


All times are GMT -4. The time now is 14:59.