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.

Matlab post-processing of multi-steps simulations

Please login with a confirmed email address before reporting spam

Hello,

I have carried out multi-steps simulations using comsol GUI in 1-D PDE mode. By "multi-steps" I mean that I have set up several solvers running one after the other. (Solver 1 is from time = 0 to time = 1 ; solver 2 is from time = 1 to time =2 using solver 1 results as initial conditions).

Once the simulation is done, i load the mph file in matlab using :

model=mphload('myfile.mph');

Then i want to acces to the value of my variable by :

u=mphinterp(model,'u', 'coord', ... , 'T', ...)

If i set 'T' to linspace(0,1,n), I can obtain the results given by solver 1 but if I set 'T' to linspace(1,2,n) the interpolation can't be done.

Do you have any idea to interpolate the results given by solver 2?

Thanks !

1 Reply Last Post Nov 4, 2011, 9:47 a.m. EDT
Lars Gregersen COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Nov 4, 2011, 9:47 a.m. EDT
Hi

Solutions from different solvers end up in different datasets.

You must specify the name of the dataset in the call to mphinterp.


--
Lars Gregersen
Comsol Denmark
Hi Solutions from different solvers end up in different datasets. You must specify the name of the dataset in the call to mphinterp. -- Lars Gregersen Comsol Denmark

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.