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.

Saving LOG to file from MATLAB Interface

Please login with a confirmed email address before reporting spam

Is it possible to save COMSOL logs to a file when running the simulation from Matlab? I would like to see something like this in a logfile:

Number of vertex elements: 4
Number of boundary elements: 50
Number of elements: 400
Minimum element quality: 0.931
Nonlinear solver
Number of degrees of freedom solved for: 1928
Iter ErrEst Damping Stepsize #Res #Jac #Sol
1 0 0.0001000 0 2 1 2
2 0 0.0010000 0 3 2 4
3 0 0.0100000 0 4 3 6
4 0 0.1000000 0 5 4 8
5 0 1.0000000 0 6 5 10

I appreciate your reply.

3 Replies Last Post Apr 13, 2015, 1:31 p.m. EDT
COMSOL Moderator

Hello Zoltan Varallyay

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: 1 decade ago Apr 15, 2010, 1:03 p.m. EDT
Tamas,

I am having the same problem, any luck on how to do it?

-Michael
Tamas, I am having the same problem, any luck on how to do it? -Michael

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Jun 4, 2010, 3:35 a.m. EDT
I also have the same problem.

I mostly want to be able to export the information from the "mesh statistics" window to the matlab environment.

I will reply if I can find a solution soon, good luck to you all.

-Michael
I also have the same problem. I mostly want to be able to export the information from the "mesh statistics" window to the matlab environment. I will reply if I can find a solution soon, good luck to you all. -Michael

Please login with a confirmed email address before reporting spam

Posted: 10 years ago Apr 13, 2015, 1:31 p.m. EDT
In case anyone is still looking for the answer to this, the MATLAB command is:

ModelUtil.showProgress('comsollog.txt');
In case anyone is still looking for the answer to this, the MATLAB command is: ModelUtil.showProgress('comsollog.txt');

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.