CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Fluent .dat problems on HPC

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By LuckyTran

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 3, 2019, 13:19
Default Fluent .dat problems on HPC
  #1
New Member
 
ZT
Join Date: Nov 2019
Posts: 14
Rep Power: 7
Tait10 is on a distinguished road
Currently moving from my own computer to HPC. Learning a lot about bash scripts and have run into a couple of barriers.

When writing a .dat file, it appears to only give me the last timestep saved in that .dat file. Do I need to write a new .dat file for every timestep along the way in order for it to save every timestep? I am using TecPlot as my post-processor if that helps. If this is the case, is there another command for that that doesn't end with me using 6000 lines of code in one .jou file?

Do I also need to write a .cas file along with the .dat file? No moving mesh so I wouldnt have thought it needed it on every ts, just at the end. .jou file posted below for you to have a look, cheers in advance.

; Read case file
rc FFF.1-Setup-Output.cas.gz
; Initialize the solution
/solve/initialize/hyb-initialization
; the time-step size as 0.01 (seconds)
/solve/set/time-step 0.01

;No of it
;Max it per time step
/solve/dual-time-iterate
1000
20
; Write data file (compressed, iteration number included in file name)
wd initial_testing_output_ts10.gz

;No of it
;Max it per time step
/solve/dual-time-iterate
1000
20
; Write data file (compressed, iteration number included in file name)
wd initial_testing_output_ts20.gz
; Exit FLUENT
exit
yes

Last edited by Tait10; November 3, 2019 at 19:54.
Tait10 is offline   Reply With Quote

Old   November 4, 2019, 11:04
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
The .dat file only contains the variables at the time-step when it is saved. If you want data from multiple time-steps, then yes you need to save a bunch of .dat files.

You do not need to save a .cas file every time since the mesh does not change.

Easiest way is to setup automatic saving of .dat every x time-steps. In the GUI you'd go to File=>Write=>Autosave in the ribbon. But you can also find it in Calculation Activities=> Autosave.

If you want to use TUI commands, they are:
Code:
/file/auto-save/root-name
 /file/auto-save/append-file-name
/file/auto-save/case-frequency
/file/auto-save/data-frequency
 /file/auto-save/retain-most-recent-files

Brief tutorial:

Code:
/file/auto-save/root-name "path/myCase"
Usually you can skip this command entirely if you plan to save in the working directory

Then you will need:

Code:
/file/auto-save/append-file-name-with time-step 6
or
/file/auto-save/append-file-name-with flow-time 6
Most people have a preference for either the physical simulation time or the time-step counter in their filenames. 6 is number of decimals for the flow-time/time-step. Use the default 6 or adjust to your needs.

Code:
/file/auto-save/case-frequency [arg]
take one of three arguments

Code:
each-time
if-case-is-modified
if-mesh-is-modified
Pretty self-explanatory. You'll want one of the later two, doesn't really matter which one.

Code:
/file/auto-save/data-frequency 1
1 will save a .dat file every time-step. Usually a bigger number (i.e. 10, 100, etc.), but set this for your purpose.

Code:
/file/auto-save/retain-most-recent-files no
set to no so that it doesn't delete the .dat files automatically

Actual example:
Code:
/file/auto-save/append-file-name time-step 6
/file/auto-save/case-frequency if-mesh-is-modified
/file/auto-save/data-frequency 1
/file/auto-save/retain-most-recent-files no
Put these lines somewhere before your /solve/dual-time-iterate
mcuneytk likes this.
LuckyTran is offline   Reply With Quote

Old   November 4, 2019, 16:34
Default
  #3
New Member
 
ZT
Join Date: Nov 2019
Posts: 14
Rep Power: 7
Tait10 is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
The .dat file only contains the variables at the time-step when it is saved. If you want data from multiple time-steps, then yes you need to save a bunch of .dat files.

You do not need to save a .cas file every time since the mesh does not change.

Easiest way is to setup automatic saving of .dat every x time-steps. In the GUI you'd go to File=>Write=>Autosave in the ribbon. But you can also find it in Calculation Activities=> Autosave.

If you want to use TUI commands, they are:
Code:
/file/auto-save/root-name
 /file/auto-save/append-file-name
/file/auto-save/case-frequency
/file/auto-save/data-frequency
 /file/auto-save/retain-most-recent-files

Brief tutorial:

Code:
/file/auto-save/root-name "path/myCase"
Usually you can skip this command entirely if you plan to save in the working directory

Then you will need:

Code:
/file/auto-save/append-file-name-with time-step 6
or
/file/auto-save/append-file-name-with flow-time 6
Most people have a preference for either the physical simulation time or the time-step counter in their filenames. 6 is number of decimals for the flow-time/time-step. Use the default 6 or adjust to your needs.

Code:
/file/auto-save/case-frequency [arg]
take one of three arguments

Code:
each-time
if-case-is-modified
if-mesh-is-modified
Pretty self-explanatory. You'll want one of the later two, doesn't really matter which one.

Code:
/file/auto-save/data-frequency 1
1 will save a .dat file every time-step. Usually a bigger number (i.e. 10, 100, etc.), but set this for your purpose.

Code:
/file/auto-save/retain-most-recent-files no
set to no so that it doesn't delete the .dat files automatically

Actual example:
Code:
/file/auto-save/append-file-name time-step 6
/file/auto-save/case-frequency if-mesh-is-modified
/file/auto-save/data-frequency 1
/file/auto-save/retain-most-recent-files no
Put these lines somewhere before your /solve/dual-time-iterate
This is fantasic, thanks so much. Will post back if I once again find myself at the mercy of my own incompetence.
Tait10 is offline   Reply With Quote

Reply

Tags
.dat, bash script, batch file, transient 3d


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
fluent issue in windows hpc pack 2012 r2 mosesHPC FLUENT 17 January 12, 2019 16:01
Write crashed .cas & .dat for Fluent yonpanman FLUENT 0 February 9, 2017 09:59
problems running fluent through matlab galapago FLUENT 1 October 10, 2013 10:20
Fluent Parallel Programing using Windows HPC 2008 santoshgoku FLUENT 22 February 23, 2013 01:56


All times are GMT -4. The time now is 13:43.