Charles Explorer logo
🇬🇧

Bodylight.js-Components open-source software library to enable FMU and Modelica simulation on the web

Publication

Abstract

This plugin is part of broader tools to enable in-browser simulation using modern web technologies: Web Assembly, HTML, Javascript (ECMAScript6). In order to build web simulator:

1) You need to export Modelica model into FMU with source codes including source codes for solver (Dymola exports CVODE, OpenModelica

1.14.x exports Euler and

1.16.x is declared to support CVODE export too).

2) Then you need to convert the FMU into WebAssembly - using Bodylight FMU Compiler

3) the exported ZIP contains JS file - to be reffered from bdl-fmi component, and modelDescription.xml - standard FMU description with variable references.

4) optional - export Adobe Animate animation into CreateJS library usable by bdl-adobe component.

5) use the Bodylight components, This plugin is distributed in 2 different way:

1) as standard web components or

2) as aurelia components.