Python utilities for running repeated IPG CarMaker Simulations similar to IPG's Test Manager.
configure → run cases/sweeps → save CSV logs → plot results
| File | Purpose |
|---|---|
cmConfig.py |
Configure project path, TestRun, Vehicle, signals, and cases |
cmSimulate.py |
Run simulations |
cmPlot.py |
Plot saved CSV results |
cmPlotRt.py |
Plot live signals from a GUI-started simulation |
cmHelpers.py |
Shared helper functions |
inspect/ |
Parameter/API inspection scripts |
logs/ |
Generated CSV outputs |
Run modes are selected in:
cmpython/cmSimulate.py
| Mode | Description |
|---|---|
cases |
Run all cases defined in cmConfig.py. Can run in parallel. |
sequential |
Run the same cases one after another. Good for debugging and IPGMovie. |
sweep |
Run predefined values for one selected parameter. |
Parallel execution is controlled with:
MAX_PARALLEL_CARMAKERS
Most setup is done in:
cmpython/cmConfig.py
Configure:
PROJECT_PATH CarMaker project path
TESTRUN_PATH selected TestRun file
VEHICLE_PATH selected Vehicle file
SIGNALS DVA signals to save
CASES simulation variants
The file selectors start from:
Data/TestRun
Data/Vehicle
The workflow currently focuses on Vehicle parameter changes. Full TestRun configuration from Python is not implemented yet.
cmSimulate.py can optionally start IPGMovie during scripted runs.
Recommended setup:
RUN_MODE = "sequential"
ENABLE_IPG_MOVIE = True
For normal batch/data runs, keep IPGMovie disabled.
Simulation results are saved as CSV files in:
cmpython/logs/
Example outputs:
baseline.csv
front_spring_5000.csv
rear_spring_6000.csv
front_rear_combo.csv
Use cmPlot.py to plot and compare saved CSV results.
cmSimulate.py → logs/*.csv → cmPlot.py
cmPlotRt.py is for live plotting.
Current workflow:
Run cmPlotRt.py in parallel
↓
Run cmPlotRt.py in parallel
↓
Plot selected signals while simulation is running
Use the scripts in:
cmpython/inspect/
to inspect available CarMaker parameters and API methods.
Useful when defining parameter changes in cmConfig.py.
From inside cmpython/:
PYTHONPATH=/opt/ipg/carmaker/linux64-14.1.1/Python/python3.12 python3.12 cmSimulate.pyAdjust the CarMaker version path if needed.
- auto-generate plots after runs
- improve TestRun configuration
- add command-line options for run mode and visualization