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.

Same model, different solutions?

Please login with a confirmed email address before reporting spam

Hello, Community,

I'm doing phase change simulation with phase change HT module. Currently I have a problem with COMSOL:

The same model gives different results in different runs!

I use Matlab Livelink to read the solution in each run and compare the difference between two runs.

What I did in Matlab is:

% load model
Comsol_model2 = mphload(Model.mph);
% Run the Temperature model
Comsol_model2.sol('sol2').runAll;
% get model values
Temp2=mpheval(Comsol_model2,{'T2'});
Comsol_T2=Temp2.d1; % Temperature Variables
Comsol_Px2=Temp2.p(1,:); % x coordinate
Comsol_Py2=Temp2.p(2,:); % y coordinate

Comparing the above 3 variables in two simulation runs, the x and y coordinate values are exactly the same but the temperature variable varies randomly in each simulation. I expect the same solution of temperature from each simulation runs if the model is the same.

So can anyone here help me to explain this weird problem?


1 Reply Last Post Jun 7, 2016, 7:52 a.m. EDT
COMSOL Moderator

Hello Xiaoqing Cao

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.


Please login with a confirmed email address before reporting spam

Posted: 9 years ago Jun 7, 2016, 7:52 a.m. EDT
Hi,

I have the exact same problem now! Did you already find a solution to your problem or could someone from COMSOL help us with this strange COMSOL outcome?

Cheers, Iris
Hi, I have the exact same problem now! Did you already find a solution to your problem or could someone from COMSOL help us with this strange COMSOL outcome? Cheers, Iris

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.