|
[Sponsors] |
StarCCM+ Command line options and Macro execution |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 23, 2012, 14:40 |
StarCCM+ Command line options and Macro execution
|
#1 |
New Member
Join Date: Oct 2012
Location: Italy
Posts: 4
Rep Power: 14 |
Hi to all,
I've written a Star-CCM+ Macro that uses a jar library. From the Star-CCM+ GUI it works because I've set the "User Macro classpath" (Menu Tools=>Options=>Environment). Now, I want to run the same macro from command line. Into documentation there is a command line option "-classpath" that should overried the "User macro classpath", but it doesn't work. Obviously, I've removed the "User macro classpath" option The command line is: Code:
starccm+ -classpath "C:\libs" -m MyMacro.java simulation Thanks |
|
October 23, 2012, 15:30 |
|
#2 |
New Member
Join Date: Jun 2009
Posts: 9
Rep Power: 17 |
classpath is the location of class library used for the macro. where your .jar files if located in different directory.. If you just recorded macro then just run it without providing classpath.
|
|
October 24, 2012, 05:29 |
|
#3 | |
New Member
Join Date: Oct 2012
Location: Italy
Posts: 4
Rep Power: 14 |
Hi sgrshukla,
Quote:
So, from GUI it works (I've added the classpath to "User macro classpath"), but it doesn't work from command line with the option "-classpath" |
||
October 24, 2012, 14:42 |
|
#4 |
Senior Member
Join Date: Oct 2009
Location: Germany
Posts: 636
Rep Power: 22 |
Linux or Windows?
__________________
We do three types of jobs here: GOOD, FAST AND CHEAP You may choose any two! |
|
October 24, 2012, 14:44 |
|
#5 |
New Member
Join Date: Oct 2012
Location: Italy
Posts: 4
Rep Power: 14 |
Hi abdul099,
Now, I'm working on Windows operating system. |
|
October 24, 2012, 18:04 |
|
#6 |
New Member
Join Date: Jun 2009
Posts: 9
Rep Power: 17 |
I think you also want to add "-batch" in command line before macro name and filename.
|
|
January 29, 2013, 04:21 |
Star CCM+ Unable to access JAR in Linux Envi
|
#7 |
New Member
aparajitha
Join Date: Nov 2012
Posts: 3
Rep Power: 14 |
Hi All,
I wrote a mcro using some supporting JAR. I have added the both JAR path and macro path in "User Macro ClassPath" Settings also. But my macro is unable to find the '.JAR' i have used. Iam using Star CCM+ 7.04 in linux environment. Kindly help me. Thanks, aparajitha |
|
January 29, 2013, 04:39 |
[SOLVED] StarCCM+ Command line options and Macro execution
|
#8 | |
New Member
Join Date: Oct 2012
Location: Italy
Posts: 4
Rep Power: 14 |
Hi,
I'm going to describe the solution to my initial post and some tricks that I've faced. Solution is for Windows Operating System but It can be easily adapted for linux environment. ------- It's possible to override macro libraries path (classpath) from command line only with "-batch" option otherwise you should set library path from GUI into "User Macro ClassPath" window. It's an example of command line macro execution: Quote:
---- Thanks to all. Last edited by isidp; January 29, 2013 at 06:05. |
||
January 29, 2013, 06:00 |
|
#9 |
New Member
aparajitha
Join Date: Nov 2012
Posts: 3
Rep Power: 14 |
Hey,
It's in Linux environment.. Also, starccm+ command is giving me error: "Command not found" Iam giving this command from path where ccm is installed. Thanks in advance.. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Macro Heat Exchanger not selecting (Please help!) | zdeth | FLUENT | 2 | September 11, 2012 14:52 |