comsol LiveLink for MATLAB: output solutions on a specific line (in reference or current configuration)

12 ビュー (過去 30 日間)
In a 3D comsol model, how to output the solution on a specific line (in reference or current configuration)? In .mph comsol models, it's like the
comp1.at3
command that is equivalent.

採用された回答

Sivsankar
Sivsankar 2025 年 1 月 24 日 5:12
To output the solution along a specific line, you can utilize the 'mphinterp' LiveLink API. This API allows you to evaluate expressions across arbitrary points. For more information on how to implement this API, please refer to the following COMSOL documentation:
Reviewing the examples on this page will provide you with a better understanding.
I hpe this helps!
  1 件のコメント
feynman feynman
feynman feynman 2025 年 1 月 24 日 5:51
thank you very much! I don't know if you have experience with 'cutline' data through and then with mphinterp: cln = model.result.dataset.create('cln', 'CutLine3D');
It seems that by default the output data is not on the FE mesh, so the user has to specify the coordinates?

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by