Playing the Macro
Simcenter STAR-CCM+ uses the tutorial macros to construct the same model that the tutorial instructions describe.
Before you play a macro, it is important to read through the appropriate section of the tutorial guide. There are three ways a tutorial macro can be used interactively:
Macros can also be run in batch mode.
Playing an Initial or Single Macro
Macros that do not have precursor solutions can be run by creating a new simulation, clicking the
(Play Macro) toolbar button and selecting the appropriate macro file. The file executes dynamically.
Playing a Macro Dependent on an Existing Simulation
For cases that require existing solutions to be present, the recommended procedure is to load the appropriate file from the downloaded tutorial files before running the macro. For example, to execute the SolarCollector.java macro it is necessary to first load the ThermalInsulator_final.sim file.
It is possible also to use the results of an upstream macro as the start of the downstream solution. So, using a single simulation, you can run Introduction1.java and thenIntroduction2AdjustingSolverParamters.java to obtain the solution to the final introductory case.
Modifying the Macro to Play up to Any Page
The automation tutorials provide guidelines on how macros can be modified to suit your needs. The tutorial macros have been structured in a way that allows you to run each case up to a particular section.
To play, for example, the macro for the Domestic Fuse tutorial up to the step, “Visualizing the Volume Mesh”, do the following:
-
Open the file, DomesticFuse.java, in a text editor of your choice.
-
Comment out the following pages in the playlist section using block comments as shown below.
-
Save the macro.
-
Start a simulation and run the modified macro.