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

8 visualizzazioni (ultimi 30 giorni)
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.

Risposta accettata

Sivsankar
Sivsankar il 24 Gen 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 Commento
feynman feynman
feynman feynman il 24 Gen 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?

Accedi per commentare.

Più risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by