Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
Evaluation of line integral via Matlab
Posted Jun 4, 2013, 6:18 a.m. EDT Interfacing, Results & Visualization Version 4.2a 2 Replies
Please login with a confirmed email address before reporting spam
I have a question concerning the evaluation of results via Matlab:
I added a line-integral to my model in the Comnsol-desktop which I can see in the exported m-file as:
model.result.numerical.create('int1', 'IntLine');
model.result.numerical('int1').selection.set([2 7]);
model.result.numerical('int1').set('probetag', 'none');
Now I would like to access the value of this line integral after the simulation in matlab. What is the right command for this?
I tried
model.result.numerical('int1').getInt
model.result.numerical('int1').getIntArray
...
and so on but all I got were error messages like:
'No method 'getInt' with matching signature found for class 'com.comsol.model.impl.NumericalFeatureImpl'.'
Ho can I access the value of this line-integral?
Thank you very much!
Oli
Hello Oliver Zeeb
Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.
If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.