CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   STAR-CCM+ (https://www.cfd-online.com/Forums/star-ccm/)
-   -   link Star-ccm and matlab (https://www.cfd-online.com/Forums/star-ccm/93567-link-star-ccm-matlab.html)

Alessio85 October 19, 2011 10:11

link Star-ccm and matlab
 
Hi!!!!
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?
thanks

jfcorbett October 21, 2011 09:38

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

Code:

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

Code:

starccm+ -new -batch "..\myotherpath\MyMacro.java"
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 18:58.