|
[Sponsors] | |||||
|
|
|
#1 |
|
Member
John Wang
Join Date: Mar 2009
Location: Singapore
Posts: 70
Rep Power: 6 ![]() |
Hi guys,
I've been using OpenFOAM for a while, and this is the first time that I've encountered this minor but annoying problem. I have set my "writeControl" to "runTime" with interval of 0.1, which should write the simulation results in 0.1s intervals (0, 0.1, 0.2 etc.), but instead I'm getting folders for 0, 0.0999999999, 0.19999999 etc. It's rather easy, but time consuming to fix by renaming all the folders, but I'm wondering if there is a way to make sure all folders are named for the specified time in controlDict. Thanks, John p.s. I do not use adjustable time step option as it sometimes enforces very very small time steps (1e-9) and unnecessarily slow down the simulation process (compare to the same simulation using constant time step of 1e-6 without running into any problem). |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,877
Rep Power: 23 ![]() |
Maybe post your controlDict settings. It would be of help.
__________________
Alberto GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image. GeekoCFD 32bit - The 32bit edition of GeekoCFD. GeekoCFD text mode - A smaller version of GeekoCFD, text-mode only, with only OpenFOAM. Available in a variety of virtual formats. |
|
|
|
|
|
|
|
|
#3 |
|
Member
John Wang
Join Date: Mar 2009
Location: Singapore
Posts: 70
Rep Power: 6 ![]() |
Sorry for the delay in reply, the email notification probably ended up in spammail box and I forgot to check the forum until today. The maxCo was required by the solver for some reason, but shouldn't effect the writeControl, right?
Here's my controlDict: Code:
application pimpleDyMFoam; startFrom startTime; startTime 0; stopAt endTime; endTime 10; deltaT 2e-06; writeControl runTime; writeInterval 0.1; purgeWrite 0; writeFormat binary; writePrecision 12; writeCompression uncompressed; timeFormat general; timePrecision 12; runTimeModifiable yes; adjustTimeStep no; maxCo 0.05; maxDeltaT 1e-6; |
|
|
|
|
|
|
|
|
#4 |
|
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,877
Rep Power: 23 ![]() |
Try:
writeControl adjustableRunTime; Best,
__________________
Alberto GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image. GeekoCFD 32bit - The 32bit edition of GeekoCFD. GeekoCFD text mode - A smaller version of GeekoCFD, text-mode only, with only OpenFOAM. Available in a variety of virtual formats. |
|
|
|
|
|
|
|
|
#5 |
|
Member
John Wang
Join Date: Mar 2009
Location: Singapore
Posts: 70
Rep Power: 6 ![]() |
Thanks for the input, tried that, same result, though =/
I've renamed all the folders manually already, anyway. On a side note, I really should check my thread subscription notification setting, I did not see your post until today. John |
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Comparison between C/C++ and Fortran? | rick | Main CFD Forum | 45 | September 6, 2011 00:52 |
| snappyHexMesh won't work - zeros everywhere! | sc298 | OpenFOAM Native Meshers: snappyHexMesh and Others | 2 | March 27, 2011 21:11 |
| snappyHexMesh aborting | Tobi | OpenFOAM Native Meshers: snappyHexMesh and Others | 0 | November 10, 2010 03:23 |
| DecomposePar unequal number of shared faces | maka | OpenFOAM Pre-Processing | 6 | August 12, 2010 09:01 |
| BlockMeshmergePatchPairs | hjasak | OpenFOAM Native Meshers: blockMesh | 11 | August 15, 2008 07:36 |