java macro to set angle of attack
Hi everyone,
I am trying to script a macro that lets me set the angle of attack in my simulation through the command line before running it, but I am struggling to wrap my head around the -jvmargs option. To be precise, I would like to change the value 14.0 in the following line of the macro to an arbitrary value that I can input from the command line -> scalarGlobalParameter_0.getQuantity().setValue(14. 0); Would this be the proper way to parse a "newaoa" value of 10 deg to the macro? -> starccm+ -power -batch change_aoa.java -jvmargs -Dnewaoa=10.0 -np 1 testsim.sim And how would I need to change the line from the macro to use that new aoa? Does anybody here have some experience with similar cases? I would really appreciate the help :) BR! |
fixed it
I figured it out now and thought I'd post a minimum working example for anyone stumbling over the same problem in the future:
Code:
// Simcenter STAR-CCM+ macro: change_aoa.java Code:
starccm+ -power -podkey <podkey> -licpath <licpath> -batch change_aoa.java -jvmargs -Dnewaoa=8 testsim.sim |
All times are GMT -4. The time now is 10:59. |