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
Posted Nov 11, 2015, 6:14 p.m. EST 0 Replies
Please login with a confirmed email address before reporting spam
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.
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.