CFD Online Discussion Forums

CFD Online Discussion Forums (
-   STAR-CCM+ (
-   -   link Star-ccm and matlab (

Alessio85 October 19, 2011 10:11

link Star-ccm and matlab
I'm a new member in this forum, and i hope to write in the right section...
i have a problem with Star-ccm, i have to open Star from Matlab and then run a macro already created...
Can someone help me?

jfcorbett October 21, 2011 09:38

This is how you run a macro from the command line on an existing sim file:


starccm+ mySimFile.sim -batch "..\myotherpath\"
and on a new (empty) sim file, I think it's:


starccm+ -new -batch "..\myotherpath\"
You can run these from Matlab as shell commands.

Alessio85 October 22, 2011 12:47

thanks for your answer....
it works fine...
i knew the shell function but i thought it could be used only for .exe files...

jfcorbett October 24, 2011 04:01

starccm+ is indeed an executable... The full filename is "starccm+.exe".

Glad it worked.

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