CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Run multiple problems in batch mode. (https://www.cfd-online.com/Forums/fluent/99723-run-multiple-problems-batch-mode.html)

tsram90 April 10, 2012 09:18

Run multiple problems in batch mode.
 
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.

LuckyTran April 10, 2012 17:17

Quote:

Originally Posted by tsram90 (Post 353974)
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).

tsram90 April 10, 2012 22:27

Quote:

Originally Posted by LuckyTran (Post 354060)
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

LuckyTran April 10, 2012 22:35

1 Attachment(s)
Quote:

Originally Posted by tsram90 (Post 354086)
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.

tsram90 April 11, 2012 04:07

Quote:

Originally Posted by LuckyTran (Post 354089)
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.

kingjewel1 April 11, 2012 04:45

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


tsram90 April 11, 2012 05:08

Quote:

Originally Posted by kingjewel1 (Post 354130)
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

kingjewel1 April 11, 2012 05:46

Quote:

Originally Posted by tsram90 (Post 354133)
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.

tsram90 April 11, 2012 07:47

Quote:

Originally Posted by kingjewel1 (Post 354142)

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.


All times are GMT -4. The time now is 19:40.