Running Locally
For small simulation sizes, a local machine with a high number of cores and memory can give sufficient compute resource for a design study.
-
For each design study in your
Design Manager project, set the run and resource settings:
-
You can run design studies on your workstation directly from the Graphical User Interface (GUI) or in batch mode from the command prompt:
Method Procedure Running directly from the GUI - To run a specific design study, right-click the design study node and select Run Study.
- To run all design studies sequentially from first to last, right-click the Design Studies manager node and select Run All Studies.
- To run multiple design studies, multi-select your preferred studies, right-click on one of them and select Run Study. This executes the selected studies sequentially in the order in which they were created in the Design Manager tree.
The design simulations are submitted in the background. The output from the Design Manager server is displayed in the Output window. The Simcenter STAR-CCM+ servers for each running design simulation are visible in the Simcenter STAR-CCM+ server list.
Running from a batch client For more information, see Running the Client in Batch.
- If you want to run specific design studies:
- Save the following Java code to a macro file (*.java) and name it
runSpecificStudies:
// STAR-CCM+ macro: runSpecificStudies.java package macro; import java.util.*; import star.common.*; import star.mdx.*; public class runSpecificStudies extends MdxMacro { public void execute() { MdxProject mdxProject_0 = getActiveMdxProject(); String[] designStudies = {"Design Study 1", "Design Study 2", "Design Study 3"}; for (int i = 0; i < designStudies.length; i++){ MdxDesignStudy mdxDesignStudy_0 = mdxProject_0.getDesignStudyManager().getDesignStudy(designStudies[i]); mdxDesignStudy_0.runDesignStudy(); } } }
In the Java code above, the
designStudies
array defines the design studies to run. Replace the default design study names (Design Study 1
,Design Study 2
, andDesign Study 3
) with the names of the design studies that you want to run. - Move the macro file to your project root directory, which contains the relevant Design Manager project file (*.dmprj).
- Open a command prompt and enter the following command line:
[STAR-CCM+_INSTALL_DIR]\star\bin\starccm+ -batch [PROJECT_ROOT_DIR]\runSpecificStudies.java [PROJECT_ROOT_DIR]\[PROJECT].dmprj [-dmnoshare] [-passtodesign <options>]
This command line only applies on Windows. For Linux, you must use forward slashes.
- Save the following Java code to a macro file (*.java) and name it
runSpecificStudies:
- If you want to run all design studies sequentially from first to last:
- Open a command prompt and enter the following command line: [STAR-CCM+_INSTALL_DIR]\star\bin\starccm+ -batch run [PROJECT_ROOT_DIR]/[PROJECT].dmprj [-dmnoshare] [-passtodesign <options>]
where:
- [STAR-CCM+_INSTALL_DIR] represents the absolute path to the Simcenter STAR-CCM+ installation directory.
[PROJECT_ROOT_DIR]
represents the path to the project root directory.- [PROJECT] represents the name of the Design Manager project file.
-dmnoshare
activates the Unlicensed Design Manager Server license scheme. Omitting this option uses the Default license scheme. For more information, see Design Manager Licensing.-passtodesign <options>
allows you to pass additional simulation command line options, such as license options, to the design simulations. Passing simulation command line options directly from the command line is useful for machine-specific or user-specific options, which you do not want to save within your Design Manager project file (see step 1b). However, command line options that require double quotes are not supported—you must set these options in the STAR-CCM+ Command Line Options property. For more information, see Design Manager Options.
注 If [PROJECT_ROOT_DIR] or [PROJECT] contains spaces, you must pass the Design Manager project file with quotes, such as: [STAR-CCM+_INSTALL_DIR]\star\bin\starccm+ -batch run "[PROJECT_ROOT_DIR]/[PROJECT].dmprj" [-dmnoshare] [-passtodesign <options>]