CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Siemens (https://www.cfd-online.com/Forums/siemens/)
-   -   automatic *.inp file execution (https://www.cfd-online.com/Forums/siemens/56664-automatic-inp-file-execution.html)

Ivan June 15, 2008 11:20

automatic *.inp file execution
 
Hello!

Is there any possibility to execute *.inp file automatically when prostar.exe starts? I would like to prostar.exe automatically starts with certain *.inp file and does all included in this file commands.

Something like that: c:\...\bin\prostar.exe -b -some_key file.inp

???

Thanks and regards, Ivan

BastiL June 15, 2008 16:39

Re: automatic *.inp file execution
 
Using Linux you can pipe it using "<"

prostar -b < file.inp

Do not know if this works for Windows but I do not think so. Otherwise you could try something like ifile file.inp in your proinit.

Regards

Ivan June 16, 2008 01:28

Re: automatic *.inp file execution
 
It works for Windows, thanks!

Pauli June 16, 2008 11:43

Re: automatic *.inp file execution
 
Put a line containing "ifile file.inp" in your PROINIT file. Or you can just put the commands directly in PROINIT.

On Unix/Linux, the PROINIT file goes in ~/star.dir. If present, it is automatically run each time you start a PROSTAR session. I believe you can also place PROINIT in the current working directory.



All times are GMT -4. The time now is 21:49.