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 with Comsol graphics mode

Please login with a confirmed email address before reporting spam

Hello guys,

I am using Comsol 4.2a with Matlab for solving a piezoelectricity problem. There, I am excecuting a batch for a parameteric sweep where I would like to see graphical output while solving. So far, I was not able to "switch on" the graphics mode as is mentioned in in the Comsol for matlab manual.

At some point in the matlab files the batch mode is being prepared and then excecuted like this:
model.batch('p1').set('control', 'param2');
model.batch('p1').set('pname', {'d31'});
model.batch('p1').set('plist', d31_range);
model.batch('p1').set('err', true);
model.batch('p1').feature('so1').set('seq', 'sol1');
model.batch('p1').feature('so1').set('psol', 'sol2');
% Execute:
model.batch('p1').run;

Can anyone tell me how I can turn on the graphics mode or enable graphical output while the batch is being executed?

Regards,
Patrick

1 Reply Last Post 17 oct. 2013, 09:43 UTC−4
Lars Gregersen COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 17 oct. 2013, 09:43 UTC−4
Hi

You must start comsolserver with the -graphics option. This is described in the installation and operations manual.


Lars Gregersen
Comsol Denmark
Hi You must start comsolserver with the -graphics option. This is described in the installation and operations manual. 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.