DOE Using Script(Old)

Solutions > Advanced > DOE Using Script(Old)

Introduction

SimLab provides a mechanism to record a modeling process in a session file. This process can be parametrized using CAD, SimLab and sketcher parameters. After a process is recorded, the recording can be played for variations of the CAD, Simlab and sketcher parameters. Each variation is an experiment. The result from all these experiments can help make design decisions. DOE (Design of Experiments) tool allows users to setup the experiments.

Setting up DOE

To setup DOE, there should be a recording of the process in the form of JavaScript or Python script. The script file should reside in a folder, referred to as project folder. The parameters which are used in script will be changed for each experiment. Select parameters from parameter browser for design of experiments. define number of levels, minimum and maximum value for each parameter. The "DOE" option under "Solutions" workbench will open design of experiments table.

SimLab can read restricted parameters from Creo, which will be saved in project folder with the predefined name called "RestrictedParams.xml". If this file exists, then the "Levels", "Min" and "Max" value defined in parameter browser will be ignored and consider only the values from "RestrictedParams.xml" file to updated design of experiments table.

After selecting project file, user can select any one of the design methods (Full factorial/2 level full factorial/Plackett Burman) to create experiments. The "Experiments" table will list experiments with all combination of variables and their values. Experiments can be removed or added using the "Add" and "Remove" button. The list of experiments in this table can be exported into an .xml/.csv file. The .xml file can be imported back for reuse. After completing the experiments, post processing can be done in HyperStudy.

Plot

At the end of all experiments, responses can be plotted against any parameter. When more than one response is plotted, the response values will be normalized to the response selected in the column titled "Normalized to".

Design of experiments can be run in batch mode. The command line arguments to run DOE in batch mode is SimLab.bat auto d:\Sample_Project.js -param d:\Param.xml -doe designExperimentFile.xml

  • auto points to SimLab script file.
  • param points to SimLab parameter file.
  • doe points to list of experiment file.