Comsol Livelink with Matlab standalone App

Hello,
My script iteratively solves a plasma model on matlab coupled with a thermal simulation on Comsol. In order to make things more user friendly I would like to create a standalone app with Matlab complier, but is it possible to mantain the livelink with Comsol?
Thanks,
Davide

4 commentaires

Mario Malic
Mario Malic le 13 Déc 2020
Hi Davide,
What do you mean by maintaining the link with COMSOL? In general, everything should be doable. It's best if you try to create a simple app that would test what you need.
N/A
N/A le 13 Déc 2020
Thank's for your answer Mario,
Basically I use the livelink between Comsol and Matlab running Comsol in batch mode. In each iteration I pass parameters from Matlab to Comsol, perform the simulation, retrieve the results in Matlab, correct the initial guesses and start again till convergence. I tried building a preliminary version of the app and as long as I run it inside matlab everything works fine.
Then I tried the standalone application but at that point the simulation does not start, I suppose that's because Comsol is linked to Matlab through its installation path , not to a generic standalone application based on Matlab.
In both the softwares there is the possibility to create standalone applications without requiring a server or an active license, so I was wandering if there where the possibility to merge the two things in a standalone app to perform just my simulation with all the comodities of having a separate programme.
In any case I'll write a much simpler simulation just to try out different possibilities.
Mario Malic
Mario Malic le 13 Déc 2020
I glanced briefly on the this video for LiveLink https://www.comsol.ch/video/18-minute-intro-to-livelink-for-matlab, to connect with your COMSOL instance, you probably have to use mph____ commands, see 9:00 on the video from the link. I am sure you are familiar with the LiveLink™ for MATLAB® User’s Guide which covers all the needed stuff.
Hi DAvide,
Could you find a solution for your question?
I m ahaving the same issue and trying to find out if it is doable.
Thanks
Farough

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur External Language Interfaces dans Centre d'aide et File Exchange

Question posée :

N/A
le 12 Déc 2020

Community Treasure Hunt

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

Start Hunting!

Translated by