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

5 views (last 30 days)
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.

Accepted Answer

Sivsankar
Sivsankar on 24 Jan 2025
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 Comment
feynman feynman
feynman feynman on 24 Jan 2025
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?

Sign in to comment.

More Answers (0)

Categories

Find more on Physics in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!