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.

Extracting Temperature Field in MATLAB

Please login with a confirmed email address before reporting spam

Hi,

I am comfortable loading MPH files and running them using MATLAB. I simply need to extract the temperature field of my stationary simulation using MATLAB.

After running my simulation with:

model.sol)'sol1').runAll;
model.result.(pg1').run;

I then try to extract the temperature matrix with:

T = mpheval(model, 'T', 'selection', 1);

but the variable T doesn't even get assigned (This is just some command I found online...).

Anyways, how do I extract the temperature field after running my simulation? It's a simple 2D rectangle with a temperature gradient, but I assume the same command applies to 3D systems?

Thanks for your time.

0 Replies Last Post 11.11.2015, 18:14 GMT-5
COMSOL Moderator

Hello Drew Rohs

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.