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.

Exporting results in MATLAB

Please login with a confirmed email address before reporting spam

Hello,

First of all, I'm new to comsol, so I'm not very familiar to every matlab command with Comsol.
I have created a Cutline 2D in order to evaluate the average velocity in my model.
My steps were the following,

In COMSOL GUI,

1) Results --> Data Sets --> Cut Line 2D
2) Derived Values --> Average --> Line average
3) Evaluate

COMSOL then gives me a value of the average velocity of the Cut Line 2D.

What I want to do is, using matlab to do so, but at differents Cut Line position, and save the solution.

When I program a Matlab code, it creates an output at the following path
model.result.numerical('av1')

So i'm guessing 'av1' is my average velocity.

My problem is, how to I get into that information ? I can't seem to be able to extract that value.
Can someone help me?

Thank you very much for your time,

Alain

0 Replies Last Post Oct 13, 2011, 11:08 a.m. EDT
COMSOL Moderator

Hello Alain Nguyen

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.

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.