COMSOL ReleaseNotes
COMSOL ReleaseNotes
COMSOL ReleaseNotes
Release Notes
COMSOL Multiphysics Release Notes
© 1998–2015 COMSOL
Protected by U.S. Patents listed on www.comsol.com/patents, and U.S. Patents 7,519,518; 7,596,474;
7,623,991; 8,219,373; 8,457,932; 8,954,302; 9,098,106; and 9,146,652. Patents pending.
This Documentation and the Programs described herein are furnished under the COMSOL Software License
Agreement (www.comsol.com/comsol-license-agreement) and may be used or copied only under the terms
of the license agreement.
Support for implementation of the ODB++® Format was provided by Mentor Graphics Corporation
pursuant to the ODB++ Solutions Development Partnership General Terms and Conditions. ODB++ is a
trademark of Mentor Graphics Corporation.
COMSOL, COMSOL Multiphysics, Capture the Concept, COMSOL Desktop, LiveLink, and COMSOL
Server are either registered trademarks or trademarks of COMSOL AB. All other trademarks are the property
of their respective owners, and COMSOL AB and its subsidiaries and products are not affiliated with,
endorsed by, sponsored by, or supported by those trademark owners. For a list of such trademark owners,
see www.comsol.com/trademarks.
Version: COMSOL 5.2
Contact Information
Visit the Contact COMSOL page at www.comsol.com/contact to submit general
inquiries, contact Technical Support, or search for an address and phone number. You can
also visit the Worldwide Sales Offices page at www.comsol.com/contact/offices for
address and contact information.
If you need to contact Support, an online request form is located at the COMSOL Access
page at www.comsol.com/support/case. Other useful links include:
Release Notes
3
COMSOL Multiphysics
General New Functionality
IMPROVED INSTALLER
The COMSOL Installer now includes better support for installing and configuring the
license manager software.
4 | RELEASE NOTES
• Declarations can be used in arguments of command sequence commands.
COMSOL MULTIPHYSICS | 5
object and Study objects, while the other two are only available for the Model
object.
• A new formattedTime method converts a time in milliseconds to a string
representation.
• New utility method matrixSize() to compute the size of a 2D matrix.
• Vectorized versions of insert, append, and remove for 1D and 2D arrays have
been added to the application language.
• A new sleep method has been added that makes the caller sleep for a specified time.
• A new setWebPageSource(...) method allows changing the source of a Web Page
form object.
• New built-in functions getScreenHeight and getScreenWidth can be used for
retrieving the size of the primary screen (or of the browser window if Web Client is
used).
• New application language methods deleteFile and copyFile make it possible to
delete and copy files on the server.
• The fileOpen method is now available as a new built-in command in the command
sequence tree.
For details and a full list of methods and language elements, see the Introduction
to Application Builder.
PRELAUNCHING OF APPLICATIONS
To allow faster launching of applications, application processes are prelaunched on the
server. Additionally, a number of applications can be preloaded in these processes.
Typically the default settings work for most cases.
6 | RELEASE NOTES
ALLOWING RECONNECTING TO RUNNING APPLICATIONS
A new preference setting, Allow reconnecting to running applications, allows users to
reconnect to previously launched applications and come back where they left off.
Disconnecting and reconnecting is currently not possible while solving, for example.
You can also use the options -prefsdir, -forcegcc, -forcecomsolgcc, -np,
-tmpdir, -autosave, -recoverydir. -ipv6, -c, and -comsolinifile.
COMSOL MULTIPHYSICS | 7
New Geometry and Mesh Functionality
• The Selections of Resulting Entities sections in the geometry features now contain the
following:
- A Contribute to list to which you select the cumulative selection that the result of
this feature contributes to. The default is None. You can contribute to a
cumulative selection even if you do not create a selection.
- A New button to the right of the Contribute to list.
- A Resulting objects selection check box, cleared by default. When you select it, a
selection will be created for each applicable geometry entity level (object,
domain, boundary, edge, point) for use within this geometry sequence.
- A Show in physics list (enabled when the Resulting objects selection check box is
selected) with the following options: All levels, Domain selection, Boundary
selection, Edge selection, Point selection, and Off (but only applicable options
appear). If you choose something other than Off, corresponding selections are
created for the finalized geometry and will be available in applicable settings in
the physics nodes and also for materials and meshes, for example. The default is
typically Domain selection to use the selection to define a material, material
property, or domain source, for example.
• If the feature is in a part, the Show in physics list is replaced with a Show in instances
list, and the created selections appear in the selection tables of Part Instance nodes.
• For Part Instance nodes, the output selection tables now include the following
columns:
- Keep, containing a check box, cleared by default. When this is selected, the
selection is kept for use within the geometry sequence.
- Physics or Instances, containing a check box that is selected by default. This check
box is enabled when the Keep check box is selected. Clear it if you do not want
the selection to appear when defining physics, materials, and so on.
8 | RELEASE NOTES
NEW GEOMETRY FUNCTIONALITY
• New Partition Domain operation in 2D and 3D for partitioning of domains by
implicitly defined partitioning curves or surfaces.
• Improved snapping in 2D with separate Snap to Grid and Snap to Geometry
buttons in the Geometry toolbar.
Additionally, a new option, Detect adjacent fillet faces, has been added to the settings
for the Import (when using the Detect faces as the Boundary partitioning setting) and
Detect Faces nodes in 3D mesh import sequences. Detecting fillets in imported
meshes should help to create a natural partitioning and make it easier to create a
geometry from the imported mesh.
COMSOL MULTIPHYSICS | 9
New Operators, Functions, and Definitions
• The molar or molarity unit M = mol/l is now available as [M]. SI prefixes are
supported.
• New operators: fsensimag, for evaluating a functional sensitivity with respect to the
imaginary part of a control variable, and residual (see the section below).
10 | RELEASE NOTES
• The Clear Solutions operation to clear all solutions in the study is now available
from the main Study node’s context menu.
• The identifiers for solution nodes in the solver sequence in the Model Builder tree
now appear in the Model Builder tree. The corresponding identifiers also appear for
Solution data sets under Results, to make visible which data sets contain a specific
solution without opening any Settings windows.
• If you enable the Advanced Study Options, a Distribute parametric sweep check box
in now available in the Settings windows for the study steps, so that you can activate
a distributed parametric sweep without first creating a Cluster Computing study.
COMSOL MULTIPHYSICS | 11
complex-valued S-parameters (reflection coefficients) to input impedances or
admittances of antennas, transmission lines, and other network components.
• In the Acoustics Module, octave band plots are now available as Octave Band Plot
nodes in 1D plot groups.
• You can now suppress small real or imaginary parts in the output of results data, for
example, on the General page in the Preferences dialog box.
• In data and plot export, you can now concatenate several data sets by appending
data to the same file. Under Advanced, select Append from the If the file exists list to
concatenate a data set to an existing data file.
• In data export, there is also a Recover list, where you can add numerical recovery
within domains or everywhere for the data export.
• It is now possible to add the unit to the legends in 1D Global plots.
• Using settings under Floquet periodicity in the Advanced section, you can now
incorporate phase changes from Floquet periodicity in Array data sets.
• For easier navigation in reports, internal cross references are now hyperlinks.
Hyperlinking can be disabled for printing.
1 Open and then save the COMSOL 3.5a mode using any of the COMSOL versions
4.0–4.4.
2 Open the model saved in versions 4.0–4.4 in COMSOL 5.2.
12 | RELEASE NOTES
Backward Compatibility with Version 5.1
CREATING SELECTIONS
In version 5.2, the selresult property replaces the createselection property.
createselection is still supported for backward compatibility.
MESH PARTS
For backward compatibility regarding STL/VRML import, and for COMSOL API
compatibility, the old user interface for mesh import (with a specified file name and
import properties) and the corresponding properties are available in the COMSOL
API but not in the COMSOL Desktop, unless it is the active option. This means that
the old user interface can only be reached if the filename is set in combination with the
STL import type (the API type stlvrml), which cannot be done from the new user
interface.
MESH IMPORT
The method used to automatically partition the boundary of imported meshes in 3D
has been improved. If you have an existing model, you can work with it without being
affected. However, if you click the Import button of the Import feature in the meshing
COMSOL MULTIPHYSICS | 13
sequence, the file is read again and the new partitioning method is used. The exception
is if the Import feature had Boundary partitioning set to Manual. In this case, the
modified parameter values are preserved under the Feature detection setting, which
uses the same algorithm as in version 5.0.
COMSOL tries to map the old selection on boundaries to the new boundaries, but it
is not always possible to do accurately when new faces have appeared or old faces have
disappeared. You may have to manually review and update boundary, edge, and point
selections after reimporting the mesh.
If you have a Java® or MATLAB® program that imports meshes, the number of
geometric entities may have changed compared to older versions.
SECURITY SETTINGS
In version 5.2, the Allow external process and libraries check box on the Security page
in the Preferences dialog box is cleared by default to not allow applications to start
external processes on the computer. The default setting in 5.0 was set to allow such
external processes.
MESH IMPORT
An edge in an imported mesh that has a common start and end vertex, or that lacks
start and end vertices, is now split into two edges with distinct start and end vertices.
14 | RELEASE NOTES
For meshes where this happens, the numbering of all geometric entities may change
when the mesh is rebuilt.
For MPH-files created in earlier versions, selections are automatically updated with the
new entity numbers.
TR A N S P O R T O F D I L U T E D S P E C I E S
®
Running Java -files from previous versions may fail due to the new default name for
the Transport of Diluted Species interface. This can be avoided by adding a command
that specifies the identifier in accordance with the name of the interface. For example,
when creating an interface using the old name (chds):
model.physics("chds").identifier("chds");
The Java® API syntax for creating and accessing vectors and tensors in the Transport
of Diluted Species interface has changed as well as the syntax for setting physics
properties. This does not affect MPH-files. See the backward compatibility notes for
the Chemical Reaction Engineering Module for additional information that also
applies to the Transport of Diluted Species interface.
DOCUMENTATION
The COMSOL Multiphysics Programming Reference Manual replaces the
COMSOL API for use with Java ® Reference Manual.
COMSOL MULTIPHYSICS | 15
CHANGES TO PARAMETRIC SWEEPS
Old models that use stationary parametric sweeps are loaded with the Reuse solution
for previous step list set to Yes. The Run continuation for list is set to the parameter used,
unless the continuation algorithm would not have been used for this model in previous
versions (for example, if multiple parameters are used or if the parameter list is not
monotonous).
Laminar inflow and laminar outflow are available in the fluid flow physics interfaces in
the following modules:
16 | RELEASE NOTES
VE L O C I T Y / A C C E L E R A T I O N I N T E G R A T I O N V A R I A B L E
For the Solid Mechanics interface (and all related multiphysics interfaces) and the
Truss interface, a help variable u0 (velocity integration variable) is used in Prescribed
Velocity and Prescribed Acceleration features for Time Dependent study types. This
variable computes the displacement for each point where the condition is prescribed.
It is changed to use the full feature scope in order to avoid collisions in cases where
several such features exist within the same model component. As a result, when
opening and running an old model that uses such features together with a segregated
solver, an error message appears, stating that not all dependent variables occur in at
least one of the segregated solver steps. The relevant action is to manually add the
velocity integration variable to the segregated step containing the corresponding
displacement field. Alternatively, you can regenerate any affected solver sequence.
This change can cause the solvers to take more nonlinear steps for stationary problems
and more time steps for time-dependent problems, and it may also lead to convergence
problems. For such cases, use the No method to obtain the old behavior. However,
doing so can hide numerical problems and potentially lead to large numerical errors.
TE R M I N A T I O N C R I T E R I O N F O R S T A T I O N A R Y S O L VE R S
The default termination criterion for stationary solvers has changed. In 4.3a the
settings corresponded to Solution; now the default is Solution or residual. This change
in default termination criterion might affect models created in earlier versions of
COMSOL if you regenerate the solver sequence in 5.2.
COMSOL MULTIPHYSICS | 17
BACKWARD EULER INITIALIZATION TIME STEP
A new setting in the Advanced section of the settings window for the Time-Dependent
Solver, called Fraction of initial step for Backward Euler, provides an option for entering
a dimensionless quantity that determines the size of the time step for the backward
Euler method (in terms of the initial step). This value can improve the accuracy of the
initialization step but can also affect the start-up of some models. The default value is
0.001 (this differs from earlier versions, which used a value of 1). When opening
models created in version 4.3a or earlier, the value for this fraction is set to 1 to
maintain compatibility with those versions.
N E W TE R M I N O L O G Y F O R C O N S T R A I N T TY P E S
The following constraint types have new names in version 5.2:
• Bidirectional, symmetric is now Apply reaction terms on: All physics (symmetric).
• Unidirectional is now Apply reaction terms on: Individual dependent variables.
18 | RELEASE NOTES
WE A K CO NS TRA IN TS UPDATE F OR TH E L AMINA R FL OW INT ERF ACE
The weak constraint formulations for the following boundary conditions have been
updated:
• Symmetry
• The Slip option in the Wall feature
These boundary conditions are now formulated using the same set of Lagrange
multipliers as all the other boundary conditions in the Laminar Flow interface. The
Lagrange multiplier un_lm has been removed.
Models saved in version 4.3 will include un_lm until the model is re-solved. In some
cases, occurrences of un_lm in the solver sequence must be replaced manually. This is
the case if un_lm was the only Lagrange multiplier component in a segregated group
or the only Lagrange multiplier component of a Vanka smoother. Alternatively, you
can generate a new automatic solver sequence. Models saved in versions earlier than
4.3 must either be re-solved in version 5.2 for postprocessing, or opened and re-saved
in version 4.3 before being opened in version 5.2.
COMSOL MULTIPHYSICS | 19
AC/DC Module
New Functionality in Version 5.2
TO U C H S C R E E N S I M U L A T O R
This application computes the capacitance matrix of a touchscreen in the presence of
a human finger phantom, where the position and orientation of the finger is controlled
via input parameters. Intended as a tool for early proof-of-concept in capacitive touch
20 | RELEASE NOTES
device development, the resulting capacitance matrix is evaluated as well as the electric
field norm.
MAGNETIC PROSPECTING
With this application, you can simulate the effect of a deposit of magnetic ore (such as
magnetite or hematite) on the geomagnetic field in the region. Users can import
heightmap images or Digital Elevation Model (DEM) files to define the orography of
the region and can download the geomagnetic field data for the specified location from
the Internet. The computation generates a plot of the magnetic anomaly on the
Earth’s surface and numerical data on the expected anomaly at specified measurement
locations in the region.
The Coil Geometry Analysis study step (formerly Coil Current Calculation) will now
solve for all the coils in the active interfaces. To solve only for specific coils (specified
using the CoilName property), set the SpecifyCoil property to 1.
The default solver sequence generated by the Coil Geometry Analysis is different in
version 5.1. Code that accesses specific solver features in the generated solver sequence
may need to be reviewed.
AC/DC MODULE | 21
OTHER COIL IMPROVEMENTS
Harmonic Perturbation subnodes under coil features (Single-Turn Coil, Multi-Turn
Coil) are now global features, so the call to the create method should use the
appropriate space dimension (-1):
model.physics("mf").feature("stcd1").create("hp1",
"CoilHarmonicPerturbation", -1);
Global features have no selections, so code that accesses the selection of the Harmonic
Perturbation features may need to be reviewed.
Some of the improvements in the 3D Multi-Turn Coil features may require a review
of existing code that uses the COMSOL API.
Subnodes required to set up the coil features are now added automatically. Existing
code that uses the coil features may need to be updated.
The parameters eCoil and length have been moved from the Multi-Turn Coil
features (boundary and domain) to the new subfeature UserDefinedCoilGeometry.
OTHER IMPROVEMENTS
New functionality introduced in version 5.1 is disabled by default when opening
models created in previous versions:
This functionality can be enabled using the appropriate inputs in the Settings window.
Refer to the documentation for the individual features for more details.
22 | RELEASE NOTES
Acoustics Module
New Functionality in Version 5.2
N O R M A L VE L O C I T Y A N D N O R M A L D I S P L A C E M E N T B O U N D A R Y
CONDITIONS IN PRESSURE ACOUSTICS
In the Pressure Acoustics interfaces, the normal acceleration boundary condition is
now supplemented by two new boundary conditions for prescribing a normal velocity
or a normal displacement. These conditions simplify the modeling procedure when
modeling sources in acoustics. The source in the Generic 711 Coupler—An Occluded
Ear-Canal Simulator application, for example, is defined via a normal displacement.
ACOUSTICS MODULE | 23
UPDATED INTENSITY VARIABLES IN ALL ACOUSTICS INTERFACES
The intensity variables have been updated in all acoustics interfaces. The variables are
now consistent across physics and across study types. Intensity is defined in the
frequency domain (averaged values over one period) and the so-called instantaneous
intensity is defined in the time domain. The intensity variables in the Thermoacoustics
and Linearized Navier-Stokes interfaces now also include the viscous stress
contributions. The variables are available for postprocessing when clicking the Replace
Expression button.
24 | RELEASE NOTES
ONE-FAMILY HOUSE ACOUSTICS ANALYZER
The One-Family House Acoustics Analyzer is used to asses noise propagation in
coupled rooms inside a two story family house. The house consists of 10 rooms. The
application will determine the sound pressure level (SPL) distribution in the house
given a number of sources interactively placed in the house. The application illustrates
a classical room acoustics problem where engineers or architects want to determine the
noise environment in a system of coupled rooms like homes, office spaces, or
workshops. This is, for example, important when verifying that an acoustic
environment complies with noise and work regulations. An application, inspired by the
one presented here, will allow users to get on-site and test different noise source
scenarios, different wall insulation characteristics, and compare with live
measurements. All in all, such an application allows for a faster characterization and
solution. The application lets you place, remove, and define multiple acoustic sources
in different rooms of the house in order to determine the resulting sound pressure level
distribution. The acoustics are modeled using the Acoustic Diffusion Equation physics
interface, which is fast and efficient at determining SPL distributions.
ACOUSTICS MODULE | 25
coupled acoustic and elastic waves in any porous substance (Biot’s theory) is used to
describe the water-sediment system. The application is based on the Acoustic
Reflections Off a Water-Sediment Interface model located in the Underwater
Acoustics folder.
26 | RELEASE NOTES
model.sol("sol1").feature("s1").feature("se1").feature("ss1").
set("segvar", new String[]{"comp1_p", "comp1_u", "comp1_T",
"comp1_ta_lm_slip"});
• The Waveguide end impedance option has been removed from 2D, 1D
axisymmetric, and 1D as it had no physical meaning in these space dimensions.
ACOUSTICS MODULE | 27
Batteries & Fuel Cells Module
New Functionality in Version 5.2
The change may cause Java API backward compatibility issues with regards to slightly
different results or issues with the convergence of certain iterative solvers.
C Y C L I C VO L T A M M E T R Y N O W I N C O R P O R A T E S E X P L I C I T E V E N T S A T T H E
VERTEX POTENTIALS
By the use of explicit events at the vertex potentials the accuracy of cyclic voltammetry
in the Electroanalysis interface has been improved. Old models will open with the
settings turned off. To turn them on, you need to enable Show Advance Physics Options
in the Model Builder window and click the corresponding check box under Advanced
Settings in the Electrode Surface node.
28 | RELEASE NOTES
The change may cause Java API backward compatibility issues with regards to slightly
different results.
Default Nyquist plots are also added by default when using these nodes.
Note that old models will not be affected by the change. You need to remove and add
the electrolyte material to your model again in order to apply new material data.
The change may have implications on the Java API backward compatibility since the
Source or Destination may now have to be explicitly specified.
E X T E N D E D P HY S I C S I N T E R F A C E S U P P O R T F O R T H E TE M P E R A T U RE
COUPLING MULTIPHYSICS NODE
The Multiphysics Temperature Coupling node now supports Darcy’s Law; Transport
of Concentrated Species; Primary Current Distribution; Secondary Current
The change may have implications on the Java API backward compatibility since the
Destination may now have to be explicitly specified.
TR A N S P O R T O F C O N C E N T R A T E D S P E C I E S I N T E R F A C E
See Chemical Reaction Engineering Module.
30 | RELEASE NOTES
C AD I m po r t M od u l e, D esi gn Mod u l e,
and LiveLink Products for CAD
New Functionality in the CAD Import Module, Design Module, and
LiveLink Products for CAD in Version 5.2
The CAD file import functionality included with these products has been extended to
support new versions for some of the supported file formats (see under Read from File,
CAD, on www.comsol.com/products/specifications/cad).
B A C K W A R D C O M P A T I B I L I T Y W I T H VE R S I O N 5 . 0
The default value for the keepfree property of the LiveLinkSolidEdge function is
now set to on. Previously the default was set to off.
CAD IMPORT MODULE, DESIGN MODULE, AND LIVELINK PRODUCTS FOR CAD | 31
B A C K W A RD C O M P A T I B I L I T Y W I T H VE R S I O N 5 . 0
The default value for the keepfree property of the LiveLinkSOLIDWORKS function
is now set to on. Previously the default was set to off.
32 | RELEASE NOTES
CFD Module
New Functionality in Version 5.2
T H R E E - P H A S E F L O W, P H A S E F I E L D I N T E R F A C E
The new Three-Phase Flow, Phase Field interface can be used to model the flow and
interaction of three different, immiscible fluids when the exact positions of the
interfaces separating the fluids are of interest, also known as separated flow with surface
tracking. The fluid-fluid interfaces are tracked using a ternary phase field formulation
that accounts for differences in the fluids’ densities and viscosities, and the formulation
includes the effects of surface tension. The phase-field method can handle moving
contact lines on no-slip boundaries. The movement of the fluid-fluid interfaces is
determined by the minimization of free energy.
TE R N A R Y P H A S E F I E L D
The corresponding Ternary Phase Field interface, used to track moving interfaces
between three immiscible phases in the CFD Module and the Microfluidics Module,
is also found as a standalone Mathematics interface.
R O T A T I N G M A C H I N E R Y F L U I D F L O W I N T E R F A C E S : TU R B U L E N T F L O W,
A L G E B R A I C Y P L U S A N D TU R B U L E N T F L O W, L - V E L
Two new physics interfaces have been added in the Rotating Machinery Fluid Flow
branch: the Turbulent Flow, Algebraic yPlus interface and the Turbulent Flow,
L-VEL interface. For these algebraic turbulence models, the turbulent viscosity is
determined using two different extensions of the logarithmic wall law, and the local
Reynolds number based on the distance to the nearest wall. Algebraic turbulence
models are computationally cheaper and more robust but generally less accurate than
transport equation turbulence models, such as the k-ε and k-ω turbulence models.
CFD MODULE | 33
New Applications in Version 5.2
INKJET
The Inkjet application demonstrates how to model the flow of a droplet produced by
an inkjet nozzle, such as one in a printer. An ink droplet is ejected from the nozzle and
travels through air until it hits the target. The fluid flow is incompressible, and the
movement of the interface between the droplet and the ambient air is modeled using
the level-set method. The user can specify liquid properties in designated input fields,
and the geometry—including nozzle, reservoir, compartment, and outlet—is fully
parameterized. In addition, the user can control the injection pulse profile by varying
the pulse interval and smoothing time.
WA T E R TRE A T M E N T B A S I N
This application runs simulations of a water treatment basin used for the mixing and
reacting of an added chemical species (for example, chlorine). The supported
geometries are rectangular basins with baffles attached to the sides of the basin in
vertical or horizontal configurations, and the inlet and outlet channels can have a
circular or rectangular cross section. The graphical results show the flow field and the
concentration field of the added chemical species given a first-order chemical reaction,
and the numerical results give the space time, half life, and pressure drop.
34 | RELEASE NOTES
TR A N S P O R T O F C O N C E N T R A T E D S P E C I E S
See Chemical Reaction Engineering Module.
INLET FEATURE
The old inlet features still exist, but have been excluded from the physics context
menu. Old models retain old Inlet features, but adding a new Inlet feature comes with
the new functionality. Old Java files create Inlet features of the old types. The Normal
stress condition can still be prescribed on inlets using an Open Boundary or a
Boundary Stress feature.
N E W N A M E S F O R M A S S TR A N S P O R T I N T E R F A C E S
Running Model Java-files from previous versions may fail due to the new default name
in the Transport of Diluted Species and Transport of Concentrated Species interfaces.
This can be avoided by adding a command that specifies the identifier in accordance
with the Name of the interface. For example, when creating a Transport of
Concentrated Species interface using the old name (chcs):
model.physics("chcs").identifier("chcs");
CFD MODULE | 35
Backward Compatibility with Version 4.3b
B U B B L E - I N D U C E D TU R B U L E N C E I N B U B B L Y F L OW
Equation terms accounting for bubble-induced turbulence in the Turbulent Bubbly
Flow interface are now added correctly. As a result, models with Turbulent Bubbly
Flow now show higher levels of turbulence.
36 | RELEASE NOTES
Backward Compatibility with Version 4.3
FLUID-STRUCTURE INTERACTION
The Fluid-Structure Interaction (FSI) multiphysics interface has been updated. The
separate vWall field is no longer required and has been removed. FSI models from 4.3
and earlier versions that include Time Dependent study steps will be affected in the
following ways:
• Model files for Java will fail. Any reference to the vWall field must be removed.
• Models older than 4.3 (that is, 4.2a and older) must clear their time-dependent
solutions when opened in 5.2. An alternative procedure is to:
- Open the model in version 4.3.
FSI models with only stationary study steps will not be affected. Note that vWall will
still be available as a variable. Hence, references to fsi.vWall made in, for example,
another physics still work.
CFD MODULE | 37
Laminar Flow and Creeping Flow
• Symmetry
• The Slip boundary condition in the Wall feature
Rotating Machinery
• Symmetry
• The Slip boundary condition in the Wall feature
• The Wall functions boundary condition in the Wall feature (turbulent flow only)
• The Moving wall (wall functions) boundary condition in the Wall feature (turbulent
flow only)
• Rotating Wall (turbulent flow only)
Bubbly Flow
• Symmetry
• The Slip boundary condition for the liquid phase in the Wall feature
• The Wall functions boundary condition for the liquid phase in the Wall feature
(turbulent flow only)
Mixture Model
• Symmetry
• The Slip boundary condition for the mixture in the Wall feature
• The Wall functions boundary condition for the mixture in the Wall feature
(turbulent flow only)
38 | RELEASE NOTES
Brinkman Equations and Free and Porous Media Flow
• Symmetry
• The Slip boundary condition in the Wall feature
CFD MODULE | 39
These boundary conditions are now formulated using the same set of Lagrange
multipliers as all the other boundary conditions for the dependent velocity variables.
The previously used Lagrange multiplier un_lm has been removed.
When you open models saved in version 4.3, they include un_lm until the model is
re-solved. In some cases, occurrences of un_lm in the solver sequence must be replaced
manually. This is the case if un_lm was the only Lagrange multiplier component in a
segregated group or the only Lagrange multiplier component of a Vanka smoother.
Alternatively, you can generate a new automatic solver sequence. Models saved in
versions prior to version 4.3 must either be re-solved in version 5.0 for postprocessing,
or opened and re-saved in version 4.3 before being opened in version 5.0.
Weak constraints for the Interior Wall feature are no longer available.
R E V I S I O N O F T H E TU R B U L E N C E M O D E L S
The formulations of some variables in the turbulence models have been revised in
order to improve accuracy. Models using a turbulence model can display a different
convergence behavior in version 5.2 than in version 4.3 and the results can differ
slightly between the versions.
40 | RELEASE NOTES
Chemical Reaction Engineering
Module
New Functionality in Version 5.2
I M P R O V E D E Q U I L I B R I U M R E A C T I O N F U N C T I O N A L I T Y, R E A C T I O N
ENGINEERING INTERFACE
For equilibrium reactions, the Suppress negative concentrations check box has been
introduced to aid the computation of equilibrium systems. A selected check box
ensures that no negative values of concentrations are accepted as solutions to the
equilibrium condition.
The change may have implications on the Java API backward compatibility because the
Source or Destination may now have to be explicitly specified.
E X T E N D E D P H Y S I C S I N T E R F A C E S U P P O R T F O R T H E TE M P E R A T U RE
COUPLING MULTIPHYSICS NODE
The Multiphysics Temperature Coupling node now supports Darcy’s Law, Transport
of Concentrated Species, and the Nernst-Planck interfaces as Destination.
The change may have implications on the Java API backward compatibility because the
Destination may now have to be explicitly specified.
42 | RELEASE NOTES
Backward Compatibility with Version 5.0 and Earlier
Change this to
Version 5.2:
model.physics("re").feature("rch1").set("formula", "A+B(s)=>C+D(ads)");
model.physics("re").feature("spec1").set("specName", "As(ads)");
model.physics("chem").feature("rch1").set("formula", "A+B(s)=>C+D(ads)");
model.physics("chem").feature("spec1").set("specName", "As(ads)");
TR A N S P O R T O F C O N C E N T R A T E D S P E C I E S I N T E R F A C E
In version 5.1, the spatial direction indicator string (x, xy and so on) has been moved
to the end of the variable name. This applies to all vector and tensor variables generated
by the interface.
to (5.2)
and the components of the diffusion tensor, defined by the Fick’s Law diffusion model
have been changed from (5.0 and earlier):
to (5.2)
44 | RELEASE NOTES
SURFACE REACTIONS INTERFACE
The Java API syntax for setting the diffusion tensor of surface species, the molar mass
and density of the bulk species, and initial values have been changed in the Surface
Reactions interface.
The surface species name needs to be included in the first argument of the set method.
In order to run Java files from previous versions, apply the syntax changes as in the
example below:
The bulk species name needs to be included in the first argument of the setIndex
method. Apply the Java API syntax changes as in the example below:
model.physics("sr").feature("sp1").set("rho_0", "rhocb1");
model.physics("sr").feature("sp1").set("rho_1", "rhocb2");
46 | RELEASE NOTES
Corrosion Module
New Functionality in Version 5.2
The change may cause Java API backward compatibility issues with regards to slightly
different results or issues with the convergence of certain iterative solvers.
C Y C L I C VO L T A M M E T R Y N OW I N C O R P O R A T E S E X P L I C I T E VE N T S A T T H E
VER TEX POTENTIALS
By the use of explicit events at the vertex potentials the accuracy of cyclic voltammetry
in the Electroanalysis interface has been improved. Old models will open with the
settings turned off. To turn them on, you need to enable Show Advance Physics Options
in the Model Builder window and click the corresponding check box under Advanced
Settings in the Electrode Surface node.
CORROSION MODULE | 47
The change may cause Java API backward compatibility issues with regards to slightly
different results.
Default Nyquist plots are also added by default when using these nodes.
T H I N I N S U L A T I N G L A Y E R I N T H E P R I M A R Y, S E C O N D A R Y, A N D TE R T I A R Y
CURRENT DISTRIBUTION INTERFACES
The Thin Insulating Layer node can be used to model a thin insulating sheet, located
on an interior boundary in an electrolyte domain. The node can be used as an
alternative to drawing the actual insulating domain in the model geometry, which may
significantly reduce meshing time, especially in 3D models. Thin insulating sheets are
commonly inserted in the electrolyte in various types of electrochemical cells. For
example, they can be used for optimizing the current distribution in a corrosion
protection application or for optimizing the local deposition rate in a deposition bath.
You specify the reaction rates in the Stoichiometry section in the Electrode Reaction
subnodes.
48 | RELEASE NOTES
REDESIGNED CORROSION, DEFORMED GEOMETRY INTERFACES
The Corrosion, Deformed Geometry interfaces have been redesigned as predefined
multiphysics interfaces. Upon choosing a Corrosion, Deformed Geometry interface in
the Select Physics menu, the corresponding Current Distribution interface and a
Deformed Geometry interface are added to the model, together with a
Non-Deforming Boundary and a Deforming Electrode Surface Multiphysics node.
The automatically added Deforming Electrode Surface Multiphysics node is used to
couple the dissolution/deposition rate of an Electrode Surface node (see the
Dissolving-Depositing Species Section above) in the Current Distribution interface to
the boundary velocity in the Deformed Geometry interface.
In addition, the moving boundary smoothing in 3D now also acts on the intersecting
edges between deforming and non-deforming boundaries.
Models created prior to 5.2 using a Corrosion interface will not be affected by the
change.
The change may have implications on the Java API backward compatibility because the
Source or Destination may now have to be explicitly specified.
E X T E N D E D P HY S I C S I N T E R F A C E S U P P O R T F O R T H E TE M P E R A T U RE
COUPLING MULTIPHYSICS NODE
The Temperature Coupling multiphysics node now supports Darcy’s Law; Transport
of Concentrated Species; Primary Current Distribution; Secondary Current
Distribution; and the Tertiary Current Distribution, Nernst-Planck interfaces as
Destination.
The change may have implications on the Java API backward compatibility because the
Destination may now have to be explicitly specified.
CORROSION MODULE | 49
New and Updated Applications in Version 5.2
50 | RELEASE NOTES
ECAD Import Module
New Functionality in Version 5.2
• The ECAD Import Module now generates selections for imported layers to enable
a more efficient simulation setup. When importing, for example, ODB++ archives
and GDS-II files, the selections will have easily recognizable names that are
generated from the layer names. In the Import Settings window, you can rename
the layers or choose to keep the names found in the file.
• The length unit of a selected ECAD file is now displayed, and a new check box either
enables or disables the update of the geometry sequence length unit to the detected
unit in the file.
• For GDS import, arc recognition is improved to work when interior boundaries are
deleted even when the arc segments are originally not located on the same polygon.
The change may cause Java API backward compatibility issues with regards to slightly
different results or issues with the convergence of certain iterative solvers.
C Y C L I C VO L T A M M E T R Y N O W I N C O R P O R A T E S E X P L I C I T E V E N T S A T T H E
VERTEX POTENTIALS
By the use of explicit events at the vertex potentials the accuracy of cyclic voltammetry
in the Electroanalysis interface has been improved. Old models will open with the
settings turned off. To turn them on, you need to enable Show Advance Physics Options
in the Model Builder window and click the corresponding check box under Advanced
Settings in the Electrode Surface node.
52 | RELEASE NOTES
The change may cause Java API backward compatibility issues with regards to slightly
different results.
Default Nyquist plots are also added by default when using these nodes.
The change may have implications on the Java API backward compatibility because the
Source or Destination may now have to be explicitly specified.
E X T E N D E D P HY S I C S I N T E R F A C E S U P P O R T F O R T H E TE M P E R A T U RE
COUPLING MULTIPHYSICS NODE
The Temperature Coupling multiphysics node now supports Darcy’s Law; Transport
of Concentrated Species; Primary Current Distribution; Secondary Current
Distribution; and the Tertiary Current Distribution, Nernst-Planck interfaces as
Destination.
The change may have implications on the Java API backward compatibility because the
Destination may now have to be explicitly specified.
ELECTROCHEMISTRY MODULE | 53
New Applications in Version 5.2
54 | RELEASE NOTES
E le c t r o de po s i t i on Mod u l e
New Functionality in Version 5.2
The change may cause Java API backward compatibility issues with regards to slightly
different results or issues with the convergence of certain iterative solvers.
C Y C L I C VO L T A M M E T R Y N OW I N C O R P O R A T E S E X P L I C I T E VE N T S A T T H E
VER TEX POTENTIALS
By the use of explicit events at the vertex potentials the accuracy of cyclic voltammetry
in the Electroanalysis interface has been improved. Old models will open with the
settings turned off. To turn them on, you need to enable Show Advance Physics Options
in the Model Builder window and click the corresponding check box under Advanced
Settings in the Electrode Surface node.
ELECTRODEPOSITION MODULE | 55
The change may cause Java API backward compatibility issues with regards to slightly
different results.
Default Nyquist plots are also added by default when using these nodes.
T H I N I N S U L A T I N G L A Y E R I N T H E P R I M A R Y, S E C O N D A R Y, A N D TE R T I A R Y
CURRENT DISTRIBUTION INTERFACES
The Thin Insulating Layer node can be used to model a thin insulating sheet, located
on an interior boundary in an electrolyte domain. The node can be used as an
alternative to drawing the actual insulating domain in the model geometry, which may
significantly reduce meshing time, especially in 3D models. Thin insulating sheets are
commonly inserted in the electrolyte in various types of electrochemical cells. For
example, they can be used for optimizing the current distribution in a corrosion
protection application or for optimizing the local deposition rate in a deposition bath.
You specify the reaction rates in the Stoichiometry section in the Electrode Reaction
subnodes.
56 | RELEASE NOTES
REDESIGNED ELECTRODEPOSITION, DEFORMED GEOMETRY INTERFACES
The Electrodeposition, Deformed Geometry interfaces have been redesigned as
predefined multiphysics interfaces. Upon choosing an Electrodeposition, Deformed
Geometry interface in the Select Physics menu, the corresponding Current
Distribution interface and a Deformed Geometry interface are added to the model,
together with a Non-Deforming Boundary and a Deforming Electrode Surface
Multiphysics node. The automatically added Deforming Electrode Surface
Multiphysics node is used to couple the dissolution/deposition rate of an Electrode
Surface node (see the Dissolving-Depositing Species Section above) in the Current
Distribution interface to the boundary velocity in the Deformed Geometry interface.
In addition, the moving boundary smoothing in 3D now also acts on the intersecting
edges between deforming and non-deforming boundaries.
Models created prior to 5.2 using an Electrodeposition interface will not be affected
by the change.
The change may have implications on the Java API backward compatibility because the
Source or Destination may now have to be explicitly specified.
E X T E N D E D P HY S I C S I N T E R F A C E S U P P O R T F O R T H E TE M P E R A T U RE
COUPLING MULTIPHYSICS NODE
The Temperature Coupling multiphysics node now supports Darcy’s Law; Transport
of Concentrated Species; Primary Current Distribution; Secondary Current
Distribution; and the Tertiary Current Distribution, Nernst-Planck interfaces as
Destination.
The change may have implications on the Java API backward compatibility because the
Destination may now have to be explicitly specified.
ELECTRODEPOSITION MODULE | 57
UPDATED AND REVISED APPLICATIONS
• Updated the number of active species in the cu_electroless_deposition
application.
58 | RELEASE NOTES
Geomechanics Module
New Functionality in Version 5.2
GEOMECHANICS MODULE | 59
Heat Transfer Module
New and Improved Functionality in Version 5.2
TE M P E R A T U RE O N E X T E R I O R S I D E O F T H I N L AYE R S
The new External Temperature subfeature is available on external boundaries under the
feature Thin Layer, when the Layer type is set to Resistive or General. It is used to specify
the temperature on the exterior side of the layer.
TE M P E R A T U RE O N E D G E S O F T H I N F I L M S A N D F R A C T U R E S
New Temperature subfeatures are available under the features Thin Film and Fracture.
They are used to specify the temperature on a set of lines (geometrical edges in 3D
models or geometrical points in 2D and 2D axisymmetric models) that represent thin
boundaries of a thin film or a fracture.
New Line Heat Flux subfeatures are available under the features Thin Film and Fracture.
They are used to add a heat flux across boundaries of a thin film or a fracture. Their
settings provide different options for the definition of the flux: General inward heat flux,
Inward heat flux, and for 3D models, Overall heat transfer rate.
New Surface-to-Ambient Radiation subfeatures are available under the features Thin Film
and Fracture. They are used to add surface-to-ambient radiation on a set of lines
(geometrical edges in 3D models or geometrical points in 2D and 2D axisymmetric
models) that represent thin boundaries of a thin film or a fracture. Their settings
provide inputs for the Ambient temperature and the Surface emissivity, which are used
for the definition of the net inward heat flux.
60 | RELEASE NOTES
HEAT SOURCE IN THIN FILMS AND FRACTURES
New Heat Source subfeatures are available under the features Thin Film and Fracture.
They are used to add an internal heat source within a thin film or a fracture. Their
settings provide two options for the definition of the heat source: General Source and
Overall heat transfer rate.
A D D I T I O N A L C O R R E L A T I O N F O R H E A T TR A N S F E R C O E F F I C I E N T S
A convective heat transfer coefficient correlation has been added to the heat transfer
coefficients library. This correlation corresponds to external flow induced by natural
convection around a vertical thin cylinder. Such a heat transfer coefficient can be used
to reduce the simulation cost when the model configuration corresponds to one of the
predefined correlations. In that case, the flow computation and the heat convection in
the fluid are replaced by a heat flux boundary condition on the solid boundaries using
the corresponding predefined correlation.
MISCELLANEOUS
• The formulation of the Thermal dispersion subfeature contribution has been updated
to improve the convergence when the heat transfer and the flow equations are
solved together.
• The equations of Thin Layer and Thin Layered Shell features have been updated to
support fully anisotropic thermal conductivity.
• The Thin Layer feature with the General option—which defines the layer as an extra
dimension—is now compatible with moving frame deformations. When a Moving
Mesh interface or structural mechanics physics interface is active for example, the
material’s thermal conductivity and density properties are updated to account for
the deformation effects.
• The Thin Layered Shell feature available in the Heat Transfer in Thin Shells interface
has been updated in the same way, to be compatible with moving frame
deformations.
• The detection of moving frames in the heat transfer interfaces has been enhanced.
Unnecessary updates of the view factor have been removed for efficiency when the
physics interface responsible for a frame deformation is not solved. This
improvement also benefits the solver suggestions, leading to better computational
performances.
• In the Thin Layered Shell feature, the initialization of the shape function Txdim—the
extra dimension temperature variable—has been updated to match the
H E A T TR A N S F E R M O D U L E | 61
temperature’s initial value in the adjacent domain. For interior boundaries, Txdim
is initialized as the average of adjacent initial temperatures.
• The weak equation of the Fracture feature has been updated to use the fluid heat
capacity instead of the effective heat capacity in the convective term.
• The automatic substitution mechanism of the temperature T by the variable
representing the temperature on the appropriate side has been revised. This
mechanism is designed to compute the temperature at the appropriate location
when it is used to define material properties or black body radiative intensity. It is
now only active when the default settings are used. When a model input is defined
using the User defined option, no substitution is made. In this case the user should
call the appropriate variable name to use the temperature on a particular side. For
example, ht.Tu should be used to compute the temperature on the upside. See
Boundary Wall Temperature in the Heat Transfer Module User’s Guide to get
the definition of all temperature variables available on boundaries.
• The solver settings for the heat transfer models have been updated. SOR is used
instead of SOR Line as the presmoother in the multigrid solver for large models,
unless the model contains a Non-Isothermal Flow coupling node. A lower limit of
zero has been added for the temperature when a segregated solver is used and the
temperature is in kelvin.
• The default opacity properties of domains adjacent to boundaries where a
Surface-to-Surface Radiation interface is active have been updated. These domains are
set as transparent by default, and can be turned to opaque using the Opaque feature.
• The definition of the velocity residual in time-dependent study steps with the
Non-Isothermal Flow multiphysics coupling feature has been fixed to include the
time-dependent term.
FLASH METHOD
The flash method is one of the most widely used methods for measuring the thermal
diffusivity of a given sample material. It consists of delivering a heat pulse on one side
of a thin piece of material to be tested. The temperature elevation on the other side is
then monitored and contains all the information to recover the thermal diffusivity.
Knowing the density and heat capacity at constant pressure, the thermal conductivity
can finally be deduced. This experiment protocol is reproduced in a 2D axisymmetric
model with a time-dependent study computing the temperature elevation for various
operating conditions, sample dimensions, and Gaussian laser pulse profiles.
62 | RELEASE NOTES
FINNED PIPE
Finned pipes are used for coolers, heaters, and mainly in heat exchangers to increase
thermal performance. They come in different sizes and designs depending on the
application and requirements. This app calculates the thermal performance of a pipe
filled with water and cooled or heated by the surrounding air. The model makes use of
periodicity conditions to be able to compute only a small section of the pipe. Various
geometric configurations are available for the outer fins (disc-stacked blades, circular
grooves, helical blade, helical grooves, or none) and for the inner fins (none or straight
grooves). Other parameters such as the pipe dimensions and the air flow conditions can
also be set.
THERMOELECTRIC COOLER
Thermoelectric coolers are widely used for electronics cooling in different application
areas, ranging from consumer products to spacecraft. Due to this, countless
configurations exist. This app calculates the thermal performance of single-stage
thermoelectric coolers of different sizes and with different thermocouple materials for
different operating conditions. It outputs common performance plots that are used to
describe the thermoelectric cooler characteristics. The underlying 3D model uses the
equations for the thermoelectric effect for thermocouples and the heat conduction
equation for electrical conductors and ceramics.
The model couples heat transfer in solids with heat transfer in pipes. With the help of
the Events interface, the heater is turned off if the daily heat demand is achieved and is
turned on again after 24 hours.
The temperature at the pipe’s outlet can be controlled and compared to the minimum
temperature required in the heat exchanger specifications.
H E A T TR A N S F E R M O D U L E | 63
The names of heat capacity variables have changed in several features for consistency:
The names of thermal resistance and absolute thermal resistance variables have
changed in the Isothermal Domain Interface feature:
The name of the fluid viscosity variable has changed in the Local Thermal
Non-Equilibrium multiphysics coupling: ltne1.mu_f has become ltne1.mu.
OBSOLETE FEATURES
A number of features are now obsolete because they have been merged or replaced by
a more general one. However, when models from COMSOL 5.0 or before contain
these features, some of the obsolete features are visible in version 5.1 with a warning
sign notifying that the feature is now obsolete (see Table 1-1). Some features have
been completely removed (see Table 1-2). A model containing any of them can be
opened in 5.1, but the feature will be missing.
Updating the models is recommended. Use the new feature and remove the obsolete
one to make sure that the model will remain compatible with future versions of
COMSOL Multiphysics.
64 | RELEASE NOTES
The table below summarizes the changes:
TABLE 1-1: OBSOLETE FEATURES THAT ARE OBSOLETE BUT THAN CAN BE LOADED IN 5.1
Convective Heat Flux Heat Flux with the Convective heat flux option
selected
Surface-to-Ambient Radiation Diffuse Surface with Include surface-to-surface
radiation deselected
Surface-to-Surface Radiation Diffuse Surface with Include surface-to-surface
radiation selected
Highly Conductive Layer Thin Layer with Layer type set to Conductive
Thin Thermally Resistive Layer Thin Layer with Layer type set to Resistive
Note that it is not possible to add any of the obsolete features from the COMSOL
Desktop in version 5.1; only the new features are available.
O B S O L E T E PO S T P RO C E S S I N G VA R I A BL E S D E L E T E D I N 5 . 1
List of deleted postprocessing variables: ndflux_acc, ndflux_acc_u, ndflux_acc_d,
ntflux_acc, ntflux_acc_u, ntflux_acc_d, nteflux_acc, nteflux_acc_u,
nteflux_acc_d, qout, qout_u, qout_d, qin, qin_u, qin_d, qw, qw_u, and qw_d.
• Heat Flux (ht.hf1.Tvar), Line Heat flux, Point Heat flux, and Out of plane heat flux.
• Heat Source (ht.hs1.Tvar), Boundary heat source, Line heat source, and Point heat
source.
• Diffuse Surface (ht.ds1.Tvar).
H E A T TR A N S F E R M O D U L E | 65
The fully scoped variables Ptot, Pbtot, Pltot, and Pstot become P0, Pb, Pl, and Ps,
respectively, in the following features:
• Heat Flux
• Inflow Heat Flux
• Line Heat Flux
• Heat Source
• Boundary Heat Source
• Line Heat Source
• Line Heat Source (Thin Rod subfeature)
• Line Heat Source on Axis
• Layer Heat Source (Thin Layer subfeature)
• Qfric, QfricPow, and Qrate become Qb, Pb, and Qbpart, respectively
• Qfric0, Qrate0, Econtact0, hrad0, hgap0, and hconstr0 are removed and
migrated to existing variables Qb, Qbpart, Econtact, hrad, hgap, and hconstr,
respectively, in old models.
The Change Effective Thickness feature from the Heat Transfer in Thin Shells physics
interface merges htsh.de into the existing variable htsh.ds.
The Heat Transfer in Thin Shells physics interface also merges the property de and
variable htsh.de into existing property ds and variable htsh.ds. An API command
such as model.physics("htsh").prop("de").set("de", [...]) now does not
have any effect.
O U T - O F - P L A N E H E A T TR A N S F E R U P D A T E
The Out-of-plane heat transfer property, which was available in 2D and 1D
geometries, has been removed as of COMSOL Multiphysics 5.0. Now all geometries
are considered 3D geometries and thickness or area parameters are always available.
API Users
For the following features:
• Heat Source
• Heat Flux
66 | RELEASE NOTES
• Boundary Heat Source
• Layer Heat Source
• Inflow Heat Flux
With the Overall heat transfer rate option (previously named Total power or Total heat
flux), the thickness parameters (dz_entr and Ac_input) have been removed.
Compatibility with previous code is maintained for most of the cases. However, three
configurations require manual updates of the code:
• If you specified the thickness parameter twice (there were two instances of specifying
the parameter).
• If you specified first the thickness and in a second command the total power value.
• If you first specified the thickness and then activated the out-of-plane heat transfer
option.
For these 3 cases you need to rewrite this part of the Java code by doing the following.
For a heat source example (2D and 1D axisymmetric geometries):
Ptot_50 = Ptot_44_value*ht.d/dz_entr_44_value,
where Ptot_44_value is the total power value used in previous versions, Ptot_50 is
the total power value used since COMSOL Multiphysics 5.0, and dz_entr_44_value
is the value used in previous versions. In 1D geometries, the following update should
be performed: Ptot_50 = Ptot_44_value*ht.d/Ac_input_44_value ,
where Ac_input_44_value is the value used in previous versions.
Flux Variables
The flux variables are always given in W/m² (also for 2D or 1D geometries). To obtain
the corresponding flux variables in W/m on a boundary in 2D for example, the flux
variables have to be multiplied by the thickness ht.d.
H E A T TR A N S F E R M O D U L E | 67
All flux variables now have the following sign convention: positive heat flux
corresponds to heating, whereas negative heat flux corresponds to cooling. The
variables chflux and rflux may have opposite signs compared to previous versions
depending on the context where they are defined.
H E A T TR A N S F E R W I T H P H A S E C H A N G E N O W U S E S A VO L U M E T R I C
FORMULATION
The variables ht.thetai now represent volume fractions (they were mass fractions
before). This implies changes in the definition of density and heat capacity at constant
pressure close to the phase change interface. Far from the phase change interface the
density and heat capacity are unchanged.
Among the changes, the reference enthalpy, HRef, the value of which is defined up to
a constant, is now set to 0 J/kg at the reference temperature and pressure. This
changes the absolute values of the enthalpy and several variables based on it. In
particular, the value of the convective heat flux is changed. Even the sign may be
changed in some cases. However, the quantity of interest, the net convective heat flux,
is identical because the shift induced by the change of HRef applies for the enthalpy
definition at the inlet as well as at the outlet.
68 | RELEASE NOTES
Backward Compatibility with Version 4.3a
H E A T TR A N S F E R I N P O RO U S M E D I A
Old models using the Porous feature will be supported in the COMSOL Multiphysics
interface. However, it is recommended to replace this feature with Heat Transfer in
Porous Media (see Obsolete Features and Variables). For a model using the API,
it will be necessary to update the model to use Heat Transfer in Porous Media.
SURFACE-TO-SURFACE RADIATION
The surface radiosity, previously named J, is now named ht.J by default (assuming
that ht is the physics interface tag).
Models created using versions 4.3 and 4.3a that contain surface-to-surface radiation
support the old syntax in multiphysics interfaces. It is, however, recommended that
you update the models to use the new syntax. Models created in a version before 4.2a
need to be opened in version 4.3 or 4.3a and resaved before being opened in 5.0 or a
later version.
For a model using the API, you must update the model to use the new syntax.
Models created in versions 4.3 and 4.3a that include radiation in participating media
support the old syntax in multiphysics interfaces. It is, however, recommended that
you update the models to use the new syntax. Models created in a version before 4.2a
need to be opened in version 4.3 or 4.3a and resaved before being reopened in 5.0 or
later version. In addition, for all versions, it may be necessary to regenerate the default
solver to get the correct solver settings.
The S2 quadrature in 2D has been replaced by the LSE symmetric quadrature. It has
been updated so that it coincides with the other quadratures. LSE symmetric
quadratures were already used for S4, S6, and S8 in 2D and for all 3D quadratures.
This quadrature update can result in significant changes in 2D models using the S2
quadrature. However, the theoretical error is not different and the 2D and 3D
implementations are now consistent.
H E A T TR A N S F E R M O D U L E | 69
Backward Compatibility with Version 4.3
Any model files for Java that modify the default model value require a manual update.
I M P ROVE D S T A B I L I Z A T I O N O F H E AT T R A N S F E R I N S O L I D S
The streamline diffusion stabilization for Heat Transfer in Solids and Biological
Tissue features has been improved. It now accounts for contributions from linear
source terms from the Heat Source, Out-of-Plane Convective Cooling, Out-of-Plane
Radiation, and Out-of-Plane Heat Flux features. This improves the robustness of the
convergence when these contributions are large. This change may modify the
convergence behavior of existing models.
• Heat flux
• Out-of-plane heat flux
• Convective cooling
• Out-of-plane convective cooling
• Boundary heat source
• Heat source
• Line heat source
• Point heat source
70 | RELEASE NOTES
• Edge/Point heat flux
• Electrochemical reaction heat flux
• Reaction heat flux
For example, in a Boundary Heat Source feature, ht.surf has been renamed into
ht.bhs1.surf (assuming that ht is the physics interface tag). In the Heat Flux
feature, the variable that was previously named ht.q0_hf1 is now ht.hf1.q0.
Any model files for Java that use the old variable names in expressions (such as
expressions used for plotting or data evaluation that include such old variable names)
need to be updated manually.
Due to these new default features, model files for Java can be simplified. In addition,
model files for Java that add the Fluid feature or the Opaque subfeature with the
default tag require a manual update to avoid duplicate tag conflicts.
• Laminar Flow
• Turbulent Flow, k-ε
• Turbulent Flow, Low Re k-ε
• Non-Isothermal Flow
• Conjugate Heat Transfer
Weak constraints for the Interior Wall feature are no longer available.
R EV I S I O N T O T H E TU R B U L E N C E M O D E L S
The formulations of some variables in the turbulence models have been revised in
order to improve accuracy. Simulations using a turbulence model can display a
different convergence behavior in versions 5.0 and later compared to version 4.3, and
the numerical result can differ slightly between the versions.
H E A T TR A N S F E R M O D U L E | 71
Obsolete Features and Variables
The following features have been removed:
When models created in older versions are loaded in version 5.2, these features are
removed from the model tree and the model can still be opened. The new
corresponding feature can be added to replace the removed one. In the particular case
of a feature defined as a default feature of an interface in the model, the model cannot
be opened.
The table below contains a list of variables that have been removed and replaced by
new corresponding expressions.
TABLE 1-3: REMOVED VARIABLES AND CORRESPONDING EXPRESSIONS
qin -qr_in
qout qr_out
qw -qr_net
ndflux_acc ndflux
ndflux_acc_u ndflux_u
ndflux_acc_d ndflux_d
ntflux_acc ntflux
ntflux_acc_u ntflux_u
ntflux_acc_d ntflux_d
nteflux_acc nteflux
nteflux_acc_u nteflux_u
nteflux_acc_d nteflux_d
72 | RELEASE NOTES
M E M S M o dule
New Functionality in Version 5.2
MEMS MODULE | 73
Microfluidics Module
New Functionality in Version 5.2
T H R E E - P H A S E F L O W, P H A S E F I E L D I N T E R F A C E
The new Three-Phase Flow, Phase Field interface can be used to model the flow and
interaction of three different, immiscible fluids when the exact positions of the
interfaces separating the fluids are of interest, also known as separated flow with surface
tracking. The fluid-fluid interfaces are tracked using a ternary phase field formulation
that accounts for differences in the fluids’ densities and viscosities, and the formulation
includes the effects of surface tension. The phase-field method can handle moving
contact lines on no-slip boundaries. The movement of the fluid-fluid interfaces is
determined by minimization of free energy.
TE R N A R Y P H A S E F I E L D
The corresponding Ternary Phase Field interface, used to track moving interfaces
between three immiscible phases in the CFD Module and the Microfluidics Module,
is also found as a standalone Mathematics interface.
INKJET
The Inkjet application demonstrates how to model the flow of a droplet produced by
an inkjet nozzle, such as one in a printer. An ink droplet is ejected from the nozzle and
travels through air until it hits the target. The fluid flow is incompressible, and the
movement of the interface between the droplet and the ambient air is modeled using
the level-set method. The user can specify liquid properties in designated input fields,
and the geometry—including nozzle, reservoir, compartment, and outlet—is fully
parameterized. In addition, the user can control the injection pulse profile by varying
the pulse interval and smoothing time.
74 | RELEASE NOTES
Backward Compatibility with Version 4.3
MOBILITY
In physics interfaces modeling migration (for example, Transport of Diluted Species),
anisotropic mobility is now supported, and the mobility can be set to follow the
Nernst-Einstein relation. The default setting when making new models has been
changed to the Nernst-Einstein relation. Model files for Java generated prior to 4.3b
using Migration will have to be modified manually to account for these changes.
MICROFLUIDICS MODULE | 75
Mixer Module
New Functionality in Version 5.2
R O T A T I N G M A C H I N E R Y F L U I D F L O W I N T E R F A C E S : TU R B U L E N T F L O W,
A L G E B R A I C Y P L U S A N D TU R B U L E N T F L O W, L - V E L
Two new physics interfaces have been added in the Rotating Machinery Fluid Flow
branch: the Turbulent Flow, Algebraic yPlus interface and the Turbulent Flow,
L-VEL interface. For these algebraic turbulence models, the turbulent viscosity is
determined using two different extensions of the logarithmic wall law, and the local
Reynolds number based on the distance to the nearest wall. Algebraic turbulence
models are computationally cheaper and more robust but generally less accurate than
transport equation turbulence models, such as the k-ε and k-ω turbulence models.
MIXER
This application is intended for the simulation of mixers equipped with axial or radial
impellers. With a given geometry, the application computes the efficiency of the
mixing process, where the measure of efficiency is the eddy diffusivity, from which the
time scale of mixing of chemical species can be estimated. The app user can select
eleven different types of impellers, each with its own distinctive combination of
features, such as blade cuts and folds. Three different types of vessel are available:
dished bottom, flat bottom, and cone bottom vessels, and the vessels can also be
equipped with baffles.
76 | RELEASE NOTES
M o le c ula r Flo w Mod u l e
New Application in Version 5.2
This application simulates the interaction of a proton beam with a charge exchange cell
containing neutral argon. User inputs include several geometric parameters for the gas
cell and vacuum chamber, the beam properties, and the properties of the charged
plates that are used to deflect the remaining ions. The app computes the efficiency of
the charge exchange cell, measured as the fraction of ions that are neutralized, and
records statistics about the different types of collisions that occur.
In addition, new variables exist for the total pressure, number density, and so on:
78 | RELEASE NOTES
Multibody Dynamics Module
New Functionality in Version 5.2
S T RE S S A N A L Y S I S O F A P RE S S U RE VE S S E L
In this app, a pressure vessel is analyzed in order check the allowed internal pressure.
Some yielding can be allowed, and the plasticity model can be orthotropic to
accommodate for effects introduced by plate rolling. Inputs include the main cylinder
dimensions of the vessel, the geometry of the head, computed automatically for a
chosen standard head type, design parameters, and material properties. The results give
the analytic yielded volume fraction and the graphical stress, plastic strain, yielded
volume and volume fraction, and local directions.
80 | RELEASE NOTES
Optimization Module
Backward Compatibility with Version 4.3a
The Optimization check box in the Stationary and Time Dependent study steps have
been removed. Instead, use the Optimization study step. The Optimization check box
does appear in models created in earlier versions of COMSOL where you have selected
that check box.
OPTIMIZATION MODULE | 81
Particle Tracing Module
New Functionality in Version 5.2
The Resonant Charge Exchange node is used when energetic ions undergo charge
exchange reactions with ambient neutral atoms of the same element or molecules of
the same substance. The Nonresonant Charge Exchange feature is used when the
ionized and neutral species are of different elements or substances. In both cases, after
the collision, it is possible to continue tracking the ionized species, the neutral species,
or both.
82 | RELEASE NOTES
PARTICLE COUNTERS
A Particle Counter feature is a domain or boundary feature that provides information
about particles arriving on a set of selected domains or surfaces from a release feature.
Such quantities include the number of particles transmitted, the transmission
probability, transmitted current, mass flow rate, and so on. This feature provides
convenient results expressions that can be used in the Filters node of the Particle
Trajectories plot, which allows only the particles that reach the particle counter
selection to be visualized.
PARTICLE-MATTER INTERACTIONS
You can now model the interaction of energetic ions with solid matter using the
dedicated Particle-Matter Interactions feature. This feature supports two subfeatures
for different types of interactions:
• Ionization loss is used to model the continuous loss of energy as ions interact with
electrons in the target material.
• Nuclear stopping is used to model the deflection of energetic ions by target nuclei.
P A R T I C L E TR A C I N G M O D U L E | 83
New Applications in Version 5.2
This application simulates the interaction of a proton beam with a charge exchange cell
containing neutral Argon. User inputs include several geometric parameters for the gas
cell and vacuum chamber, the beam properties, and the properties of the charged
plates that are used to deflect the remaining ions. The app computes the efficiency of
the charge exchange cell, measured as the fraction of ions that are neutralized, and
records statistics about the different types of collisions that occur.
This application computes the fluid velocity and pressure field in a static mixer and
then the trajectories of particles that are carried by the fluid. Because the particles have
mass, they do not follow the fluid velocity streamlines exactly, causing some particles
to hit the mixing blades. This app computes the transmission probability of particles in
the mixer. It also evaluates the index of dispersion, which is a measurement of the
uniformity with which different species of particle are mixed together.
84 | RELEASE NOTES
and magnetic forces. The beam is first sent through a curved sector with a radial
electric force, then through a second curved sector with a uniform magnetic flux
density. The Particle Counter feature is used to visualize the transmitted beam and to
compute the transmission probability of the ions.
P A R T I C L E TR A C I N G M O D U L E | 85
Pipe Flow Module
New Functionality in Version 5.2
86 | RELEASE NOTES
Plasma Module
New Functionality in Version 5.2
I M P R OVE D S T A B I L I T Y O F T H E F I N I T E VO L U M E D I S C R E T I Z A T I O N
The finite volume discretization has been improved so that numerical overflow errors
no longer occur. This means that nonconvergence of models using the finite volume
discretization should occur less often.
PLASMA MODULE | 87
created for the boundaries adjacent to the Plasma Model feature, and the Electric
Potential feature remains on boundaries adjacent to the Charge Conservation
feature.
• Any External Surface Charge Accumulation boundary conditions are replaced by a
new Dielectric Contact feature. The settings from the original model are retained.
The External Surface Charge Accumulation boundary condition is now obsolete.
88 | RELEASE NOTES
Ray Optics Module
New Functionality in Version 5.2
RENAMED SETTINGS
The Wall condition Bounce has been renamed to Specular reflection.
Expressions involving the ray frequency must always be included within the noenv()
operator. Some expressions for user-defined refractive indices may fail to be evaluated
properly in version 5.2 unless this operator is applied.
90 | RELEASE NOTES
RF Module
New Functionality in Version 5.2
RF MODULE | 91
I N I T I A L VA L U E S E T T I N G S F O R T H E TR A N S I E N T S C A T T E R I N G B O U N D A R Y
CONDITION
In the Settings window for the Scattering boundary condition for time-dependent
simulations, there is a new Initial Values for Incident Wave section for setting the initial
values of the magnetic vector potential for the incident wave. Note that the section is
initially collapsed by default. When the incident wave is defined by an electric field, you
can specify the initial value for the magnetic vector potential for the incident wave.
When the incident wave is defined by a magnetic field, the user can specify the initial
value for the time derivative of the magnetic potential, in addition to the initial value
for the magnetic vector potential. The new settings enable the user to define the exact
wave form for the solved magnetic vector potential.
92 | RELEASE NOTES
implemented on a GaAs wafer. The filter in this model is compact in relation to its
resonant frequency and provides a relatively high Q-factor compared to capacitively
coupled microstrip line model designs.
• Beam Splitter
• Photonic Crystal
• Scattering on Substrate
• Optical Scattering Off of a Gold Nanosphere
• Dielectric Slab Waveguide
• Fabry-Perot Cavity
RF MODULE | 93
Semiconductor Module
New Functionality in Version 5.2
94 | RELEASE NOTES
Structural Mechanics Module
New Functionality in Version 5.2
The external library is accessed through an External Material feature under Global
Definitions>Materials. The external library can either completely define the stress-strain
relation, or only return an inelastic strain contribution to available material models.
Two new features are available in the Solid Mechanics interface to accommodate this:
the External Stress-Strain Relation material model, and the External Strain subnode
under the Linear Elastic Material.
An additional app is included for users with LiveLink™ for Excel®, which has somewhat
more functionality, such as the possibility to extend it with other beam standards.
INTERFERENCE FIT
In an interference fit, two parts are joined by employing the contact pressure formed
when a slightly oversized part is fitted into a hole. The stress distribution, contact
pressure, and transferable force and moment in an interference fit between two circular
pipes are computed in this app. You can vary the dimensions of the two pipes and the
coefficient of friction to test different designs.
96 | RELEASE NOTES
due to moisture diffusion in the epoxy. The Transport of Diluted Species, Solid
Mechanics, and Shell interfaces are combined in the application.
TR U S S B R I D G E D E S I G N E R
This is an example of an application for studying a civil engineering structure, a Pratt
truss bridge. The underlying model consists of a Shell interface for the roadway and a
Beam interface for the supporting structure. With this app, you can modify all
dimensions of the bridge, including the number of spans and the cross sections of all
members. Additionally, you can configure the load with an arbitrary number of
vehicles and a wind load. In addition to the static results, the lowest natural frequencies
are computed.
L I N E A R B U C K L I N G O F A TR U S S TO W E R
In this app, users can compute the buckling load for unstayed and guyed truss towers.
First, a user enters the tower dimensions, consisting of individual (longitudinal,
transverse, and diagonal) members. Then, choose between the unstayed or the guyed
option, which calls for data for the wires, including prestress. Finally, for material data,
select structural steel, aluminum, or a user-defined material. After running the app,
there are graphical and analytical results for the critical load.
98 | RELEASE NOTES
Subsurface Flow Module
Backward Compatibility with Version 4.4
S O L U T E TR A N S P O R T
The Solute Transport interface has been replaced by the new interface Transport of
Diluted Species in Porous Media.
I N I T I A L VA L U E S E T T I N G S F O R T H E TR A N S I E N T S C A T T E R I N G B O U N D A R Y
CONDITION
In the settings for the Scattering Boundary Condition for time-dependent simulations,
there is a new section called Initial Values for Incident Wave for setting the initial values
of the magnetic vector potential for the incident wave. This section is collapsed by
default. When the incident wave is defined by an electric field, you can also specify the
initial value for the magnetic vector potential for the incident wave. When the incident
wave is defined by a magnetic field, you can also specify the initial value for the time
derivative of the magnetic potential, in addition to the initial value for the magnetic
vector potential.
FIBER SIMULATOR
This application performs mode analysis on a concentric circular dielectric layer
structure. Both step-index fibers and graded-index optical fibers can be simulated. The
geometry and refractive index distribution, the mode fields, the mode-field diameter,
the attenuation, the group delay, and the dispersion coefficient are visualized.
WAVE O P T I C S M O D U L E | 101
Material Library
New Material Data in Version 5.2
Data has been added for the following materials: Be3N2, Ca3N2, HfN, HfN, TiN,
ZrN, HfC, NbC, Ta2O3, Sc2O3, Lu2O3, Tm2O3, Gd2O3, Sm2Oe, CeO2, SrO,
C5H12, Mo2C, WCIN-939, 26NiCrMoV14-5, 18Mn18Cr (ASTM A289), 2507
(S32750), S32053, ASTM B625 (N08031), UNS N08354, NAS NM15M, NAS
NM17, Pyroceram 9606, Corning 1737, Corning Eagle 2000, Corning Eagle XG,
Corning Lotus, Corning Lotus XT, and SiO2-TiO2.
The following sections list new and improved functionality in LiveLink™ for
®
MATLAB :
MPHPLOT FUNCTION
The wrapper function mphplot has been enhanced in many ways to provide plots in
MATLAB that look more like the plot created by COMSOL Multiphysics. This results
in more accurate colors, line styles, symbols, and so on.
A new options 'normals' has been added to mphplot. It is 'on' by default and tells
MATLAB if normals should be used when rendering surfaces in 3D. This is mostly
noticeable when lighting is used or when displaying arrows.
A new option 'createplot' has been added. It is 'on' by default, but when set to
'off' it is possible to extract data from the model without actually creating a plot on
the screen. The data can later be used to recreate the plot. This operation is mostly
useful when working with servers that do not have a display but is also useful for users
who wish to extract data from a plot.
The new plot types Octave Plots, Smith Plots, and Annotation Plots have been added.
MPHGETEXPRESSIONS FUNCTION
The mphgetexpressions function now returns the value and unit of the evaluated
expression using the model’s default unit system.
MPHEVALGLOBALMATRIX FUNCTION
New options 'outersolnum' and 'outerdataseries' have been added to the
mphevalglobalmatrix function for improved support for models that use parametric
sweeps.
MPHINPUTMATRIX FUNCTION
The mphinputmatrix function now supports complex-valued matrices.
L I V E L I N K F O R M AT L A B | 103
MPHXMESHINFO FUNCTION
The mphxmeshinfo function now supports separate DOF coordinates for models that
use extra dimensions.
S U P P O R T E D VE R S I O N S
Microsoft® Excel® 2016 has been added to the list of supported versions of Excel.
Now Excel 2007, 2010, 2013, and 2016 are supported when using Windows. Loading
and Saving of Excel files is supported on Linux and Mac OS X.
model.physics("cpf").feature("cpf1").set("gamma_mat", "userdef");
New syntax (includes the species name in the first argument of the set method):
model.physics("tcdee").feature("ice1").set("D_c1", new
String[]{"D1", "0", "0", "0", "D1", "0", "0", "0", "D1"});
model.physics("tcdee").feature("ice1").set("D_c2", new
String[]{"D2", "0", "0", "0", "D2", "0", "0", "0", "D2"});
model.physics("tcdee").feature("ice1").set("D_c3", new
String[]{"D3", "0", "0", "0", "D3", "0", "0", "0", "D3"});
• Accessing tensor components (in the definitions of other variables, for example).
Old syntax:
Dxx_c1, Dxy_c1, Dxz_c1...
New syntax (includes the species name in the first argument of the set method):
model.physics("tcdee").feature("reac1").set("R_c1", new
String[]{"R1"});
model.physics("tcdee").feature("reac1").set("R_c2", new
String[]{"R2"});
model.physics("tcdee").feature("reac1").set("R_c3", new
String[]{"R3"});
New syntax:
model.physics("tcdee").feature("init1").setIndex("initc", "c20",
1);
model.physics("tcdee").feature("init1").setIndex("initc", "c30",
2);
model.physics("tcdee").feature("init1").setIndex("initphil",
"V0");
• Selecting properties.
Old syntax:
model.physics("tcdee").prop("Convection").set("Convection", 1,
"0");
model.physics("tcdee").prop("ConvectiveTerm").setIndex("Convectiv
eTerm", "noncons", 0);
New syntax (the property name corresponds to the section in the user interface):
model.physics("tcdee").prop("TransportMechanism").set("Convection
", 1, "0");
For information about API backward compatibility for the Surface Reactions interface,
see the Chemical Reaction Engineering Module release notes.
DOCUMENTATION
The COMSOL Multiphysics Programming Reference Manual replaces the
COMSOL API for use with Java® Reference Manual.
DEPRECATED METHODS
The following methods are deprecated in COMSOL 5.0:
TABLE 1-4: DEPRECATED METHODS AND THEIR REPLACEMENTS
com.comsol.model.OptFeature.field() OptFeature.comp()
com.comsol.model.OptFeature.field(String) OptFeature.comp(String)
com.comsol.model.Group.identifier() Group.paramName()
com.comsol.model.Material.identifier() ModelEntity.tag()
com.comsol.model.MaterialModel. ModelEntity.tag()
identifier()
com.comsol.model.ModelNode.identifier() ModelEntity.tag()
com.comsol.model.physics.Physics. Use tag() instead.
identifier()
com.comsol.model.physics. ModelEntity.tag()
MultiphysicsCoupling.identifier()
com.comsol.model.Group.identifier(String) Group.paramName(String)
com.comsol.model.Material. ModelEntity.tag(String)
identifier(String)
com.comsol.model.MaterialModel. ModelEntity.tag(String)
identifier(String)
com.comsol.model.ModelNode. ModelEntity.tag(String)
identifier(String)
com.comsol.model.physics.Physics. Use tag(string) instead.
identifier(String)
com.comsol.model.physics. ModelEntity.tag(String)
MultiphysicsCoupling.identifier(String)
com.comsol.model.ModelEntity.name() ModelEntity.label()
com.comsol.model.ModelEntity.name(String) ModelEntity.
label(String)
com.comsol.model.ParameterEntity. Use the 0-based version
set(String, int, double) (setIndex) instead.
com.comsol.model.ParameterEntity. Use the 0-based version
set(String, int, double) (setIndex) instead.
com.comsol.model.ParameterEntity. Use the 0-based version
set(String, int, double[]) (setIndex) instead.
com.comsol.model.ParameterEntity. Use the 0-based version
set(String, int, int) (setIndex) instead.
com.comsol.model.ParameterEntity. Use the 0-based version
set(String, int, int[]) (setIndex) instead.
com.comsol.model.ParameterEntity. Use the 0-based version
set(String, int, int, double) (setIndex) instead.
com.comsol.model.ParameterEntity. Use the 0-based version
set(String, int, int, int) (setIndex) instead.
com.comsol.model.ParameterEntity. Use the 0-based version
set(String, int, int, String) (setIndex) instead.
PHYSICS INTERFACES
• The default Initial Value features in the following interfaces have been extended:
- Transport of Concentrated Species
- Reacting Flow in Porous Media (rfcs)
- Reacting Flow
- Rotating Machinery, Reacting Flow
Previously, only the initial mass fractions could be specified. Now the initial values
can be specified in terms of mass fractions, mole fractions, molar concentrations,
number densities, or densities. When opening an old Model MPH-file, Mixture
specification is set to Mass fractions, and the mass fractions specified are entered in
the respective text fields. In old model files for Java, commands specifying the initial
value of a mass fraction return an error in version 5.0 and later. To specify the initial
mass fraction of a species w2, which is the second in the list of species (seen in the
Dependent Variables section when clicking the interface), change the COMSOL
Java command
model.physics("chcs").feature("init1").set("w2", 1, "0.1");
to
model.physics("chcs").feature("init1").set("w0", 2, "0.1");
• The Pressure Acoustics, Frequency Domain interface and the Boundary Mode
Acoustics interface have a new default feature. If the default feature has been edited
in a Java file, the following line should be added to the Java file to obtain the old
behavior for Pressure Acoustics, Frequency Domain:
model.physics("acpr").feature().create("pam1",
"PressureAcousticsModel").selection().all();
or
PHYSICS INTERFACES
• The Crosswind diffusion formulation has been updated for all physics interfaces
supporting Crosswind diffusion. Models solved with the new formulation can give
different results than models solved in versions earlier than 4.3b. Java files can be
modified to retain old crosswind formulations. Please contact COMSOL Support
for details.
• The default settings have changed for the Background Pressure Field in the Pressure
Acoustics interfaces. Add the following line to obtain the old behavior of this
feature:
model.physics("acpr").feature("bpf1").set("c", 1, "acpr.c_c");
• In the Darcy’s Law interface and the Richards’ Equation interface in the Subsurface
Flow Module, fluid compressibility is now a material parameter and no longer has a
default value. If the default value was used, you now have to set the value. The
following example sets the permeability to the old default value:
model.physics("dl").feature("smm1").set(chif_mat,userdef);
model.physics("dl").feature("smm1").set(kappa,4e-10);
• The Level Set and Phase Field interfaces now include the Initial Interface feature by
default. If you have a model that was created in an earlier version of COMSOL, it
will fail to create a feature with the same tag name.
• In version 4.0a the property nonlin in the stationary solver could have the values
auto, on, off, and linearized. The default in most cases was auto, but in some
cases, specifically in a frequency-domain study, the default was linearized. In
version 4.1 the possible values are auto, on, off, and linper, with auto as default,
except in the Frequency Domain, Linearized study step where the default is
linper. The value linearized can still be set, but this is treated as auto. If the
problem is linear and the linearization point is zero, auto should give the same
solution as linearized. For nonlinear problems where the linearization point is
zero, the solution given by auto might be slightly different, and probably more
accurate, while changing to off should give exactly the same solution as
linearized. When there is a nonzero linearization point, it is relevant to use the
linper option. This option works like linearized except that source terms that
contribute to the linearized problem must be enclosed by the linper operator.
• In the Darcy’s Law interface, Brinkman interface, Richards’ Equation interface, and
Poroelasticity interface (in the CFD Module and Subsurface Flow Module), the
permeability and porosity are now material parameters and no longer have default
values. If the default values were used in a model file for Java, you now have to set
them. The following example sets the permeability to the old default value:
model.physics("dl").feature("dlm1").set(kappa_mat,userdef);
model.physics("dl").feature("dlm1").set(kappa,3e-11);
• The pressure variable in solid mechanics, typically solid.pw, now only gets
allocated degrees of freedom for incompressible materials. If you have referred to it,
for example, during segregation in the solver, the code will have to be changed to
remove the field.
• The units of the load face parameter (Fph) of the Phase feature in
AcousticStructure, TransientAcousticStructure,
ThermallyInducedStresses, SolidMechanics,
JouleHeatingThermalExpansion, Poroelasticity, and
FluidStructureInteraction have changed from degrees to radians.
• The physics.field() operator for Beam and Truss are not backward compatible
with 4.0. Scalar fields are now vector fields.
• The variables for strain and stress in the Shell interface have been renamed.
Variable names that began with a lowercase s now begin with an uppercase S. For
variables names that ended in lowercase l (L), the letter was moved to the third
position. For example, emXXl is now emlXX.
• Force loads on solids and trusses have been moved from the material to the spatial
frame. This means that the index notation of some variables has changed from
uppercase XYZ to lowercase xyz.
• The acoustics interfaces (PressureAcoustics, TransientPressureAcoustics,
AcousticStructure, and TransientAcousticStructure) have been moved
from the material to the spatial frame. This means that the index notation of vector
variables has changed from uppercase XYZ to lowercase xyz.
This concludes the release notes for COMSOL Multiphysics version 5.2.