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 件のコメント

Mario Malic
Mario Malic 2020 年 12 月 13 日
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 2020 年 12 月 13 日
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 2020 年 12 月 13 日
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.
Farough Rahimzadeh
Farough Rahimzadeh 2021 年 6 月 27 日
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

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeExternal Language Interfaces についてさらに検索

質問済み:

N/A
2020 年 12 月 12 日

コメント済み:

2021 年 6 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by