Hi all,
I am now using the COMSOL Livelink for Matlab. I create two solutions whose soltags are 'sol1' and 'sol2' respectively. I want to copy the solution from 'sol1' to 'sol2'.
Here is what I am doing:
[u udot] = mphgetu(model,'soltag','sol1');
model.sol('sol2').setU(u);
model.sol('sol2').set('tlist',tstr); % where tstr is the time list string of 'sol1'
model.sol('sol2').createSolution;
My questions are:
a) How to copy the velocity components in sol1 to sol2?
b) Are there any fast or efficient ways to duplicate solution?
Thanks a lot
Dan
I am now using the COMSOL Livelink for Matlab. I create two solutions whose soltags are 'sol1' and 'sol2' respectively. I want to copy the solution from 'sol1' to 'sol2'.
Here is what I am doing:
[u udot] = mphgetu(model,'soltag','sol1');
model.sol('sol2').setU(u);
model.sol('sol2').set('tlist',tstr); % where tstr is the time list string of 'sol1'
model.sol('sol2').createSolution;
My questions are:
a) How to copy the velocity components in sol1 to sol2?
b) Are there any fast or efficient ways to duplicate solution?
Thanks a lot
Dan