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

Patrick Mayrhofer
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 Oct 17, 2013, 9:43 AM EDT
Lars Gregersen COMSOL Employee
Posted: 4 years ago Oct 17, 2013, 9:43 AM EDT
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.