Support different simulation backends with Webfrontend

1 view
Skip to first unread message

Matthias König

unread,
Dec 17, 2024, 7:18:37 AM12/17/24
to OpenCOR Users

Hi everyone,

I just came across the announcement:

OpenCOR's frontend is to be rewritten using web-based technologies. This will allow us to use OpenCOR both as a standalone application (on Windows, Linux, and macOS) and on the web.

This is fantastic news! I am currently transitioning many of my workflows to Julia to take advantage of its improved performance and advanced features, such as delay differential equations, algebraic differential equations, ODE-neural network integrations, and symbolic modeling with automatic Jacobians and simplification.

CellML can be seamlessly imported into Julia’s ModelingToolkit (https://juliapackages.com/p/cellmltoolkit), where all features of CellML are readily supported.

It would be highly beneficial to enable the registration of Julia-based CellML solvers with the new web frontend. In particular, it should be straightforward to integrate alternative simulation backends as options alongside OpenCOR’s solver. This approach would allow the reuse of frontend components and the web interface for other solvers.

As the web frontend design progresses, it would be great to consider this flexibility by providing a standard interface for frontend/backend communication, enabling integration with different solvers.

I hope this suggestion is clear and helpful.

Best,
Matthias

Alan Garny

unread,
Dec 18, 2024, 3:23:48 AM12/18/24
to OpenCOR Users
Hi Matthias,

Thanks for your suggestion.

I have never used Julia, but we (the Auckland team and I) are aware of SciML, CellMLToolkit.jl, and ModelingToolkit.jl (FWIW, libCellML comes with Julia bindings). I am not sure which version of CellML is supported by CellMLToolkit.jl, but I understand that you are after leveraging ModelingToolkit.jl.

I must confess that I am not sure whether this can be done, but I would certainly welcome the ability to use other solvers besides the ones that come with libOpenCOR (CVODE, Forward Euler, Heun, RK2, and RK4 for ODE systems and KINSOL for non-linear algebraic systems; NLA). (Regarding DAE models, libCellML currently converts such models to an ODE system with one or more systems of NLA equations. In other words, DAE models are currently solved using an ODE solver and KINSOL rather than a dedicated DAE solver such as IDA.)

Anyway, you might want to create an issue on GitHub. Much easier to track ideas.

Alan

From: 'Matthias König' via OpenCOR Users <openco...@googlegroups.com>
Sent: Wednesday, 18 December 2024 1:18 am
To: OpenCOR Users <openco...@googlegroups.com>
Subject: [OpenCOR Users] Support different simulation backends with Webfrontend
 
--
You received this message because you are subscribed to the Google Groups "OpenCOR Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opencor-user...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/opencor-users/41e920e9-0bca-4955-add6-f9f55e470f96n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages