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

Please login with a confirmed email address before reporting spam

Hey!

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

2 Replies Last Post 01.07.2015, 02:02 GMT-4
COMSOL Moderator

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.


Please login with a confirmed email address before reporting spam

Posted: 9 years ago 27.04.2015, 14:12 GMT-4
Can anyone give us any hint ? I have the same problem with accessing the results from matlab.
Can anyone give us any hint ? I have the same problem with accessing the results from matlab.

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 01.07.2015, 02:02 GMT-4
Try this:


model.result.numerical('int1').getReal()
Try this: model.result.numerical('int1').getReal()

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.