Plot While Solving
With the Plot While Solving functionality you can monitor the development of the computation by updating predefined plots during the computation. Since the plots are displayed on a COMSOL Multiphysics graphics window, start COMSOL with MATLAB using a COMSOL Multiphysics server with graphics display capabilities.
See the section Starting COMSOL Multiphysics with MATLAB using the Graphics Server in the COMSOL Multiphysics Installation Guide.
To activate Plot While Solving, enter the command:
study.feature(<studysteptag>).set('plot', 'on')
where study is a link to a valid study node and <studysteptag> is a string that refers to the study step.
Specify the plot group to plot by setting the plot group tag:
study.feature(<studysteptag>).set('plotgroup', <ptag>)
Only one plot group can be plotted during a computation. Use the probe feature instead if you need to monitor several variables.
To activate Plot While Solving for a probe plot, enter the command:
study.feature(<studysteptag>).set('probesel', seltype)
where seltype is the type of probe selection, that can be 'none', 'all', or 'manual'.
In case the probe selection is set to manual you have to specify the list of the probe variable to display. Enter the command:
study.feature(<studysteptag>).set('probes', <list>)
where <list> is a cell array containing the list of the probe to use.