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

Detect "Solution Complete" in Batch mode

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 15, 2021, 14:33
Default Detect "Solution Complete" in Batch mode
  #1
New Member
 
Harry W
Join Date: Nov 2021
Posts: 3
Rep Power: 4
hwerner2014 is on a distinguished road
Hi all,
I'm working on some parameterized simulations in ANSYS Fluent and making good use of the output parameters, however there are a number of data files (e.g. wing surface static pressure as ASCII, Tecplot formatted field variables, etc...) that I would like to export once each case is complete.
The simulations are steady-state and terminate early if convergence conditions are met, so the "execute command every ____ iterations" option won't work for every case. Is there a Fluent command sequence that will detect when the simulation is 'complete' so I can then export the desired data automatically? I don't want to run the entire parameterized simulation in batch mode, I really just want some automatic exporting of data between cases (i.e. run ends, execute journal exporting the data, proceed to next case) without me babysitting.
hwerner2014 is offline   Reply With Quote

Old   November 15, 2021, 17:39
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,675
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Just put the commands that you would have used with the "execute command every ___ iterations" at the end of your journal file before the exit.

In other words, just make a journal file. In your journal file you should have


solve/iterate 10000000000
and then big block of commands for your data export
exit
eof
hwerner2014 likes this.
LuckyTran is offline   Reply With Quote

Old   November 19, 2021, 14:41
Default
  #3
New Member
 
Harry W
Join Date: Nov 2021
Posts: 3
Rep Power: 4
hwerner2014 is on a distinguished road
Ah, that makes sense. No special commands since Fluent considers itself on the 'iterate' task until solution complete or max iterations is reached.

How then do I ask Fluent to run my journal when I'm running a parametric job? Do I need to run the entire parametric job as a batch job with one journal? Each output file must have a unique file name, ideally with the relevant parameter values for that simulation included in the file name. I've been trying to find actual, complete documentation for batch mode commands and there doesn't appear to be any official documentation, just limited examples. Maybe I'm not entering appropriate search criteria?
hwerner2014 is offline   Reply With Quote

Old   November 19, 2021, 16:27
Default
  #4
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,675
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
You mentioned you are not doing a parametric study in batch mode, so what are you doing? Why are you asking how to do this? Have you changed your mind?

If you are using the GUI and running a case and just want a macro to export the data then you can just include only those commands in the journal file. That is, you can omit the solve and exit parts that I wrote and put only the block for exporting data.

To run the journal file, go to file, read, journal.

Nearly everything you can do in the GUI has an equivalent TUI (text) command. Press enter/return key and all available TUI commands will be printed on the screen. The structure of the TUI commands is very similar to the structure that use in the GUI.

So try to do it once using the GUI so you know what the expected behavior is. Then press enter and replicate that action using text commands.
LuckyTran 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
Running Ansys in BAtch Mode kuleuvenstudent ANSYS 1 October 18, 2017 12:11
[PyFoam] Problems with the new PyFoam release zfaraday OpenFOAM Community Contributions 13 December 9, 2014 18:58
[PyFoam] having problems with pyfoam Installation vitorspadetoventurin OpenFOAM Community Contributions 3 December 2, 2014 07:18
[ICEM] ICEM CFD error when running in batch mode bgp723 ANSYS Meshing & Geometry 0 August 14, 2014 13:45
to run a replayfile in batch mode from UNIX froztbear ANSYS Meshing & Geometry 4 May 13, 2014 08:00


All times are GMT -4. The time now is 04:20.