Response from COMSOL support:
This is unfortunatley not possible in the current release. It will be included in the coming release, COMSOL Multiphysics 4.0, where a coupling variable, similar to the Integration Coupling Variable present in the current
release, can be defined that returns the *maximum* value instead of the *integrated* value.
The workaround in the current release is to use the MATLAB interface, where only a few scripting commands are necessary to be able to achieve this plot.
File > Client/Server/MATLAB > Connect To MATLAB
Once connected to MATLAB, select File > Export > FEM-structure as 'fem', which will create the variable
'fem' in the MATLAB workspace. This is the command-line representation of your model.
Now, use the command postmax to get the maximum value of a certain expression for all time-steps. If the
variable name for the temperature is T, use:
maxT = postmax(fem,'T','solnum','all');
The time-steps are present in fem.sol.tlist, so to plot the maximum temperature vs. the time, use
t = fem.sol.tlist;
plot(t,maxT)
This is unfortunatley not possible in the current release. It will be included in the coming release, COMSOL Multiphysics 4.0, where a coupling variable, similar to the Integration Coupling Variable present in the current
release, can be defined that returns the *maximum* value instead of the *integrated* value.
The workaround in the current release is to use the MATLAB interface, where only a few scripting commands are necessary to be able to achieve this plot.
File > Client/Server/MATLAB > Connect To MATLAB
Once connected to MATLAB, select File > Export > FEM-structure as 'fem', which will create the variable
'fem' in the MATLAB workspace. This is the command-line representation of your model.
Now, use the command postmax to get the maximum value of a certain expression for all time-steps. If the
variable name for the temperature is T, use:
maxT = postmax(fem,'T','solnum','all');
The time-steps are present in fem.sol.tlist, so to plot the maximum temperature vs. the time, use
t = fem.sol.tlist;
plot(t,maxT)