CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   writeInterval not working (https://www.cfd-online.com/Forums/openfoam-solving/240529-writeinterval-not-working.html)

daylen January 10, 2022 16:21

writeInterval not working
 
Hi, i modified pitzdaily from pimpleFoam tutorial, to adjust it to my case, which is flow into a box with spherical fruits, when i run pimpleFoam it doesn´t write data every writeInterval no matter what value i use.


case:
https://www.dropbox.com/s/a692lrsi23...foam3.zip?dl=0


log.pimplefoam file:
https://www.dropbox.com/s/i4aw2g7kls...efoam.txt?dl=0


controldict:
Code:

/*--------------------------------*- C++ -*----------------------------------*\
  =========                |
  \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox
  \\    /  O peration    | Website:  https://openfoam.org
    \\  /    A nd          | Version:  9
    \\/    M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    format      ascii;
    class      dictionary;
    location    "system";
    object      controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application    pimpleFoam;

startFrom      latestTime;

startTime      0;

stopAt          endTime;

endTime        0.3;

deltaT          0.0001;

writeControl    adjustableRunTime;

writeInterval  0.01;//0.01;

purgeWrite      0;

writeFormat    ascii;

writePrecision  6;

writeCompression off;

timeFormat      general;

timePrecision  6;

runTimeModifiable yes;

adjustTimeStep  yes;

maxCo          1;

functions
{
    #includeFunc patchAverage(patch=inlet, fields=(p U))
}

// ************************************************************************* //


JulioPieri January 11, 2022 09:08

I don't have OF9 installed so I couldn't run it. But double check if the syntax is the same from where you copied the case.

I'd try running without the functions and see if it lacks some output control that could be superimposing the main control

Also, try running with "runTime" instead of adjustableRunTime to see if you can write that way. I didn't find any particular error in the log file. Maybe some permissions issue on your Windows?

daylen January 11, 2022 11:04

Symtax is fine as far as i know. I will test without the functions later.
clockTime and runTime works, i use linux on a virtual machine, I don't think permission is a problem.

JulioPieri January 11, 2022 11:40

That's weird, then it's something specifically related to the adjustableRunTime. double check your fvSolution file. Also, you could roll your case back to the tutorial and add new stuff step by step to see where it stops working.

daylen January 11, 2022 12:01

ok, i will follow your instructions later, then i will post here

daylen January 13, 2022 08:12

I rolled back the case back to simpleFoam modified from windaroundbuildings, when i modify controlDict, fvsolution, and fvschemes to pimpleFoam, then i have the current case, which doesn´t write every writeInterval. I tried running without the functions but it has no impact in the results. I see nothing wrong in fvsolution file.


simpleFoam case:
https://www.dropbox.com/s/i6topsns6z...efoam.zip?dl=0


pimplefoam case:
https://www.dropbox.com/s/plkluswrfj...efoam.zip?dl=0

JulioPieri January 13, 2022 12:16

Since I use OF.com here, I won't be able to test your case. Hope someone else can help you


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