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

Run multiple problems in batch mode.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 10, 2012, 10:18
Default Run multiple problems in batch mode.
  #1
Member
 
Join Date: Oct 2011
Posts: 80
Rep Power: 15
tsram90 is on a distinguished road
I am stimulating combustion in a IC engine. So I want to run different cases with different injection timings. I can create different sets of problems with individual msh, cas, dat and pdf files. I want to run them in my College lab. So want a way to do this in batch mode. If I set it and give a go all of these should run one by one until all are finished.
tsram90 is offline   Reply With Quote

Old   April 10, 2012, 18:17
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
Quote:
Originally Posted by tsram90 View Post
I am stimulating combustion in a IC engine. So I want to run different cases with different injection timings. I can create different sets of problems with individual msh, cas, dat and pdf files. I want to run them in my College lab. So want a way to do this in batch mode. If I set it and give a go all of these should run one by one until all are finished.
You need to write a journal file using TUI commands to give fluent all the instructions that it needs. The file itself can be made in any text editor (notepad).
LuckyTran is offline   Reply With Quote

Old   April 10, 2012, 23:27
Default
  #3
Member
 
Join Date: Oct 2011
Posts: 80
Rep Power: 15
tsram90 is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
You need to write a journal file using TUI commands to give fluent all the instructions that it needs. The file itself can be made in any text editor (notepad).

Do you have such a sample journal file I can take a look at? Just to see how its to be written..

My Id is sankarram90[at]gmail[dot]com

Thanks
tsram90 is offline   Reply With Quote

Old   April 10, 2012, 23:35
Default
  #4
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
Quote:
Originally Posted by tsram90 View Post
Do you have such a sample journal file I can take a look at? Just to see how its to be written..

My Id is sankarram90[at]gmail[dot]com

Thanks
Here is a journal file I used some time ago to set all the boundary conditions for a simulation. I had to rename as a .txt file to attach, make sure your actual file is a .jou

the .jou is only a file extension, it is a plain text file exactly the same as a .txt

to iterate you need to use something like

solve/iterate 1000

*Note there are abbreviations for some commands. The first line "rc" is abbrv for read-case. Many of these abbreviations exists, if you don't know them that's fine. The easiest way to find a command (aside from reading the fluent help file) is to press the return/enter key into the TUI. A list of all possible commands will be printed. This is a good way to learn when and what to type. Simply write out the same commands into a journal file and save it and you are all set to go. I use "/" slash marks to remind myself that there are groupings, but you can just as easily erase all the slashes and replace them with empty spaces and the journal will run fine.
Attached Files
File Type: txt setup.txt (3.9 KB, 49 views)
LuckyTran is offline   Reply With Quote

Old   April 11, 2012, 05:07
Default
  #5
Member
 
Join Date: Oct 2011
Posts: 80
Rep Power: 15
tsram90 is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
Here is a journal file I used some time ago to set all the boundary conditions for a simulation. I had to rename as a .txt file to attach, make sure your actual file is a .jou

the .jou is only a file extension, it is a plain text file exactly the same as a .txt

to iterate you need to use something like

solve/iterate 1000

*Note there are abbreviations for some commands. The first line "rc" is abbrv for read-case. Many of these abbreviations exists, if you don't know them that's fine. The easiest way to find a command (aside from reading the fluent help file) is to press the return/enter key into the TUI. A list of all possible commands will be printed. This is a good way to learn when and what to type. Simply write out the same commands into a journal file and save it and you are all set to go. I use "/" slash marks to remind myself that there are groupings, but you can just as easily erase all the slashes and replace them with empty spaces and the journal will run fine.


Thanks a lot. I will get back soon.
tsram90 is offline   Reply With Quote

Old   April 11, 2012, 05:45
Default
  #6
Senior Member
 
Join Date: Jul 2009
Posts: 260
Rep Power: 18
kingjewel1 is on a distinguished road
It looks like you have already set up your case files etc.

your journal file should not look any more complicated than this:

Code:
file read-case-data first_case_filename.cas.gz  # read in .cas and .dat files
sol it 10000
wd first_case_filename.dat.gz yes 
file read-case-data second_case_filename.cas.gz yes
sol it 10000
wd second_case_filename.dat.gz yes
exit yes
kingjewel1 is offline   Reply With Quote

Old   April 11, 2012, 06:08
Default
  #7
Member
 
Join Date: Oct 2011
Posts: 80
Rep Power: 15
tsram90 is on a distinguished road
Quote:
Originally Posted by kingjewel1 View Post
It looks like you have already set up your case files etc.

your journal file should not look any more complicated than this:

Code:
file read-case-data first_case_filename.cas.gz  # read in .cas and .dat files
sol it 10000
wd first_case_filename.dat.gz yes 
file read-case-data second_case_filename.cas.gz yes
sol it 10000
wd second_case_filename.dat.gz yes
exit yes
Three things on this kingjewel

Whats filename.cas.gz?? I have to read cas file and dat file. But no .gz files( is it for linux? I am using win 7)

I am using transient conditions. So I have to give timesteps and no. of iterations per time step How do I adjust this? sol it 10000

I want to make solution animations of files. They are not saved in cas, dat files. I have to define them each time I run the file. How can i add them to journal file?

Thanks
tsram90 is offline   Reply With Quote

Old   April 11, 2012, 06:46
Default
  #8
Senior Member
 
Join Date: Jul 2009
Posts: 260
Rep Power: 18
kingjewel1 is on a distinguished road
Quote:
Originally Posted by tsram90 View Post
Three things on this kingjewel

Whats filename.cas.gz?? I have to read cas file and dat file. But no .gz files( is it for linux? I am using win 7)

I am using transient conditions. So I have to give timesteps and no. of iterations per time step How do I adjust this? sol it 10000

I want to make solution animations of files. They are not saved in cas, dat files. I have to define them each time I run the file. How can i add them to journal file?

Thanks
the .cas.gz is a compressed format using gzip. Fluent on windows 7 will handle that fine.

Code:
sol dual-time it 10000 20 # iterates unsteady  10K 20 its per timestep.
Your best bet is to save images every timestep rather than an animation. You need to look up TUI Fluent documentation for that.
kingjewel1 is offline   Reply With Quote

Old   April 11, 2012, 08:47
Default
  #9
Member
 
Join Date: Oct 2011
Posts: 80
Rep Power: 15
tsram90 is on a distinguished road
Quote:
Originally Posted by kingjewel1 View Post

Your best bet is to save images every timestep rather than an animation. You need to look up TUI Fluent documentation for that.
I had used saving images at first but I could not get commands for everything. I have been checking for commands on temp, pressure etc. Animations are faster, more customizable. And you can create pics or videos from the output files.
tsram90 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
use batch mode to run an unsteady case PaulineP FLUENT 9 April 4, 2019 09:18
Batch Run with Initial values file krrishcfd CFX 1 July 28, 2011 03:35
Star-ccm+ batch mode on SGE Karl Jensen Siemens 0 February 4, 2009 16:54
fluent stops batch mode on error Ralf Schmidt FLUENT 1 March 1, 2008 11:35
Prosurf in batch mode Dhruv Siemens 1 September 19, 2005 19:02


All times are GMT -4. The time now is 16:22.