CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Automatically create .cas files from .msh? (https://www.cfd-online.com/Forums/fluent/225605-automatically-create-cas-files-msh.html)

epaj95 April 2, 2020 07:32

Automatically create .cas files from .msh?
 
Hello all,

I have hundreds of volume meshes (pipe-like shapes) which I want to run simulations on. I want to automatically create the .cas files for each .msh, applying boundary conditions and so on with a script. Once all .cas files are created I want to run the simulations.

Is this possible (maybe with a journal file)? Does anyone have experience creating this sort of pipeline?

Thank you. :)

LuckyTran April 2, 2020 08:20

Just learn the TUI commands. Probably the fastest way to learn it is to open up Fluent (a normal interactive session with a GUI) and press the enter key. All the available text commands will print to the screen. Play around with it until you learn how to do things using text commands. Then you just duplicate this in a text file and that becomes the journal file. Or you can read the help file (probably no one does this). There's a big book called Text Command List.


Actually a .msh file is a direct pre-cursor to a .cas file. And to read a .msh file using the text commands you would actually just use the command to read a .cas file....
Code:

file/read-case adsjfadsfj.msh

epaj95 April 2, 2020 08:32

Quote:

Originally Posted by LuckyTran (Post 763922)
Just learn the TUI commands. Probably the fastest way to learn it is to open up Fluent (a normal interactive session with a GUI) and press the enter key. All the available text commands will print to the screen. Play around with it until you learn how to do things using text commands. Then you just duplicate this in a text file and that becomes the journal file. Or you can read the help file (probably no one does this). There's a big book called Text Command List.


Actually a .msh file is a direct pre-cursor to a .cas file. And to read a .msh file using the text commands you would actually just use the command to read a .cas file....
Code:

file/read-case adsjfadsfj.msh

Great, this is very helpful, thank you


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