You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a JavaScript of the BouncingBall.mo modelica model by exporting the FMU with JModelica. It now looks like Composer can't call this model. After inserting the zip with the model and review the simulator the error message "ReferenceError: BouncingBall is not defined" appears in the browser console.
What is missing/wrong with the JavaScript, that it doesnt work with composer?
Start the JModelica iPython Shell using the command /home/<user_name>/<jmodelica_install_location>/bin/jm_ipython.sh and export the FMU with the following commands
(FMU version 2.0, co-simulation, source code, solver: CVODE)
5. Change directory to /<path_to_FMU>/sources/
6. Compile the model to JavaScript using emcc
Will consider whether Jmodelica support will be added to v2.0. Cvode solver with sources is better alternative than commercial Dymola, or OpenModelica with Euler solver only. Btw., Jmodelica support is discontinued from Modelon.
I created a JavaScript of the BouncingBall.mo modelica model by exporting the FMU with JModelica. It now looks like Composer can't call this model. After inserting the zip with the model and review the simulator the error message "ReferenceError: BouncingBall is not defined" appears in the browser console.
What is missing/wrong with the JavaScript, that it doesnt work with composer?
The original modelica model:
BouncingBall.mo.zip
The compiled JavaScript:
BouncingBall.zip
How I created the JavaScript:
/home/<user_name>/<jmodelica_install_location>/bin/jm_ipython.sh
and export the FMU with the following commands(FMU version 2.0, co-simulation, source code, solver: CVODE)
5. Change directory to
/<path_to_FMU>/sources/
6. Compile the model to JavaScript using emcc
(define RT to avoid errors during compilation see StackOverflow
7. Pack the JavaScript together with the manifest (XML) of the FMU to a zip
The text was updated successfully, but these errors were encountered: