|
[Sponsors] |
writeControl writing every time step despire writeInterval specifying otherwise |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 5, 2017, 20:21 |
writeControl writing every time step despire writeInterval specifying otherwise
|
#1 |
New Member
Katherine
Join Date: Feb 2016
Posts: 16
Rep Power: 10 |
I'm having an issue with OpenFOAM writing data every time step. I'm using pimpleFoam with a max Courant number of 5, so I'm trying to take advantage of adjusting the time step to meet this criteria and speed things up a bit. But the problem is that no matter what scalar value I set "writeInterval" to, OF writes data every time step. Here is my controlDict file:
Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 3.0.1 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "system"; object controlDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // application pimpleFoam; startFrom startTime; startTime 0; stopAt endTime; endTime 5; deltaT 0.01; writeControl adjustableRunTime; writeInterval 100; purgeWrite 0; writeFormat ascii; writePrecision 12; writeCompression off; timeFormat general; timePrecision 12; runTimeModifiable true; adjustTimeStep yes; maxCo 5; functions { forces { type forces; functionObjectLibs ("libforces.so"); writeControl timeStep; writeInterval 1; patches (fixedWalls); pName p; UName U; rho rhoInf; rhoInf 1.205; log true; CofR (0 0 0); // origin for moment calculation writeFields yes; binData { nBin 90; //output data into 20 bins direction (1 0 0); // bin direction format gnuplot; cumulative yes; } } forceCoefficients { type forceCoeffs; functionObjectLibs ("libforces.so"); writeControl timeStep; writeInterval 1; patches (fixedWalls); writeFields yes; log true; patches (fixedWalls); // on cyl only pName p; UName U; dragDir (1 0 0); liftDir (0 1 0); pitchAxis (0 0 1); CofR (0 0 0); magUInf 10; // free stream velocity; inlet condition!! lRef 1; Aref 0.79; // cross sectional area rho rhoInf; rhoInf 1; origin (0 0 0); coordinateRotation { type EulerRotation degrees true; rotation (0 0 0); } binData { nBin 90; //output data into 20 bins direction (1 0 0); // bin direction format gnuplot; cumulative yes; } } } // ************************************************************************* // NOTE: I am running OpenFOAM-v1706 released here with Ubuntu 16.04. |
|
September 6, 2017, 07:48 |
|
#2 |
Senior Member
Oskar
Join Date: Nov 2015
Location: Poland
Posts: 184
Rep Power: 10 |
Hi.
There is endTime set to 5 while writeInterval set to 100. I would set writeInterval to 0.1 or something like that. Maybe this solve Your problem. |
|
September 6, 2017, 11:14 |
|
#3 |
Member
Yousef
Join Date: Feb 2015
Posts: 40
Rep Power: 11 |
Hi,
When you select Code:
writeControl adjustableRunTime; So first, as Oskar said, reduce the writeIntervals to a value less than your endTime. Anyways, this should not be the main issue. Since with your current config no time step should be saved. I think it has something to do with your functionObjects. Please first remove them and verify that write behavior is resolved. Then, try setting writeFields to No in your functionObjects. Regards, |
|
September 6, 2017, 14:22 |
|
#4 |
New Member
Katherine
Join Date: Feb 2016
Posts: 16
Rep Power: 10 |
You are right Yousef; the problem was with my functionObjects. Removing them resolved the write behavior, and then including them and setting writeFields to "no" works as intended. Thank you both for your help!
|
|
May 28, 2020, 04:56 |
writeControl writing every time step
|
#5 |
Member
le
Join Date: Nov 2009
Location: seoul
Posts: 34
Rep Power: 16 |
Hello Alls,
I use OF1812 in system/control .... writeControl adjustableRunTime; writeInterval 0.1071; ..... and system/forces ..... writeControl timeStep ; writeInterval 10; ..... OF writes every time step even though I change value of " writeInterval 10; " So, appreciated your comments ! |
|
May 28, 2020, 17:47 |
|
#6 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12 |
Hi,
- Could you please share the `controlDict` and `force*` file entirely? - What does OF write out at each time-step? `force` FO information or something else? - Have you double checked the log file if the `force` FO is written every time-step? May be the time-step is tiny, and you misinterpreted what is going on? thanks
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
Tags |
adjustable run time, openfoam v1706+, write control |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] refineWallLayer Error | Yuby | OpenFOAM Meshing & Mesh Conversion | 2 | November 11, 2021 11:04 |
AMI speed performance | danny123 | OpenFOAM | 21 | October 24, 2020 04:13 |
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 |
Floating point exception error | lpz_michele | OpenFOAM Running, Solving & CFD | 53 | October 19, 2015 02:50 |