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

Macro in Star CCM+

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

Like Tree1Likes
  • 1 Post By bluebase

Reply
 
LinkBack Thread Tools Display Modes
Old   November 20, 2017, 12:05
Default Macro in Star CCM+
  #1
New Member
 
hsi
Join Date: Jul 2013
Posts: 4
Rep Power: 6
redhybrid is on a distinguished road
Hi guys,

My programming knowledge is poor so I need some guidance here~

I am new to Star CCM+ using macro recording/play in Star CCM+ to deal with the repeated work (settings).

1.If I want to go deeper into Star CCM+ macro, I need to learn JAVAscript first?

2.Can excel VBA does the same thing for Star CCM+?

Thank you
redhybrid is offline   Reply With Quote

Old   November 21, 2017, 08:28
Default
  #2
Senior Member
 
Sebastian Engel
Join Date: Jun 2011
Location: Germany
Posts: 212
Rep Power: 11
bluebase is on a distinguished road
Hi redhybrid,

there is a dedicated subforum for StarCCM and alikes. It would be good practice to post such a software-specific question there.

Putting that on the side:

1. StarCCM macros are written in java, not javascript. Whether you need to "learn" java depends on whether you have any previous programming experience. Refering to the second question, you do have some with VBA. The concepts of objects, variables, loops, etc. shouldn't be new to you. With the help of google, stackoverflow, etc. you should be able to write starccm macros without having to become a java programmer.

Starccm has a very detailed api documentation. moreover, you can fully integrate the api into an ide, such as netbeans. That way, you can simple adapt a recorded macro using the doc.

2) If you can call java methods from vba, there might be a tiny chance to use vba to run starccm. I think, this wouldn't make much sense. The time to figure out this way out oneself could be better spent on doing a java tutorial and searching on stackoverflow for whatever is unknown.

Best regards,
Sebastian
redhybrid likes this.
bluebase is offline   Reply With Quote

Old   November 27, 2017, 11:10
Default
  #3
New Member
 
hsi
Join Date: Jul 2013
Posts: 4
Rep Power: 6
redhybrid is on a distinguished road
Thank you Sebastian!
redhybrid is offline   Reply With Quote

Reply

Tags
macro, star ccm+ v10

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem when imported geometry from 3D CAD to star ccm, TAREK GANAT STAR-CCM+ 1 May 21, 2013 22:15
Using starToFoam clo OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 33 September 26, 2012 04:04
StarToFoam error Kart OpenFOAM Meshing & Mesh Conversion 1 February 4, 2010 05:38
error in star ccm maurizio Siemens 3 October 16, 2007 05:17
Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 2 July 15, 2005 04:15


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