2.4. Running and Post-processing from Batch Scripts

The Parameter Study can be run in batch mode, using scripts. The solution files can then be analyzed using the visualization options of the Post-Processor or exported.

Prepare for the off-line run in the Ansys Chemkin interface:

  1. Open an existing project with a parameter study or set up a new parameter study.

  2. Click Run Calculations and then select Offline Parameter Study then click Display Detail.

  3. Select the desired parameter study runs and then click the Prepare Selected button at the bottom of the panel. You will see that the run status has changed to "manual".

  4. At this point you can shut down the Ansys Chemkin interface.

    Continue working in the system files:

  5. Go to the directories for your selected parameter study runs. This will be of the format <ProjectName>_########_##### (see Step 6. in Running a Parameter Study for an example) which will contain subdirectories of the format RUN_######## (for example RUN_000001, RUN_000002, RUN_000003, etc.) Each of these subdirectories contain RUNJOB_CKRunProcessor.bat or RUNJOB_CKRunProcessor.sh scripts.

    The <ProjectName>_########_##### directory will also contain a script run_batch_parameter_study.bat (Windows) or run_batch_parameter_study.sh (Linux).

    To run your batch parameter study, run this script as follows:

    1. Open a command window session on your machine and cd to your Parameter Study run folder.

    2. To run your Parameter Study in batch mode from your session,

      On Windows, type:

      run_batch_parameter_study.bat

      And on Linux:

      ./run_batch_parameter_study.sh


    Note:  To ensure that your Ansys license packs are consumed effciently, you MUST use the run_batch_parameter_study script to run a parameter study and not call the RUNJOB scripts in the RUNxxxxx folders directly.


  6. Return to the Ansys Chemkin interface. Go to Run Calculations > Show Details where you will see that the status of runs that have finished is reported as "success".

  7. Select any successful run and click the Prepare Post-Process button to open the Visualizer for analysis.

To continue with post-processing from Ansys Chemkin, follow these steps:

  1. After all the jobs have finished, go back to the Ansys Chemkin User Interface's panel and click the Prepare Post-Process button.

  2. In the Select Post-Processing Variables panel, select what to post-process and click Process Solution Data.

  3. The Monitor Project Run panel appears.

  4. When the Monitor panel appears with the message, Done preparing post-processing jobs as off-line jobs, click Close on the panel.

To post-process your Parameter Study solutions in batch mode, follow these steps:

  1. Click the Prepare Post Process button.

  2. Select the variables you want to post-process.

  3. Click the Prepare Post-Process button.

  4. In the directory where your parameter study runs are, this file will be created:

    • On Windows systems: run_batch_post_parameter_study.bat

    • On Linux systems: ./run_batch_post_parameter_study.sh

  5. To run your Parameter Study, post-process in batch mode from your session:

    • On Windows systems, type: run_batch_post_parameter_study.bat

    • On Linux systems: ./run_batch_post_parameter_study.sh