# COMSOL MULTIPHYSICS 5.2a RELEASE HIGHLIGHTS

COMSOL Multiphysics® version 5.2a includes a wide range of new and updated functionality to render and visualize your simulation results, including six new color tables to enhance postprocessing; new annotation capabilities for 1D plots and LaTeX equations; and table surface plots, which offer a new way to see model data. Browse all of the rendering and visualization updates included in COMSOL Multiphysics® version 5.2a below.

### Six New Color Tables for Visualization Plots

COMSOL Multiphysics® has expanded its range of visualization capabilities by introducing six new color tables, including:

1. Aurora Australis
2. Aurora Borealis
3. Heat Camera
4. Heat Camera Light
5. Jupiter Aurora Borealis
6. Twilight

A visualization that uses the new Twilight color table option, showing the change in layer thickness from the Electrocoating of a Car Door tutorial model.

A visualization that uses the new Twilight color table option, showing the change in layer thickness from the Electrocoating of a Car Door tutorial model.

A visualization that uses the new Twilight color table option, showing the change in layer thickness from the Electrocoating of a Car Door tutorial model.

A visualization that uses the new Jupiter Aurora Borealis color table option, showing the flow around droplets from the Inkjet Nozzle — Level Set Method tutorial model.

A visualization that uses the new Jupiter Aurora Borealis color table option, showing the flow around droplets from the Inkjet Nozzle — Level Set Method tutorial model.

A visualization that uses the new Jupiter Aurora Borealis color table option, showing the streamline flow around a car-like Ahmed body from the Airflow Over an Ahmed Body tutorial model. The plot also shows the logarithm of the pressure field using the new Aurora Borealis color table option.

A visualization that uses the new Jupiter Aurora Borealis color table option, showing the streamline flow around a car-like Ahmed body from the Airflow Over an Ahmed Body tutorial model. The plot also shows the logarithm of the pressure field using the new Aurora Borealis color table option.

A logarithm of the change in temperature in a phantom head subjected to a cell phone's microwave radiation from the Absorbed Radiation (SAR) in the Human Brain tutorial model, visualized using the new Heat Camera color table option.

A logarithm of the change in temperature in a phantom head subjected to a cell phone's microwave radiation from the Absorbed Radiation (SAR) in the Human Brain tutorial model, visualized using the new Heat Camera color table option.

### New Directivity Plot for Acoustics

The new Directivity plot type allows audio engineers to depict the spatial response of a loudspeaker as a function of both frequency and angle. The plot is important in the analysis of loudspeakers and other electroacoustic transducers. Representing the spatial response in this manner is very common in the loudspeaker industry, and measured data is often also represented in this same manner. The plot includes many formatting options to achieve maximal insight into the modeled data. Some of the key formatting features are:

• Normalization: The input sound pressure level data can be normalized either with respect to a specific polar angle, with respect to the maximal value (at each frequency), or with no normalization.
• Evaluation: The evaluation circle can be defined at any location in space and it is possible to define a reference direction that sets the 0-degree direction.
• Coloring and Style: Format the data as filled surfaces, lines, and add labels. It is also simple to switch the layout of the axis and have the frequency on either the x- or y-axis.

An example of a Directivity plot where the data is normalized with respect to 30 degrees, the frequency is on the x-axis, and labels have been added to the plot (left). The same data normalization has been applied at 0 degrees and the frequency is on the y-axis (right)

An example of a Directivity plot where the data is normalized with respect to 30 degrees, the frequency is on the x-axis, and labels have been added to the plot (left). The same data normalization has been applied at 0 degrees and the frequency is on the y-axis (right)

An example of a Directivity plot where the data is normalized with respect to 30 degrees, the frequency is on the x-axis, and labels have been added to the plot (left). The same data normalization has been applied at 0 degrees and the frequency is on the y-axis (right)

### LaTeX Formatting and Other Improvements to Titles and Annotations

You can now include annotations for 1D plots. This option is already available for 2D and 3D plots in earlier versions of COMSOL Multiphysics®.

In addition, the annotation functionality has been expanded and includes annotations in plot titles and annotations with background colors, frames, and LaTeX markup. Line breaks are now available by using the LaTeX markup option together with special character syntax: \\.

To create the annotation used in the image below, for example, use the text expression: $\sigma_{\textrm{max}}$ = eval(maxop1(solid.mises),MPa) MPa

A structural analysis, showing the location and value of the maximum von Mises effective stress. The annotation includes LaTeX markup with a background color and frame.

A structural analysis, showing the location and value of the maximum von Mises effective stress. The annotation includes LaTeX markup with a background color and frame.

### Filled Contour Legends

The Contour and Isosurface plot types now include an option for using a filled legend. This functionality is especially useful for filled contour plots.

Application Library path for an example using the Filled Contour Legends feature:

ACDC_Module/Capacitive_Devices/capacitor_dc

A filled contour plot from the Computing Capacitance tutorial model, with the filled legend to the right.

A filled contour plot from the Computing Capacitance tutorial model, with the filled legend to the right.

### VTK Export

The Data and Plot export features now support the export of unstructured VTK files (.vtu). This file format allows third-party programs to use this data for visualization.

Exporting data or a plot presents a list of file formats that now includes the Unstructured VTK File format option.

Exporting data or a plot presents a list of file formats that now includes the Unstructured VTK File format option.

### Multiple Expressions in Derived Values

The numerical evaluation features can now evaluate multiple expressions at once. This saves time for more complicated models, since you no longer need to add one Evaluation Feature node per expression.

### More Flexible Table Surface Plots

The Table Surface plot now supports discrete, or staircase-shaped, plots. Additionally, you can create a Table Surface plot from data that has been imported from a file using one of three formats: Filled table, Columns, or Cells. The Filled table option corresponds to the functionality of earlier versions. The new Columns option supports data on a column-oriented format. For example, an imported file corresponds to data saved on the format x,y,z,T, with x,y,z coordinates in the first three columns and a field variable such as temperature in the fourth column. The new Cells option can be used to import discrete data on a matrix format, such as resistance, capacitance, or inductance matrices.

A discrete Table Surface plot with a Height Expression based on imported data.

A discrete Table Surface plot with a Height Expression based on imported data.

### Material Smoothing

Many plot types have a Quality section where you can select a plot resolution, enforce continuity, and specify the use of derivative recovery. In COMSOL Multiphysics® version 5.2a, these settings have been expanded with several new options. For smoothing, you now have five choices:

1. None
2. Inside material domains
3. Inside geometry domains
4. Everywhere
5. Expression

The new Inside material domains option regards all domains with the same material as the same region with respect to smoothing, but keeps discontinuities for material interfaces. The Expression choice can be used to customize the connected region used for smoothing, which is applied within regions where the given expression is constant. A new Smoothing threshold option makes it possible to consider values that do not differ significantly from each other as having the same value with respect to smoothing. If two adjacent points have different values, then smoothing is performed only if the relative difference between their values is, at most, the given threshold value.

The new Inside material domains option for smoothing.

The new Inside material domains option for smoothing.

The new Threshold setting for smoothing.

The new Threshold setting for smoothing.

The new Expression option for smoothing.

The new Expression option for smoothing.

### Material Domain Variable

A new variable, material.domain, is available for use in expressions used for custom physics settings as well as in results. This material variable is an indicator variable with a constant integer value throughout domains that have the same material properties. Variables for material definitions on boundaries, edges, and at points are also available as material.boundary, material.edge, and material.point, respectively. The variable material.entity is available at all entity levels: domain, boundary, edge, and point, and inherits any discontinuity from the domain level down to lower dimensional entities.

The new indicator variable for materials.

The new indicator variable for materials.

### Use of Parameters for Results

A new Parameters node can now be added as a subnode to Results. These new types of parameters can be added, edited, and used as auxiliary variables in postprocessing and visualizations without having to recompute the model. For example, a new option for creating animations based on a Result parameter enables you to use such a parameter to animate the location of a slice plot, the isosurface levels, or the position of a cut plane data set.

Define parameters in the Parameters node under the Results node to animate the location of, for example, an Isosurface plot.

Define parameters in the Parameters node under the Results node to animate the location of, for example, an Isosurface plot.

Define parameters in the Parameters node under the Results node to animate the location of, for example, an Isosurface plot.

### Use of Global Expressions for Slice, Arrow, and Cut Plane Positions

You can now use globally defined expressions to specify coordinates for plots. For example, you can let the coordinates of a cut plane be determined by the location of the maximum of a field variable. This functionality is also available for the positioning of slices, arrows, cut lines, and more.

A contour plot in a cut plane positioned at the global maximum of the effective stress.

A contour plot in a cut plane positioned at the global maximum of the effective stress.