CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CCM+

link Star-ccm and matlab

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By Alessio85

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 19, 2011, 10:11
Default link Star-ccm and matlab
  #1
New Member
 
Join Date: Oct 2011
Posts: 3
Rep Power: 14
Alessio85 is on a distinguished road
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
hu'hu likes this.
Alessio85 is offline   Reply With Quote

Old   October 21, 2011, 09:38
Default
  #2
New Member
 
Jean-François Corbett
Join Date: Aug 2011
Posts: 8
Rep Power: 14
jfcorbett is on a distinguished road
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.
jfcorbett is offline   Reply With Quote

Old   October 22, 2011, 12:47
Default
  #3
New Member
 
Join Date: Oct 2011
Posts: 3
Rep Power: 14
Alessio85 is on a distinguished road
thanks for your answer....
it works fine...
i knew the shell function but i thought it could be used only for .exe files...
Alessio85 is offline   Reply With Quote

Old   October 24, 2011, 04:01
Default
  #4
New Member
 
Jean-François Corbett
Join Date: Aug 2011
Posts: 8
Rep Power: 14
jfcorbett is on a distinguished road
starccm+ is indeed an executable... The full filename is "starccm+.exe".

Glad it worked.
jfcorbett is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



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