1. Make Project for co-simulation.
① Make ‘rmd’ and ‘rss’ file from RecurDyn model(‘rdyn’).
② Run Particleworks standalone simulation on windows environment with ‘close without running simulation’ option (to make ‘/Particleworks project/scene/results/sub.json’).
③ Change location of RecurDyn file (‘rmd’, ‘rss’) and Matlab(‘m’, ‘mdl’) file to ”/Particleworks project/scene/”.
* Obj file path in the model.json should be a relative path, so user have to click “switch path” on GUI.
2. Copy ‘recurdyn_client_7_9.mexa64’ to ‘/Particleworks project/scene/’.
To run triple co-simulation ‘*.mexa64’ file is needed.
3. Run Matlab UI on linux system.
4. Open parameter, m-file and etc.
5. Run ‘rdlib’
6. Open Simulink model.
7. Change RecurDyn Plant Block on Simulink window.
8. Start Simulink by clicking start on simulation tab
① After click start Simulink will wait RecurDyn solver.
② For detail, please refer here.
9. Simulink model make script automatically.
10. Run RecurDyn-Particleworks co-simulation.
③ Command that use for triple co-simulation is same with that of co-simulation of RecurDyn and Particleworks. For detail please refer Particleworks user manual (Command).
④ Command example: mpirun -r ssh -machinefile ~/machines/mpd.machine -np $MPI_PROCS /app/Particleworks/6.1.2/pw-linux-package/module/app.solver.double -p $RD_MODEL_PATH -f ./result/sub.json -n $PW_NUM_THREADS --inter_proc_cmd="rdsolver Model2 Model2"