|
[Sponsors] |
command to save data file every #time step in a batch script |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Join Date: Jul 2021
Posts: 23
Rep Power: 5 ![]() |
Hi,
I'm running a batch simulation and need to save the cdat or dat file every # time step. I wrote the following commands but didn't work. Does anyone know what might be the error? file/read-case FullyOpen_covedcorner_0.03m_real.cas solve/initialize/initialize-flow solve/set/time-step 0.01 solve/dual-time-iterate 30000 20 file/auto-save/save-data-file-every 6000 file/write-case-data FOFOFOFO_transientfive_real_result.cas file/confirm-overwrite yes exit yes Thanks! |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Alain Islas
Join Date: Nov 2019
Location: Mexico
Posts: 142
Rep Power: 7 ![]() |
You can use auto-execute commands. For instance, in your journal file you can add:
solve/execute-commands/add-edit command-1 6000 "time-step" "file/write-data FOFOFOFO_transientfive_real_result_%t.dat" If your simulation is steady, you can replace %t (time step appended) for %i (which stands for iteration number) |
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
Join Date: Jul 2021
Posts: 23
Rep Power: 5 ![]() |
I tried this and it didn't work.
file/read-case-data FullyOpen_SS_Tran_0.020m.cas solve/iterate 1 solve/set/time-step 0.01 solve/dual-time-iterate 30000 20 file/auto-save/data-frequency 6000 file/write-data SSTran_%t_result.dat file/write-case 020m_SS_Tran_result.cas file/confirm-overwrite yes exit yes |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Alain Islas
Join Date: Nov 2019
Location: Mexico
Posts: 142
Rep Power: 7 ![]() |
Please open a fresh session in interactive mode, try typing the commands one by one and debug. Some of your commands are a bit redundant.
|
|
![]() |
![]() |
![]() |
![]() |
#5 |
New Member
Join Date: Jul 2021
Posts: 23
Rep Power: 5 ![]() |
I'm trying to run this simulation using a batch script.
I'm not using a journal file, I am creating a run script. |
|
![]() |
![]() |
![]() |
![]() |
#6 |
Senior Member
Alain Islas
Join Date: Nov 2019
Location: Mexico
Posts: 142
Rep Power: 7 ![]() |
Please post a screenshot of Fluent's console
|
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.com] swak4foam compiling issues on a cluster | saj216 | OpenFOAM Installation | 5 | January 17, 2023 16:05 |
[Other] Contribution a new utility: refine wall layer mesh based on yPlus field | lakeat | OpenFOAM Community Contributions | 58 | December 23, 2021 02:36 |
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch | gschaider | OpenFOAM Installation | 225 | August 25, 2015 19:43 |
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 | bookie56 | OpenFOAM Installation | 8 | August 13, 2011 04:03 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 17:51 |