Integrating Simbiology and Comsol Models

I have two models, one made in Simbiology and the other in COMSOL, that I am trying to get to work in conjunction with eachother. I know there are resources like Livelink and Simulink, but what is the best approach to integrate these two models which both are observed in time studies?

4 Comments

Hello Darke,
That is an interesting question for which I don't have a good answer to at this time. Just to brainstorm a bit,
  1. If the SimBiology model was integrated with Simulink would that suffice?
  2. Is there a way to get the equations from the COMSOL model into MATLAB (e.g. do they export to SBML by any chance)?
I think pursuing a co-simulation approach would be difficult but maybe we could think of a way to do it if that is your preference.
-rick paxson
Hi Rick,
Thanks for the response. To my knowledge, the only way to get the COMSOL model into MatLab is through LiveLink for Matlab. I have tried a few different methods of integration, my main approach is using a function I wrote to pass values between the two programs, but regulating time steps is proving difficult.
I am pretty new to Simulink, If I could get both models as model objects in MatLab, would it support their integration that way?
-Darke Hull
Rick Paxson
Rick Paxson on 15 Dec 2020
Edited: Rick Paxson on 15 Dec 2020
Hello again,
I had not heard of Livelink before so I looked it up. It answers my first question; if we find a way to put the SimBiology model into Simulink then you, in theory, would be able to simulate both models in one environment. Would satisfy what you are trying to do?
I should be clear that we don't have an easy way to integrate a SimBiology models into Simulink at the moment but it is something we have thought about and have not actioned yet.
-rick paxson
If I am able to put both models into Simulink, then that would solve my problem. I am currently able to import both models as model objects into Matlab, but I am not aware of any way to put model objects into Simulink effectivly.
-Darke Hull

Sign in to comment.

Answers (0)

Communities

More Answers in the  SimBiology Community

Categories

Products

Release

R2020b

Asked:

on 15 Dec 2020

Commented:

on 15 Dec 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!