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 Comments

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.
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.
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

Sign in to comment.

Answers (0)

Asked:

N/A
on 12 Dec 2020

Community Treasure Hunt

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

Start Hunting!