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

5 次查看(过去 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
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
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 CenterFile Exchange 中查找有关 Multibody Dynamics 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by