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

writeInterval not working

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 10, 2022, 17:21
Default writeInterval not working
  #1
Member
 
Gabriel
Join Date: Aug 2021
Posts: 37
Rep Power: 5
daylen is on a distinguished road
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))
}

// ************************************************************************* //
daylen is offline   Reply With Quote

Old   January 11, 2022, 10:08
Default
  #2
Senior Member
 
Julio Pieri
Join Date: Sep 2017
Posts: 109
Rep Power: 9
JulioPieri is on a distinguished road
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?
JulioPieri is offline   Reply With Quote

Old   January 11, 2022, 12:04
Default
  #3
Member
 
Gabriel
Join Date: Aug 2021
Posts: 37
Rep Power: 5
daylen is on a distinguished road
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.
daylen is offline   Reply With Quote

Old   January 11, 2022, 12:40
Default
  #4
Senior Member
 
Julio Pieri
Join Date: Sep 2017
Posts: 109
Rep Power: 9
JulioPieri is on a distinguished road
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.
JulioPieri is offline   Reply With Quote

Old   January 11, 2022, 13:01
Default
  #5
Member
 
Gabriel
Join Date: Aug 2021
Posts: 37
Rep Power: 5
daylen is on a distinguished road
ok, i will follow your instructions later, then i will post here
daylen is offline   Reply With Quote

Old   January 13, 2022, 09:12
Default
  #6
Member
 
Gabriel
Join Date: Aug 2021
Posts: 37
Rep Power: 5
daylen is on a distinguished road
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
daylen is offline   Reply With Quote

Old   January 13, 2022, 13:16
Default
  #7
Senior Member
 
Julio Pieri
Join Date: Sep 2017
Posts: 109
Rep Power: 9
JulioPieri is on a distinguished road
Since I use OF.com here, I won't be able to test your case. Hope someone else can help you
JulioPieri 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
Porous media coefficients and working fluid Dronzer FLUENT 1 June 30, 2020 23:23
writeInterval not working cmoreno98 OpenFOAM Running, Solving & CFD 3 March 2, 2020 04:55
findCell() in parallel: not working if location is outside the domain TobiWol OpenFOAM 0 January 10, 2018 15:33
Processor 0 not working vishwesh OpenFOAM Running, Solving & CFD 0 November 17, 2017 04:35
DPM parallel is not working but serial is working johnwinter FLUENT 1 March 27, 2012 03:01


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