Collect and output model variable values in COMSOL MATLAB LIVELINK

20 ビュー (過去 30 日間)
Longsa Medn
Longsa Medn 2016 年 5 月 19 日
回答済み: Siul Ruiz 2018 年 12 月 5 日
I know the way to output the global parameter by
model.param.evaluate('expr')
The way to collect table values:
str1 = mphtable(model,'tbl1');
tbl_1 = str1.data;
However, I did not figure out the way to output and store the variables. The way below not working
model.variable('var9').evaluate('expr')
Also did not figure out the way to output the values from the table at a specific time, by
mphtable(model, 'tbl1', 't', 100);
This does not work as well.

回答 (1 件)

Siul Ruiz
Siul Ruiz 2018 年 12 月 5 日
If you want to evaluate a dependent variable in your model, you could try mpheval.
pd = mpheval(model,'var9');
% pd.d1 should output the numerical value
varout = pd.d1;

カテゴリ

Help Center および File ExchangeExecution Speed についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by