CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   Exit fluent after simulation (http://www.cfd-online.com/Forums/fluent/109817-exit-fluent-after-simulation.html)

Ragnar November 27, 2012 11:04

Exit fluent after simulation
 
Hi everyone,

I'm actually doing FLUENT simulations. As few licenses are available, I wonder if we can automatically close Fluent software at the end of a simulation. I know we can save data automatically, but how to quit the software ?
Of course I want to define "the end of the simulation" (numbers of iterations, when convergence is reached, etc...)
Does anyone know how to do that ?

Thanks in advance,
Regards,

Ragnar

Smaras November 27, 2012 11:10

Quote:

Originally Posted by Ragnar (Post 394433)
Hi everyone,

I'm actually doing FLUENT simulations. As few licenses are available, I wonder if we can automatically close Fluent software at the end of a simulation. I know we can save data automatically, but how to quit the software ?
Of course I want to define "the end of the simulation" (numbers of iterations, when convergence is reached, etc...)
Does anyone know how to do that ?

Thanks in advance,
Regards,

Ragnar

Hello Ragnar,


I think you should write a journal to do the simulation (i.e. after saving all the setting).
Just write it in notepad, then save it as FILENAME.jou and then open in fluent as journal file

"
/file/read-case-data Yourfilename

/solve/dual-time-iterate Nooftimesteps

/file/write-case-data Youfilename

/exit
ok
"

I hope your query is solved. if you need more help please ask

regards,
Smaras

Smaras November 27, 2012 11:13

And sorry forgot you can add more simulation as well so it will do simulation in series. For that you have to add more read command of your .cas file before /exit command.

Regards.

Ragnar November 27, 2012 12:08

Thank you ! it works well.
There is just something wrong (maybe because of the Fluent version) :

"
/file/read-case-data Yourfilename

/solve/iterate Nooftimesteps

/file/write-case-data Youfilename
ok

/exit
ok
"

I used "iterate" instead of "dual-time-iterate"
And the "ok" is needed in order to erase/save the file (if you save in the same directory).

Regards,
Ragnar

Smaras November 28, 2012 04:36

Quote:

Originally Posted by Ragnar (Post 394460)
Thank you ! it works well.
There is just something wrong (maybe because of the Fluent version) :

"
/file/read-case-data Yourfilename

/solve/iterate Nooftimesteps

/file/write-case-data Youfilename
ok

/exit
ok
"

I used "iterate" instead of "dual-time-iterate"
And the "ok" is needed in order to erase/save the file (if you save in the same directory).

Regards,
Ragnar

Ah ok you are using it in steady state...for unsteady its dual-time-iterate

Regards

Ragnar November 28, 2012 10:57

Ah ok. good to know.

Thank you for your help !

Regards,
Ragnar


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