OrgPad logo

Combine 2024 lightning talk - Tomas Kulhanek

Created by Tomas Kulhanek

Combine 2024 lightning talk - Tomas Kulhanek

Modeling and simulation using industrial standards Modelica, FMI and web components.

image

!. some key features of modeling technologies

equation based

component based (modular, hierarchical, object oriented)

model of glucose insulin regulation

image

image

image

GI equation

image

components

image

image

supporting libraries

Physiolibrary & Chemical https://physiolibrary.org

Mateják, M. (2023, December). Creating cardiovascular and respiratory models using Physiolibrary 3.0. In Modelica Conferences (pp. 463-468).

hemodynamics of cardiovascular system

Dymola 9CIA5zGnUy

Ježek, F., Kulhánek, T., Kalecký, K., & Kofránek, J. (2017). Lumped models of the cardiovascular system of various complexity. Biocybernetics and Biomedical Engineering37(4), 666-678.

model of glucose insulin regulation - acausal form with components

image

2. why

Readability & Plausability

model of complex system may lead to implementation errors

 

image

A C Guyton, T G Coleman, H J Granger, Circulation: overall regulation, Annu Rev Physiol.1972;34:13-46.doi: 10.1146/annurev.ph.34.030172.000305.

Correction of schema after reimplementation in 2010

image

J.Kofránek, et al., Restoration of Guyton‘s Diagram for Regulation of the Circulation ...Physiol Res. 2010;59(6):897-908.doi: 10.33549/physiolres.931838.

Guyton's original scheme part of circulatory dynamics

image

equivalent implementation in component and acausal modeling language

image

Physiomodel

firefox SHzAoizS4q

Complex model of physiology in Modelica based on HumMod and Physiolibrary

https://physiomodel.org

>60 000 equations

comprehensibility

Frank-Starling law is  much more visible in component model - "force of the heart muscle depends on pressure of incoming blood". 

standard for modeling -Modelica

image

image

Commercial tools:

imageDymola,image

image

, …

Open-source:

image

standard for simulation - FMI

image

Modelica tools support FMI

Matlab SIMULINK

PyFMI for Python

Bodylight.js for JS and web (model → FMI → emscripten → FMI JS with WebAssembly → + other components for charts, animation, markdown ...)

standard for exchange simulation setup - SSP

image

hemodynamics of cardiovascular system

Dymola 9CIA5zGnUy

blood-gas exchange

Dymola qmDZxxtrfj

respiration

Dymola sdXGmJf24o

co-simulation of multiple models via FMI in static web app with bodylight.js

iimage

https://egolem.online/demo/

medical simulators for education

lecture supported by simulators

image

physiology and pathophysiology

web simulators in a browser / desktop/tablet

desktop

HTML, Markdown, web-components

hemodynamics

native mobile apps

imagePOWERPNT Mjc6Qcjhym

control HW mannequin - simulation of patient on ECMO

hwmanequin

POWERPNT 4kJE4xB8Wg

image

OPC & REST API

bring virtual reality to life

vr

image

WebGL+WebXR                           Unity+WebView

Conclusion

image

image

links

models & libraries: https://www.physiolibrary.org

technology for simulation in web: https://bodylight.physiome.cz  (with source codes at GITHUB)

product demo: https://egolem.online

connect & colaborate

www.linkedin.com/in/tomaskulhanek/

acausal - do not dictate causality = rapid increase in reusability