Bodylight.js

Bodylight.js

  • Docs
  • GitHub

›Getting started

Getting started

  • Introduction
  • Compiling Modelica

Simple project

  • Creating a simple project
  • Adding the model
  • Visualisation
  • Controls
  • Events and Actions

Physiological application

  • Pressure volume cardiac simulator
  • Creating the layout
  • Adding the heart
  • Heart Beat
  • Controls
  • Phases
  • Pressure volume chart
  • Rolling charts
  • Custom actions
  • Buttons
  • Finishing touches

API

  • Model
  • Plotly chart
  • Range
  • Toggle

Introduction

Bodylight.js Composer is a visual editor for creating in-browser dynamic applications and visualizations. It utilizes the Modelica language as the motor behind the running simulations.

Within 15 minutes, you can easily turn this Modelica code

  Real sinus;
  Real cosinus;
  parameter Real sinus_shift = 0;
  parameter Real cosinus_shift = 0;  
  parameter Real sinus_frequency = 1;
  parameter Real cosinus_frequency = 1;
equation
  sinus = Modelica.Math.sin( (time + sinus_shift) * sinus_frequency )
  cosinus = Modelica.Math.cos( (time + cosinus_shift) * cosinus_frequency )

into this in-browser running application.

Composer

The Bodylight.js Composer as well as this documentation has not yet reached version 1.0, some documentation may be missing.

Composer application screenshot

Showcase

Nephron

Using composer we developed the Nephron teaching simulator.

You can find the source code at github:jansilar/Nephron

Nephron

Compiling Modelica →
  • Composer
  • Showcase
    • Nephron
Copyright © 2019 Creative Connections s.r.o.