
You can call integration operators within the timeint operator as well. For example, you can plot: timeint(1,2,T) to plot the integral of the expression T from 1-2 seconds. Taking an integral via Results > Derived Values Time Integralsįor results evaluation only, use the timeint operator in results evaluation. If you do not want to use the results of the integral within your model, if you only want to evaluate integrals for results evaluation, then go to Results > Derived Values and add an integration feature, as shown in the screenshot below. If you add a probe after you have already computed the solution, you will need to click the Update Results button within the Probe settings. For time-dependent models probes will be plotted at all timesteps taken by the solver, by default. Each Probe defines a unique variable name that can be used anywhere else in the model. It is a little bit easier to set up, and the results of a Probe will automatically be plotted. If you only want to integrate a single quantity then the Probe option can be preferred to the Component Coupling. The integration component coupling and set of variables defined using it. If you add a component coupling after you have already computed the solution, you must Update Solution before the operator name will be available for results evaluation. Note that integrating 1 over a domain is equivalent to evaluating the volume of that domain, integrating 1 over a boundary gives the surface area, and integrating 1 along an edge gives the length. It can be used to define multiple different variables, as shown in the screenshot below. This feature adds an operator name that acts as a function and can be called anywhere else within the model.

The most general approach to taking integrals is to add a Component Coupling of type Integration to the Component > Definitions branch. This knowledgebase goes over all of these options. The COMSOL Multiphysics architecture allows you to evaluate integrals in both space and time in several different ways, either purely for results evaluation or to introduce feedback into your model.
