COMSOL Multiphysics Installation Guide
COMSOL Multiphysics Installation Guide
Installation Guide
COMSOL Multiphysics Installation Guide
© 1998–2025 COMSOL
Protected by patents listed on [Link]/patents, or see Help > About COMSOL Multiphysics on the File
menu in the COMSOL Desktop for less detailed lists of U.S. Patents that may apply. Patents pending.
This Documentation and the Programs described herein are furnished under the COMSOL Software License
Agreement ([Link]/sla) and may be used or copied only under the terms of the license agreement.
COMSOL, the COMSOL logo, COMSOL Multiphysics, COMSOL Desktop, COMSOL Compiler, COMSOL Server,
and LiveLink 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 [Link]/
trademarks.
Version: COMSOL 6.4
Contact Information
Visit the Contact COMSOL page at [Link]/contact to submit general inquiries or
search for an address and phone number. You can also visit the Worldwide Sales Offices page at
[Link]/contact/offices for address and contact information.
If you need to contact Support, an online request form is located on the COMSOL Access page
at [Link]/support/case. Useful links:
|3
LiveLink™ fo r S o l i d E d g e ® Installations . . . . . . . . . . . . . . . . . . . . . 48
LiveLink™ fo r S O L I D W O R K S ® Installations . . . . . . . . . . . . . . . . . 49
Cluster Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
License Manager Installation on Windows . . . . . . . . . . . . . . . . . 52
What Is the FlexNet® License Manager? . . . . . . . . . . . . . . . . . . . . . 52
System Requirements for the FlexNet® License Manager . . . . . . 53
FlexNet® License Manager Software Components . . . . . . . . . . . . 53
FlexNet® License Manager Documentation . . . . . . . . . . . . . . . . . . 54
The License File and The License Features . . . . . . . . . . . . . . . . . . . 54
Installing the License Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Starting the License Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Verifying That the License Manager Is Running . . . . . . . . . . . . . . . 65
Starting COMSOL Multiphysics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Changing the License . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Using COMSOL on an IPv6 Network . . . . . . . . . . . . . . . . . . . . . . . 66
Troubleshooting License Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Running COMSOL Multiphysics on Windows . . . . . . . . . . . . . . 68
The COMSOL Multiphysics Folder on The Start Menu . . . . . . . . 68
Starting COMSOL Multiphysics for a Classkit License . . . . . . . . . . 69
Creating Desktop Shortcuts Manually . . . . . . . . . . . . . . . . . . . . . . . 70
Running COMSOL Multiphysics in Client–Server Mode . . . . . . . . 71
Running COMSOL Multiphysics in Batch Mode . . . . . . . . . . . . . . . 73
Multicore Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Running COMSOL Multiphysics on Clusters . . . . . . . . . . . . . . . . . 75
4|
Running COMSOL Multiphysics on the Cloud . . . . . . . . . . . . . . . . 76
Running COMSOL Multiphysics with MATLAB . . . . . . . . . . . . . . . 76
Running COMSOL Multiphysics with Simulink . . . . . . . . . . . . . . . . 77
Installing on macOS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .78
Installation Over the Internet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Downloading and Installing the COMSOL Software . . . . . . . . . . . 81
Installation from USB Flash Drive . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Running The COMSOL Installer . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Automated Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Removing (Uninstalling) the COMSOL Installation . . . . . . . . . . . . 83
Product Updates and Application Library Update . . . . . . . . . . . . . 84
Changing the Path to the MATLAB® Installation . . . . . . . . . . . . . . 84
Cluster Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
License Manager Installation on macOS . . . . . . . . . . . . . . . . . . . .87
FlexNet® License Manager Software Components . . . . . . . . . . . . 87
FlexNet® License Manager Documentation . . . . . . . . . . . . . . . . . . 87
The License File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Installing the License Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Starting the License Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
Verifying That the License Manager Is Running . . . . . . . . . . . . . . . . 91
Starting COMSOL Multiphysics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Changing the License . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Using COMSOL on an IPv6 Network . . . . . . . . . . . . . . . . . . . . . . . 93
Troubleshooting License Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
|5
Running COMSOL Multiphysics on macOS . . . . . . . . . . . . . . . . 94
The COMSOL Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Running COMSOL Multiphysics from a Terminal Window . . . . . 95
Running a Classkit License . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
Running COMSOL on Clusters . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
Running COMSOL Multiphysics in Client–Server Mode . . . . . . . . 96
Running COMSOL Multiphysics in Batch Mode . . . . . . . . . . . . . . . 98
Multicore Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
Running COMSOL Multiphysics on Clusters . . . . . . . . . . . . . . . . . 99
Running COMSOL Multiphysics on the Cloud . . . . . . . . . . . . . . . 100
Installing on Linux . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Installation Over the Internet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Downloading and Installing the COMSOL Software . . . . . . . . . . 103
Installing from a DVD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
Installation from USB Flash Drive . . . . . . . . . . . . . . . . . . . . . . . . . . 105
Running The COMSOL Installer . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
Web Browser for Viewing Documentation and Help . . . . . . . . . 106
Automated Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
Removing (Uninstalling) the COMSOL Installation . . . . . . . . . . . 107
Product Updates and Application Library Update . . . . . . . . . . . . 108
Changing the Path to the MATLAB® Installation . . . . . . . . . . . . . 108
Cluster Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
License Manager Installation on Linux . . . . . . . . . . . . . . . . . . . . 110
FlexNet® License Manager Software Components . . . . . . . . . . . 110
6|
FlexNet® License Manager Documentation . . . . . . . . . . . . . . . . . 110
The License File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Installing the License Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Starting the License Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
Verifying That the License Manager Is Running . . . . . . . . . . . . . . . 114
Starting COMSOL Multiphysics . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Changing the License . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Using COMSOL on an IPv6 Network . . . . . . . . . . . . . . . . . . . . . . 116
Troubleshooting License Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
Running COMSOL Multiphysics on Linux . . . . . . . . . . . . . . . . 117
Running COMSOL Multiphysics . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
Multicore Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
Running COMSOL Multiphysics in Batch Mode . . . . . . . . . . . . . . 118
Running COMSOL Multiphysics in Client–Server Mode . . . . . . . 119
Running a Classkit License . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
Running COMSOL on Clusters . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
Running COMSOL Multiphysics on the Cloud . . . . . . . . . . . . . . . 122
Running COMSOL Multiphysics with MATLAB . . . . . . . . . . . . . . 122
Running COMSOL Multiphysics with Simulink . . . . . . . . . . . . . . . 123
COMSOL Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
COMSOL Multiphysics Client–Server Security . . . . . . . . . . . . . . . 124
Application and Physics Builder Security . . . . . . . . . . . . . . . . . . . . 126
Method Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
COMSOL Server Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
|7
Troubleshooting License Errors . . . . . . . . . . . . . . . . . . . . . . . . . 128
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
8|
Before You Begin
I n s ta l l at i o n M e d i a O p ti o n s
|9
System Requirements
Previous Installations
Previous installations of COMSOL are not affected by your new COMSOL 6.4
installation, except that double-clicking a Model MPH file will open it in the latest
installation (unless otherwise specified). You can continue to use other versions or
uninstall them independently of the latest installation.
10 |
S o f t w a r e L i c e n s e A g r ee m e n t
For the complete software license agreement with details on the license
conditions, please refer to the COMSOL Software License Agreement. The PDF
can be downloaded at [Link]/sla. The license agreement is also
available in your installation folder.
• On Windows, it is located at:
C:\Program Files\COMSOL\COMSOL64\Multiphysics\doc
\pdf\COMSOL_Multiphysics\COMSOL_SoftwareLicenseAgreement.pdf
and can also be accessed from the Windows Start menu, under
COMSOL Multiphysics 6.4 > COMSOL Documentation.
• On macOS, it is located at:
/Applications/COMSOL64/Multiphysics/doc/pdf/COMSOL_Multiphysics/
COMSOL_SoftwareLicenseAgreement.pdf
License Types
There is a variety of license options, and the steps involved when installing can
differ depending on which license type you have acquired. No license type restricts
usage to just one operating system but you are able to choose to install on either
Windows, macOS, or Linux. A COMSOL Multiphysics model file saved on one
platform can be opened on another. Certain license types come with restrictions;
make sure you know which license type you have before proceeding with the
installation.
| 11
For a full description and definition of the different license types,
see the COMSOL Software License Agreement. All of the license
types may not be available in your region.
COMSOL M ULTIPHYSICS
The following is an overview of the license types for COMSOL Multiphysics:
Named Single User License (NSL)
The COMSOL Multiphysics software may be installed and operated on up to four
(4) individual computers, provided it is only accessible to, and operated by, a
single licensed user designated by us as the Named User for that license and
provided that the Named User may concurrently use the software on only two (2)
of those computers at any given time. For each computer, there is no restriction
on the number of simultaneous sessions that the Named User may run.
Locked Single User License (CPU)
You can install the COMSOL Multiphysics software on one designated computer
and different users can take turns using the software on that computer, one user
at a time. There is no restriction on the number of simultaneous sessions that the
one user may run. The CPU version of the software may not be accessed or used
over a network or remotely.
Floating Network License (FNL)
Licensed per concurrent user, you can install the software on as many machines on
your network as needed within your country or territory. The COMSOL
Multiphysics software can run on local computers, with the network used only for
license authentication. Alternatively, you can run the software on a remote
computer over your network. Support for remote computing includes using
Windows® Remote Desktop. In addition, this license type allows access to the
COMSOL computational engine using a client. For example, you can run the
graphical user interface on an inexpensive local machine, while offloading the
heavy computations to a remote high-end machine. Cluster and cloud computing
is supported on Windows® and Linux® platforms. For local use, there is no
restriction on the number of simultaneous sessions for one concurrent user. With
respect to cluster computing and cluster sweeps, a single model may be run on
multiple compute nodes with no restriction on the number of compute nodes.
Class Kit License (CKL)
Up to 30 teachers and students can run the software for classroom purposes over
the school’s network where they access the license on-campus or through a secure
remote connection.
12 |
COMSOL C OMPILER
The COMSOL Compiler is available under the following license types: Named
Single User License (NSL), CPU-Locked Single User License (CPU), and
Floating Network License (FNL). All those license types are described in the
section above on COMSOL Multiphysics.
COMSOL S ERVER
The following is an overview of the license types for COMSOL Server:
COMSOL Server License (CSL)
Licensed on a concurrent user basis. Each concurrent user may run up to four
concurrent applications. The CSL version of the software enables you to run
applications built with the Application Builder. The CSL allows you to host and
run those applications within your organization and also to those outside your
organization who time share your concurrent user slots, worldwide. Applications
can be accessed through a major web browser on a variety of operating systems or
a COMSOL client for the Windows® operating system. See [Link]/
system-requirements for detailed requirements.
Academic Server License (ASL)
Licensed on a 300 concurrent user basis, each concurrent user may run up to four
concurrent applications. The ASL version of the software enables you to run
applications built with the Application Builder. The ASL allows you to host and
| 13
run those applications for students, faculty, and staff of your academic institution
or of any other academic institution, worldwide.
14 |
Dongle Hardware Lock
Depending on your region and operating system, any of the above license types
might require a dongle (hardware lock). If you have received a dongle to use with
COMSOL, please refer to instructions given to you by your COMSOL
representative.
CO M S O L A c c e s s
| 15
Installing on Windows
I n s ta l l a t i o n o ve r t h e I n t e r n e t
This is usually sent to you by a COMSOL representative by email. Once you locate
your passcode, follow these steps to prepare for download and installation:
1 Click the link for downloading the software as given in the software download
email from your COMSOL representative. This link is identical or similar to:
[Link]/product-download.
2 If you have not already created a COMSOL Access account, you are prompted
to create it. When you have created the account, you can enter your license
passcode to associate it with your account information.
If you already created a COMSOL Access account, you can associate the license
file with your account on the COMSOL Access page under Manage Licenses at
[Link]/access/licenses.
3 Follow the web-based instructions to download the software.
4 Continue with the instructions in the section Downloading and Installing the
COMSOL Software.
A license passcode can also be used for class kit licenses (CKL).
16 |
Obtaining the Hostid
Follow these steps to obtain a hostid:
1 Open the Windows Command Prompt (cmd).
2 At the command line, type ipconfig /all and press Enter. The output should
look similar to this:
3 The hostid you are looking for is here called Physical Address, also known as
Ethernet address or MAC address.
Obtaining the Hostname
If you have been informed by your COMSOL representative that you need to run
a license manager for your installation, then you also need the Host Name (see the
screenshot above). If your network administrator prefers to use a fixed IP address
for this particular computer, that IP address can be optionally used in place of the
Host Name. For more information on license manager installation see License
Manager Installation on Windows.
Hostid for PCs with Wireless Adapters
If you plan to install on a computer with a wireless network adapter, you need the
physical address of both the wireless and the Ethernet adapter.
If the COMSOL representative asks you for the hard disk serial number instead of
the hostid, type vol at the Windows command line prompt. The output should
look similar to this:
Volume Serial Number is 2C9F-5930
| 17
#------------------------------------------------------------------
# COMSOL 6.4 NSL License No: 1234567 Windows/Mac
# Visit [Link]/install for latest installation instructions
#------------------------------------------------------------------
FEATURE SERIAL LMCOMSOL 6.4 permanent uncounted \
VENDOR_STRING=C,18000100200 HOSTID=ANY sort=100 \
SN=1234567 TS_OK SIGN=8045890A6FE4
FEATURE COMSOL LMCOMSOL 6.4 permanent uncounted \
HOSTID="70f1a12f4dfc" PLATFORMS="x64_n x64_mac arm64_mac" \
SN=2076312 SIGN=E607EB680852
FEATURE PARTICLETRACING LMCOMSOL 6.4 permanent uncounted \
HOSTID="70f1a12f4dfc" PLATFORMS="x64_n x64_mac arm64_mac" \
SN=2076312 SIGN=3835733C6290
FEATURE SUBSURFACEFLOW LMCOMSOL 6.4 permanent uncounted \
HOSTID="70f1a12f4dfc" PLATFORMS="x64_n x64_mac arm64_mac" \
SN=2076312 SIGN=3A9BA162C9E4
FEATURE LLEXCEL LMCOMSOL 6.4 permanent uncounted \
HOSTID="70f1a12f4dfc" PLATFORMS="x64_n x64_mac arm64_mac" \
SN=2076312 SIGN=EE9C11E44356
FEATURE COMSOLGUI LMCOMSOL 6.4 permanent uncounted \
HOSTID="70f1a12f4dfc" PLATFORMS="x64_n x64_mac arm64_mac"\
SN=2076312 SIGN=0D0A83382550
A Single User License file can normally not be edited in any way by the user and
has to be identical to the one sent to you by a COMSOL representative. If you
were sent a license file that requires a license manager, then minor edits are
required. For information on the type of license file required for installations using
a license manager, see The License File and The License Features.
Registering with COMSOL Access
Once you have saved your license file, follow these steps to register or login to
COMSOL Access to start the installation:
1 Click the link for downloading the software as given in the software download
email from your COMSOL representative. This link is identical or similar to:
[Link]/product-download.
2 If you have not already created a COMSOL Access account, you are prompted
to create it. When you have created the account, point to your license file
([Link]) to associate it with your account information.
If you already have a COMSOL Access account, you can associate the license
file with your account under Manage Licenses at [Link]/access/
licenses.
3 Continue with the instructions in the next section.
18 |
D o w n lo a d i n g a n d I n s t a l l i n g t h e C O M S O L So f t w a r e
| 19
Installation from a USB Flash Drive
If you have received a USB Flash Drive from a COMSOL representative, insert the
USB Flash Drive into a USB port on your computer. The COMSOL Installer
window should appear automatically; if not, run the file [Link] on the USB
Flash Drive. The COMSOL 6.4 Installer window should now appear. Now
continue with the instructions in the section Running the COMSOL Installer.
The steps for running the COMSOL Installer are independent of the installation
media. Once the installer has started, continue with the instructions in this section.
L ANGUAGE P AGE
1 Select your language for the installation and click Next. You might also need to
install fonts for the languages that you want to use when running COMSOL.
20 |
M AIN P AGE
| 21
L ICENSE P AGE
3 For a new installation or a license change, the following is displayed:
After reading the license agreement, click the I accept the terms of the license
agreement button and specify the license. Choose one of the following license
formats from the License format list, depending on which license you have:
- Passcode: Use this option for a Single-User Trial License or Class Kit License.
Enter your passcode, which is a case-sensitive series of characters and numbers
with a form similar to FFFFFFFFFFFF-TYUS-123456-1234567-123456789.
- License file: Use this option for any type of regular paid-for license installation.
Enter the path to a license file or click Browse to select the file [Link].
This file is sent to you by a COMSOL representative, typically by email.
- Port number and Hostname: Use this option if your license administrator has
given you a port number and hostname for a license manager for COMSOL
that is running on your organization’s network. Enter the Hostname of the
server running the license manager and its license manager port number.
- Three-server redundancy: Use this option if your license administrator has
given you three port numbers and hostnames for the three-server redundancy
license manager option. Enter the hostnames and license server port numbers
of the three-server redundant configuration.
22 |
Change License
If Change License was selected in Step 2, first select Use current paid license, to use
an existing license, or Specify new license, to use a new license, from the License list.
Click Next and proceed to Step 5 if you want to change to a license with different
products. Otherwise, proceed to Step 10.
4 Click Next.
You can also automate a license change. If you specify a new license in
[Link] and set installdir to an existing comsol installation directory
(the installed version must match the version of the setup program), the installer
will use the new license and add or remove products as needed to match the new
license. See the description of the Installer Mode inside the [Link] file.
| 23
L ICENSE N UMBER P AGE
This page only appears if you have a license file corresponding to several different
licenses (a so-called merged license file). From the list of license numbers, select
the one you want to install. Both COMSOL Multiphysics licenses and COMSOL
Server licenses can appear here. The license number you choose will determine
which products are available on the next page.
24 |
P RODUCTS P AGE
The License Manager checkbox is also selected. Depending on your region and
operating system, the license type may require that the license manager is
installed and started before running COMSOL (see License Management
| 25
Tools). In some cases, however, the license manager is installed automatically
during the COMSOL installation.
From the options under Application libraries, choose one of the following:
- Install application libraries for selected products (the default) to install the
application libraries for the licensed products that you have selected.
- Install application libraries for all products to install the application libraries for
all COMSOL products.
- Install application library previews for selected products to install previews of
the application libraries for the licensed products that you have selected.
- Install application library previews for all products to install previews of all
application files in the application libraries for all COMSOL products.
- Do not include application libraries to not install any application libraries.
Selected applications can be downloaded via Application Library Update.
From the options under Documentation, choose one of the following:
- Install documentation relevant to selected products (the default) to install the
documentation for the licensed products that you have selected. For some
products, documentation for other relevant products is also installed, so that
you get access to documentation for functionality included in the licensed
products but covered in other products’ documentation.
- Install documentation for all products to install the documentation for all
COMSOL products. You can then view and search all COMSOL
documentation, even for products not included in your license.
- Online documentation only to not install any documentation. You can still view
documentation and access context help using online documentation provided
by COMSOL, but no documentation files are installed on your computer.
Under Destination folder, a default installation destination is suggested; for
Windows, typically C:\Program Files\COMSOL\COMSOL64\Multiphysics. Click
Browse or type another destination directory if needed.
26 |
Add/Remove Products and Reinstall
- If Add/Remove Products and Reinstall or Change License was selected in Step 2,
the Products page includes a Reinstall selected and installed products
checkbox. Select this to reinstall selected products that are already installed.
- The options for application libraries and documentation can also be changed.
You can also add, remove, and repair COMSOL products from
the installed instance by running the setup executable in the
installation directory. If needed, the installer can either download
the files from the internet or use the original DVD (or disk image).
6 Click Next.
| 27
O PTIONS PAGE : FIRST SECTION
28 |
installer will use port 443 (the default port for the HTTPS protocol.) These
settings do not appear for offline installation methods.
The following options are available under Update:
- Check for updates after installation. This option is selected by default. The
installer will apply all available updates (if any) for the installed version.
- Enable automatic check for updates. Select this checkbox if you want
COMSOL to automatically check for available product updates at startup.
- Enable automatic check for new releases. Select this checkbox if you want
COMSOL to automatically check for new full releases at startup.
- By default, COMSOL 6.4 uses an included Java 21 runtime, indicated by the
Built-in setting in the Java runtime environment list. If you want to run
COMSOL with another Java 21 runtime that you have licensed and installed,
specify its location in the Location field by first choosing Custom.
The CUDA and cuDSS sections are available in the case that GPU Compute
Components was selected on the Products page, but NVIDIA CUDA® Toolkit and/
or NVIDIA CUDA® Direct Sparse Solver were not.
- If a compatible NVIDIA CUDA® Toolkit is already installed on the system,
specify the installation directory in the Custom CUDA directory field to enable
GPU hardware acceleration. This path can also be changed on the Computing
> GPU Acceleration page in the Preferences window. For more information
about installing the CUDA Toolkit for use with COMSOL Multiphysics, see
[Link]/learn/cudatoolkit.
- If a compatible NVIDIA CUDA® Direct Sparse Solver library is already
installed on the system, specify the installation directory in the Custom cuDSS
directory field to enable the GPU-accelerated direct sparse solver. This path
| 29
can also be changed on the Computing > GPU Acceleration page in the
Preferences window.
- Non-Latin (Asian) language installations have the option to select a different
default font family, such as one that has an appropriate set of Asian characters.
8 Click Next.
30 |
O PTIONS PAGE : SECOND SECTION
| 31
10 Click Next.
32 |
L IVE L INK P AGE
11 The LiveLink page contains installation settings for the LiveLink™ products:
- Install LiveLink™ for Excel® for all users. If you select this checkbox, the
installation of LiveLink™ for Excel® is global to the machine and is available
no matter which user is logged on. Otherwise, the installation is only available
to the current user.
- For the products LiveLink™ for MATLAB® and LiveLink™ for Simulink®,
specify the path to the MATLAB installation folder. This path can be changed
on the LiveLink Connections page in the Preferences window.
| 33
L ICENSE M ANAGER P AGE
12 The License Manager page appears if the License Manager was selected on the
Products page and your computer is designated to be the license server. If this
page does not appear, you can manage the license server using LMTOOLS; see
Starting the License Manager. This page contains the following options:
- The Install license manager as a Windows service checkbox is selected by
default; if you clear the checkbox, the license manager must be started
manually and will not be available as a Windows service.
- The Path to the debug log file field contains a file path to the location of the
license manager debug log file. Click Browse to choose another file path.
- The Service name field shows the service name, for information only.
- The Additional license manager options section contains the following options:
Select the Allow the lmdown command to be executed only from this computer
checkbox to restrict the access to the lmdown command, which you can use to
shut down the license manager, to this computer only.
Select the Disable the lmdown command checkbox to make the lmdown
command unavailable.
Select the Disable the lmremove command checkbox to make the lmremove
command, which you can use to remove a user’s license, unavailable.
34 |
S ECURITY P AGE
13 The Security page appears if you selected the Configure security policy checkbox.
The COMSOL software includes security settings for controlling access to, for
example, system properties, file systems, and runtime security settings from
| 35
methods and external libraries, primarily for use in applications created using
the Application Builder.
In the Security policy list, select User defaults (the default) or Permanent to
control if the settings made on this page will be possible to change or set
permanently after the installation is finished.
The following security settings are available in the General section (the top four
checkboxes are selected by default):
- Select the Allow batch jobs checkbox to allow batch jobs. This restriction
affects the Batch, Batch Sweep, Cluster Computing, and Cluster Sweep
nodes in the COMSOL Desktop model tree.
- Select the Allow running methods checkbox to allow running applications that
include methods. If you clear this checkbox, it is not possible to run methods
in applications.
- Select the Allow running applications checkbox to allow running applications
in general. If you clear this checkbox, it is not possible to run any applications.
- Select the Allow settings forms checkbox to allow settings forms and dialog
forms in the Model Builder. If you clear this checkbox, an error message
appears if you try to create a new settings form or show a dialog form.
- From the Allow external libraries list, select No (the default), Yes, or Ask to
control if external C libraries can be called from methods in an application,
either directly or by asking first.
- From the Allow external MATLAB® functions list, select No (the default), Yes, or
Ask to control if functions written in MATLAB (requires LiveLink™ for
MATLAB®) can be called, either directly or by asking first.
In the Methods and Java libraries section, the Enforce security restrictions
checkbox is selected by default. The following settings are available for easing
parts of the restrictions on methods and Java libraries (none selected by default):
- Select the Allow access to system properties checkbox to read and write system
properties. For example, [Link]("[Link]") can be used to
determine how many cores COMSOL Multiphysics is currently using.
- Select the Allow changes to the runtime system checkbox to allow methods and
Java libraries to change the runtime system — for instance, by modifying class
loaders.
- From the File system access list, select Temporary and application files (the
default) to restrict methods and Java libraries to only have access to such files,
36 |
or select All files to allow methods and Java libraries to access all files that you
have permissions to access on the file system.
- Select the Allow external processes checkbox to allow applications to start
external processes on the computer. This includes using the built-in
executeOS() method.
- Select the Allow access to network sockets checkbox to allow methods and
Java libraries to open sockets for network access.
- Select the Allow control of the network authentication method checkbox to
allow methods and Java libraries to control the network authentication
method used.
- Select the Allow access to classes through reflection checkbox to allow access
to all members in a class through reflection.
- Select the Allow access to runtime security settings checkbox to allow methods
and Java libraries to access security settings.
- Select the Allow access to Model Manager databases checkbox to allow methods
and Java libraries to access Model Manager databases, including both reading
and writing data.
To allow methods and Java libraries to run with security completely disabled,
clear the Enforce security restrictions checkbox and, in the General section, select
the Allow external processes checkbox.
In the Internet section, select the Use a restrictive security policy for model files
downloaded from the internet checkbox to use a restrictive security policy (Mark
of the Web) for model and app files downloaded from the internet. In the
Trusted sites section, you can add and remove internet sites that you want
COMSOL Multiphysics to consider trusted when the restrictive security policy
is enabled. By default, the list of trusted sites contains all the COMSOL
Application Gallery web pages.
14 Click Next.
| 37
I NSTALL PAGE
15 When you click Install the utility will install or update COMSOL. The
installation process can take several minutes. If you are installing over the
internet, the installation time depends on your internet connection speed. The
Finish page appears when the installation process is finished.
38 |
F INISH PAGE
16 This window appears when the installation is finished.
If warnings or errors were detected, click View Log to open a window that shows
the installation log. Contact technical support if you encountered any errors,
and remember to send the log file along with your technical support inquiry.
17 Click Close to quit the installer.
To remove a COMSOL installation from your system, you can use the COMSOL
Installer’s uninstallation option. The uninstaller deletes all COMSOL files and
| 39
directories on the system that were installed by the COMSOL installer. Additional
files and folders created after installation are not removed.
If COMSOL Multiphysics is run with MATLAB, close MATLAB before starting
the uninstaller. If MATLAB is active, the utility cannot remove certain files.
You can start the COMSOL Uninstaller in a few different ways:
• From the Windows Start Menu, open Settings and select Apps. Find
COMSOL Multiphysics 6.4 in the list and select Uninstall.
• From the Windows Start Menu, under COMSOL Multiphysics 6.4, select
COMSOL Launchers > Uninstall.
• Insert the COMSOL DVD and start the COMSOL Uninstaller. Click
Uninstall COMSOL 6.4 to start removing the installation. Click Close to quit
the installer when the uninstallation is complete.
COMSOL provides software updates that improve the software and correct issues.
To check if an update is available, choose Check For Product Updates from the Help
menu. To check for updates automatically each time you start COMSOL
Multiphysics, select the Check for product updates at launch checkbox on the
Updates page in the Preferences window.
40 |
If an update is available, an Update dialog appears. Click Direct Download to
download the update directly, or click Product Information to open the COMSOL
website where you can read about and download the update. When the update
installation starts (close any running instance of COMSOL first) you see the
following installation window:
If a COMSOL process is running when you start an update installation, you must
instead first choose one of the following options:
• Cancel: Stop the update process.
• Try Again: Restart the update process (after closing all COMSOL processes.)
• Continue Anyway: Proceed with the upgrade, ignoring any running instances
of COMSOL.
You can use Direct download (the default) or Download via proxy server. If you
download via a proxy server, specify the hostname and port number for the proxy
and, if required, a username and password.
When selecting Manual download, you point to a DAT-file that you download from
[Link]/product-update. This page contains details and options for
manual download of the update.
Alternatively, you can launch the update installer without checking for updates
from inside COMSOL Multiphysics. To do this, from the Windows Start Menu
under COMSOL Multiphysics 6.4, select COMSOL Launchers > Update.
| 41
A UTOMATED U PDATES
You can update the COMSOL software using an automated update process with
minimal user interaction by using the previously mentioned DAT-file. Consult
[Link]/product-update for detailed instructions.
A u t o m a t e d I n s ta l l a t i o n
You can install the COMSOL software using an automated installation process
with minimal user interaction. This method requires installation from a DVD or
DVD image and an answer file.
The answer file is a text file with a specific format that contains predefined settings
for the COMSOL installer. If non-ASCII characters are used, the answer file is
expected to be UTF-8 encoded by default, but UTF-16 is also supported if the
file starts with a byte order mark (BOM).
A template answer file, [Link], with detailed usage information is
available on the DVD. Create a copy of this file and customize it with a text editor.
When the answer file is ready, start the installation by running
<path to DVD>\[Link] -s <answer file path>
where <answer file path> is the full path to your answer file.
where <answer file path> is the full path to your answer file. If you are running
this command in a command prompt (for example, cmd), make sure that the
current working directory is outside the COMSOL installation directory.
42 |
Product Updates a nd Library Updates
Using the Preferences window, you can set custom application and documentation
directories for Application Library Update, a custom part directory for Part
Library Update, and a custom add-in directory for Add-in Library Update. See the
COMSOL Multiphysics Reference Manual for more information, including
command-line options for the Application Libraries and Part Libraries.
| 43
L i v e L i n k ™ f o r E xc e l ® I n s t a l l a t i o n s
If you have licensed LiveLink™ for Excel®, the installer registers an add-in with
Excel. When the add-in is active, several tools for working with a COMSOL
Multiphysics model from an Excel worksheet are accessible from a COMSOL tab
in the Excel ribbon. You can, for example, extract model definitions and results.
You can also change model definitions in the worksheet, then update and
recompute the model.
Whenever you open a COMSOL Multiphysics model from Excel, a COMSOL
Multiphysics server is started where the model is loaded. The data transfer between
Excel and the COMSOL Multiphysics server application is performed using a
TCP/IP communication protocol, which accepts only local connections.
If you have licensed LiveLink™ for AutoCAD®, the installer registers an add-in
with AutoCAD. When the add-in is active a COMSOL Multiphysics tab appears
in AutoCAD.
The add-in enables two modes of setting up simulations based on the AutoCAD
design:
• In one mode you can run AutoCAD and the COMSOL Desktop
side-by-side and synchronize the geometry between the two. This mode
enables running parametric sweeps, as well as parameter optimizations using
an optimization solver (available with a license for the Optimization
Module).
• In offline synchronization mode you can save a synchronization file using
the add-in inside AutoCAD. You can then load the synchronization file into
the COMSOL Desktop running on a different computer from the CAD
software. This mode enables single synchronizations and parametric sweeps.
44 |
You can also install and register the add-in with AutoCAD by
installing the COMSOL Client, available for download from
[Link]. Such an installation enables the functionality
for preparing AutoCAD designs for synchronization, saving files
for offline synchronization, and running simulation apps that
synchronize geometry.
If you have licensed LiveLink™ for Inventor®, the installer registers an add-in for
Autodesk Inventor called LiveLink for COMSOL (6.4). This add-in should
appear in the Add-In Manager dialog that is accessible from the Options tab of the
Tools panel in the Autodesk Inventor user interface.
The add-in provides tools for preparing your Inventor design for simulation with
COMSOL Multiphysics. For example, you can set up dimensional parameters
that, together with the geometry, are synchronized with the COMSOL
Multiphysics model.
The add-in enables several modes of setting up simulations based on the Inventor
design:
• In one mode you can run Inventor and the COMSOL Desktop side-by-side
and synchronize the geometry between the two. This mode enables running
parametric sweeps, as well as parameter optimizations using an optimization
solver (available with a license for the Optimization Module).
• In another mode you can work with COMSOL Multiphysics simulations
inside Inventor. This latter mode is called the One-Window interface.
• In offline synchronization mode you can save a synchronization file using
the add-in inside Autodesk Inventor. You can then load the synchronization
file into the COMSOL Desktop running on a different computer from the
CAD software. This mode enables single synchronizations and parametric
sweeps.
| 45
You can also install and register the add-in with Inventor by
installing the COMSOL Client, available for download from
[Link]. Such an installation enables the functionality
for preparing Inventor designs for synchronization, saving files for
offline synchronization, and running simulation apps that
synchronize geometry.
If you have licensed LiveLink™ for PTC® Creo® Parametric™, the installer registers
an add-in for PTC Creo Parametric called the LiveLink for COMSOL (6.4). This
add-in should appear in the Auxiliary Applications dialog that is accessible from
the Tools tab, Utilities group in the PTC Creo Parametric user interface.
The add-in provides tools for preparing your PTC Creo Parametric design for
simulation with COMSOL Multiphysics. For example, you can set up dimensional
parameters that, together with the geometry, are synchronized with the
COMSOL Multiphysics model. You can access the functionality provided by the
add-in on the COMSOL Multiphysics tab in the PTC Creo Parametric user
interface.
The add-in enables two modes of setting up simulations based on the PTC Creo
Parametric design:
• In one mode you can run PTC Creo Parametric and the COMSOL Desktop
side-by-side and synchronize the geometry between the two. This enables
running parametric sweeps, as well as parameter optimizations using an
optimization solver (available with a license for the Optimization Module)
• In offline synchronization mode you can save a synchronization file using
the add-in inside PTC Creo Parametric. You can then load the
synchronization file into the COMSOL Desktop running on a different
computer from the CAD software. This mode enables single
synchronizations and parametric sweeps.
46 |
You can also install and register the add-in with PTC Creo
Parametric by installing the COMSOL Client, available for
download from [Link]. Such an installation enables the
functionality for preparing PTC Creo Parametric designs for
synchronization, saving files for offline synchronization, and
running simulation apps that synchronize geometry.
L i v e L i n k ™ f o r R ev i t ® I n s t a l l a t i o n s
If you have licensed LiveLink™ for Revit®, the installer registers an add-in for
Autodesk Revit. When the add-in is loaded a tab called COMSOL Multiphysics
appears in Revit. Here, you find tools for preparing your project for simulation
with COMSOL Multiphysics. For example, you can select the architectural
elements and rooms that will take part in the synchronization.
The add-in enables setting up simulations based on a Revit project by
synchronizing geometry between Revit and the COMSOL Desktop when these
are run side-by-side.
You can also install and register the add-in with Revit by installing
the COMSOL Client, available for download from
[Link]. Such an installation enables the functionality
for preparing Revit projects for synchronization, and running
simulation apps that synchronize geometry.
| 47
LiveLink™ for Solid Edge® Installations
If you have licensed LiveLink™ for Solid Edge®, the installer registers an add-in for
Solid Edge called LiveLink for COMSOL (6.4). This add-in should appear in the
Add-In Manager dialog that is accessible in the Solid Edge user interface if you
click the Applications button, and then select Add-Ins from the menu.
When the add-in is active a COMSOL Multiphysics tab appears in Solid Edge. The
add-in enables two modes of setting up simulations based on the Solid Edge
design:
• In one mode you can run Solid Edge and the COMSOL Desktop
side-by-side and synchronize the geometry between the two. This enables
running parametric sweeps, as well as parameter optimizations using an
optimization solver (available with a license for the Optimization Module)
• In offline synchronization mode you can save a synchronization file using
the add-in inside Solid Edge. You can then load the synchronization file into
the COMSOL Desktop running on a different computer from the CAD
software. This mode enables single synchronizations and parametric sweeps.
You can also install and register the add-in with Solid Edge by
installing the COMSOL Client, available for download from
[Link]. Such an installation enables the functionality
for preparing Solid Edge designs for synchronization, saving files
for offline synchronization, and running simulation apps that
synchronize geometry.
48 |
LiveLink™ for SOLIDWORKS® Installations
You can also install and register the add-in with SOLIDWORKS
by installing the COMSOL Client, available for download from
[Link]. Such an installation enables the functionality
for preparing SOLIDWORKS designs for synchronization, saving
files for offline synchronization, and running simulation apps that
synchronize geometry.
| 49
Cluster Installation
P REREQUISITES
The cluster installation instructions assume that you have a fully operational and
tested Windows cluster with the Windows Server 2016, Windows Server 2019, or
Windows Server 2022 operating system and that you are a fully qualified system
administrator, with administration access rights to the cluster head node and
compute nodes. A compatible version of Microsoft® HPC Pack for your version
of Windows Server is required.
LICENSE MANAGER
COMSOL Multiphysics requires a Floating Network License for running on
clusters. Please check the license file for the CLUSTERNODE feature, which needs to
be present to enable the cluster computing functionality. The license manager
needs to be accessible from all nodes in the cluster. Therefore it is often a good
idea to have it run on the head node.
INSTALLATION FOLDER
The COMSOL Multiphysics installation folder should be shared between all
compute nodes and the head node. The installation of the COMSOL software is
only needed on the head node. Alternatively, the software can be installed on C:\
on each compute node. Typically, the installation directory is accessed through a
UNC (uniform naming convention) path on the Windows private network that is
only seen by the compute nodes that belong to the cluster.
I NSTALLATION P ROCEDURE
In addition to the normal installation steps as outlined under Installing on
Windows, this section includes specific information for cluster installations.
During installation, on the Products page (see Products Page) ensure that you
select the COMSOL Cluster Components checkbox under Select products to install.
50 |
For the installation directory that you specify in the Destination folder text field,
remember to share the installation directory with the compute nodes after
installation.
If you installed COMSOL Multiphysics on a shared directory, you need to install
Microsoft Visual Studio® runtime libraries on each compute node. (See
[Link]/support/knowledgebase/1083 for instructions.)
| 51
License Manager Installation on Windows
Depending on your region and operating system, you might be required to install
and run the FlexNet® license manager in order to run COMSOL Multiphysics.
COMSOL uses the FlexNet® license manager software for license management.
The license manager comes bundled with any COMSOL installation. The
COMSOL software products and the license manager can be installed in any
order, unless you are installing based on a port number and hostname. In that
case, the license manager software needs to be installed and started before
installing COMSOL. You should use the version of the license manager that is
shipped with the newest version of COMSOL installed on your system.
Installation of any paid-for license on Windows requires a license file
([Link]), which is sent to you by a COMSOL representative by email. You
can view the contents of the license file by opening it with a text editor or word
processing software. If the file contains a line starting with the word SERVER,
then the license manager is required. For a Floating Network License, the purpose
of the license manager is to count the number of concurrent users and to give an
error message if the number exceeds the licensed amount. Depending on your
region and operating system, the license manager might also be needed for Single
User Licenses. In that case, the purpose of the license manager is to lock a
COMSOL session to a computer that is authorized by COMSOL.
The FlexNet® license manager software supports a heterogeneous network of
Windows, Linux, and macOS computers. Both the license manager and the
COMSOL software can run on either Windows, Linux, or macOS platforms. In
this context, the computer where the license manager is installed is called the
license server and any computer that has the COMSOL products installed is called
a client. Any type of networked computer can function as a license server, such as
a laptop, desktop, workstation, or centrally located server. COMSOL can be
installed anywhere, typically on a local PC or on a server where users access the
program over the network. A single computer can function as both license server
and client, holding both the license manager and COMSOL.
Even though the license manager and COMSOL can be installed in any order, a
full test of the installation cannot be done until both are installed.
52 |
System Requirements for the FlexNet® License Manager
Before starting the installation process, check that your system meets all necessary
requirements as listed at: [Link]/system-requirements. If you are
running the license manager on a license server where you do not intend to run
the COMSOL software, the system only needs to meet the listed hardware and
operating system requirements. The memory and graphics requirements do not
need to be met because the license manager is not as resource intensive as the
COMSOL software.
| 53
FlexNe t ® L i c e n s e M a n a g e r D o c u m e n t a t i o n
For detailed information on the FlexNet® license manager software, select File >
Help > Documentation, and scroll to the bottom of the page to locate a PDF copy
of the FlexNet Publisher License Administration Guide.
You can also find the guide in your installation directory. The default location is
C:\Program Files\COMSOL\COMSOL64\Multiphysics\doc\pdf\COMSOL_Multiphysics\
FlexNet
Note: This PDF file is only available if you have locally installed documentation.
The license file has the same structure on all platforms. In this section, the most
important parts of the license file are explained. Below is an example of the
contents of a [Link] file:
#------------------------------------------------------------------
# COMSOL 6.4 FNL License No: 1234567
# Visit [Link]/install for latest installation instructions
#------------------------------------------------------------------
SERVER [Link] 0050569e1b87 1718
USE_SERVER
VENDOR LMCOMSOL port=1719
FEATURE SERIAL LMCOMSOL 6.4 permanent uncounted \
VENDOR_STRING=C,5701108 HOSTID=ANY BORROW=720 SN=1234567 TS_OK \
SIGN=0C3A8BF6722E
INCREMENT COMSOL LMCOMSOL 6.4 permanent 4 SUPERSEDE DUP_GROUP=UHD \
ISSUED=6-JUN-2012 BORROW=720 SN=1234567 SIGN=123456789ABC
INCREMENT COMSOLGUI LMCOMSOL 6.4 permanent 4 SUPERSEDE DUP_GROUP=UHD \
ISSUED=6-JUN-2012 BORROW=720 SN=1234567 SIGN=123456789ABC
INCREMENT HEATTRANSFER LMCOMSOL 6.4 permanent 2 SUPERSEDE \
DUP_GROUP=UHD ISSUED=6-JUN-2012 BORROW=720 SN=1234567 \
SIGN=123456789ABC
INCREMENT CLIENTSERVER LMCOMSOL 6.4 permanent 4 SUPERSEDE \
DUP_GROUP=UHD ISSUED=6-JUN-2012 BORROW=720 SN=1234567 \
SIGN=123456789ABC
INCREMENT CLUSTERNODE LMCOMSOL 6.4 permanent 4 SUPERSEDE DUP_GROUP=U \
ISSUED=6-JUN-2012 BORROW=720 SN=1234567 SIGN=123456789ABC
INCREMENT COMSOLBATCH LMCOMSOL 6.4 permanent 2 SUPERSEDE \
DUP_GROUP=UHD ISSUED=6-JUN-2012 BORROW=720 SN=1234567 \
SIGN=123456789ABC
INCREMENT HEATTRANSFERBATCH LMCOMSOL 6.4 permanent 2 SUPERSEDE \
DUP_GROUP=UHD ISSUED=6-JUN-2012 BORROW=720 SN=1234567 \
SIGN=123456789ABC
54 |
THE COMMENT LINES
Comment lines can be included in the license file by starting them with the hash
symbol #. These lines have no effect on the license server or client.
| 55
Using the example license file above, configure the firewall to allow access to the
port numbers 1718 and 1719. If you have chosen other port numbers and
modified the [Link] file accordingly, configure the firewall to allow access to
your chosen port numbers. If you are unsure about which port numbers are free
or how to enable firewall port access, contact your system administrator.
You cannot modify anything in the [Link] file except the license server name
and (if necessary) port numbers, or the license might not work.
56 |
PRODUCT FEATURE NAME
| 57
PRODUCT FEATURE NAME
58 |
When you run distributed jobs on a cluster, the CLUSTERNODE feature is checked out
from each node.
| 59
licenses. When you run distributed jobs on a cluster, the CLUSTERNODE feature is
checked out from each node.
60 |
COMSOL S ERVER B ATCH J OB L ICENSE F EATURES
You can launch batch jobs from applications run with COMSOL Server. Batch
jobs can only be started from running applications and not from the command
line. The application always uses COMSOL Server batch license features. The
batch jobs will check out a COMSOLUSERCSL feature as well.
The name of the batch feature for COMSOL Server is COMSOLBACSL, and for
add-on products it is, for example, RFBACSL for the RF Module. In general, BACSL
is appended to the feature name for the corresponding add-on product.
A concurrent user can run an unlimited number of distinct batch processes using
a single license as long as the models in those jobs only differ by parameter values,
as defined in the Model Builder under Global Definitions > Parameters. This is
implemented by computing a hash value based on model object features using the
hash value as vendor value for the DUP_GROUP=UV keyword.
The COMSOLUSERCSL feature will also be checked out to keep track of distinct
COMSOL Server batch job users.
The CLUSTERNODECSL feature is checked out when the BACSL license features are
used. When you run distributed jobs on a cluster, the CLUSTERNODECSL feature is
also checked out from each node.
| 61
• Borrowed licenses can be returned early.
• Fully qualified domain name matching is not used.
• Minimum LINGER time is 0.
• TIMEOUT is supported. The minimum idle time is 900 seconds (15 minutes).
If TIMEOUT or TIMEOUTALL is not specified, idle licenses are never timed out.
• Each new license request scans all the license servers.
• The FLEXLM_DIAGNOSTICS environment variable is supported.
• The LM_LICENSE_FILE and LMCOMSOL_LICENSE_FILE environment variables are
supported, except when running the installer, since the installer needs full
control of which license file is being used. Note that COMSOL internally
sets LMCOMSOL_LICENSE_FILE to COMSOL64/Multiphysics/license/[Link]
if LMCOMSOL_LICENSE_FILE has not already been set by the user.
• License files are not case sensitive.
62 |
components can be found last in the list of software components, as seen in the
picture below:
If you do not intend to run the license manager on the computer for which you
are installing COMSOL software products, you can clear this checkbox during
installation.
If you want to install COMSOL on the same computer as the license manager, first
perform a complete COMSOL installation including the license manager software
components. When finished, skip the remainder of this section and continue with
Starting the License Manager.
To install only the license manager, follow the installation instructions for
COMSOL earlier in this document and, on the Products page, clear all
checkboxes except the one for the license manager.
| 63
S ta r t i n g t h e L i c e n s e M a n a g e r
4 Make an entry in the Service Name field, for example, COMSOL License Manager.
5 Specify the full paths to [Link] and [Link] by browsing to their
locations on your hard drive. The default location for [Link] is C:\Program
Files\COMSOL\COMSOL64\Multiphysics\license\win64\[Link], and for the
license file, it is
C:\Program Files\COMSOL\COMSOL64\Multiphysics\license\[Link]. For
the debug log file, you can use any name of your choice, for example,
64 |
[Link]. The default file path to the location of the license manager debug
log file is C:\ProgramData\COMSOL\[Link].
6 Select the Use Services checkbox (might not be possible on all platforms, but is
recommended when available) and then the Start Server at Power Up checkbox.
7 Click Save Service. The license manager now starts at automatically when you
reboot the license server computer. If you want to start the license manager
right away without restarting the license server computer, click Start Server on
the Start/Stop/Reread page of the FlexNet Control Panel.
The license manager is now ready to distribute licenses over the network. It writes
debug information to the log file COMSOL64\Multiphysics\license\[Link].
Once you start the license manager, it is good practice to verify that the license
manager service is running. Start the Windows Task Manager and go to the
Services page. Check that the LMCOMSOL service is running.
After the installation is complete and the license server manager and vendor
daemon are running on the license server, you can start using the COMSOL
products. For more information on how to run COMSOL Multiphysics, see
Running COMSOL Multiphysics on Windows.
| 65
Changing the License
If you have received a new license file — for example, when adding COMSOL
products to an existing license — replace the current license file with the new one.
Double-check the contents of this file to make sure it lists the products that the
license includes. See also The License Feature Names.
When the license file has changed, you must restart the license
manager or reread the license file; otherwise, it continues to use
the old license file still in memory.
OBTAINING A HOSTID
If you need to verify the hostid of the license server, you can follow the steps for
Obtaining the Hostid. Alternatively, if COMSOL is already installed on the license
server, you can determine the hostid by running the lmhostid command
COMSOL64/Multiphysics/license/win64/lmutil lmhostid
The hostid is typically the Ethernet address (also called a MAC address) of the
network card. An Ethernet address has six bytes, each with two hexadecimal digits,
giving a hostid with twelve hexadecimal digits. Alternatively, the hostid can be the
volume serial number of your C hard drive. The volume serial number has 4 bytes,
each with two hexadecimal digits, giving a hostid with eight hexadecimal digits.
COMSOL has been tested on both IPv6-only networks and hybrid IPv4/IPv6
networks. To make sure that the license manager uses IPv6, set the environment
variable FNP_IP_PRIORITY to 6. See the FlexNet Publisher License Administration
Guide for details.
66 |
Tr o uble s ho o t ing Lic en se Er r o r s
| 67
Running COMSOL Multiphysics on Windows
68 |
• COMSOL Launchers: Opens a folder with launchers for the following
additional COMSOL programs and utilities:
- Setup: Starts the COMSOL Setup program, which you can use to add,
remove, and repair COMSOL products and to change the license.
- Uninstall: Starts the COMSOL Uninstaller. For more information, see
Removing (Uninstalling) the COMSOL Installation.
- Update: Starts the COMSOL Installer in update mode.
- COMSOL Multiphysics Client 6.4: Starts a COMSOL Multiphysics client
that can be connected to a COMSOL Multiphysics server.
- COMSOL Multiphysics Server 6.4: Starts a COMSOL Multiphysics server
that a COMSOL Multiphysics client can connect to.
For more information on running COMSOL in client–server mode, see
Running COMSOL Multiphysics in Client–Server Mode.
- LMTOOLS: Starts the FlexNet license manager control panel (LMTOOLS).
For more information, see License Manager Installation on Windows.
- For launching COMSOL Multiphysics with any of the available graphics
rendering options — OpenGL® and software rendering — the following
shortcuts are available: COMSOL Multiphysics 6.4 (OpenGL), and
COMSOL Multiphysics 6.4 (Software).
- This folder also contains launchers for COMSOL Multiphysics, COMSOL
Documentation, COMSOL with MATLAB (if available), and COMSOL
with Simulink (if available) which appear on the main COMSOL
Multiphysics 6.4 Start menu.
S t a r t i n g C O M S O L M u l t i p h y s i c s f o r a C l a s s k i t L ic e n s e
| 69
Cr ea ting De sk top S h o r t c u t s M a n u a l l y
2 Right-click [Link] and select Create shortcut, which creates a shortcut with
a default name [Link] - Shortcut. If this shortcut is not created on the
Desktop, then move it there by drag-and-drop.
assuming that the default installation location has not changed by you during
installation.
To create a shortcut to the cross-platform user interface, right-click [Link]
and select Create shortcut, which creates a shortcut with a default name
[Link] - Shortcut. If this shortcut is not created on the Desktop, then move
it there by drag-and-drop.
(The complete text string must be written on a single row with spaces between the
command and each argument.)
Here, C:\Program Files\COMSOL\COMSOL64\Multiphysics represents the default
COMSOL installation directory. This can be changed in the Target field text
string if your installation is placed in a different folder.
70 |
C REATING D ESKTOP S HORTCUTS M ANUALLY FOR COMSOL WITH
MATLAB
If you manually create a desktop shortcut for a COMSOL with MATLAB, then,
in addition to the steps above, the shortcut’s Target needs to be modified with
additional options. Right-click the COMSOL shortcut icon and select Properties.
Change the text string in the Target field to
"C:\Program
Files\COMSOL\COMSOL64\Multiphysics\bin\win64\[Link]" matlab
(The complete text string must be written on a single row with spaces between the
command and each argument.)
Here, C:\Program Files\COMSOL\COMSOL64\Multiphysics represents the default
COMSOL installation directory and this can be changed in the Target field text
string if your installation is placed in a different folder.
(The complete text string must be written on a single row with spaces between the
command and each argument.)
Here, C:\Program Files\COMSOL\COMSOL64\Multiphysics represents the default
COMSOL installation directory and this can be changed in the Target field text
string if your installation is placed in a different folder.
R u n n i n g C O M S O L M u l t i p h ys i c s i n C l i e n t – S e r v e r M o d e
When you start COMSOL Multiphysics by, for example, double-clicking the
Windows desktop icon, COMSOL Multiphysics is run as a single application that
includes both the COMSOL Multiphysics client and COMSOL Multiphysics
server, as explained later in this section. However, the COMSOL client–server
architecture lets you access the COMSOL Multiphysics server — the COMSOL
computational engine — as a separate process. For example, the COMSOL
| 71
Desktop can act as a COMSOL Multiphysics client when connected to a
COMSOL Multiphysics server.
You need a Floating Network License to run the COMSOL Multiphysics server
and the COMSOL Multiphysics client on separate computers. However, any
COMSOL license is sufficient for running client and server on the same computer.
The client and server need not run on the same platform. For example, you can
run the COMSOL Desktop on Windows connecting to a COMSOL Multiphysics
server on a Linux or macOS computer. This enables offloading heavy-duty
computations from your personal laptop or desktop to run just the COMSOL
Desktop graphical user interface. A typical use would be to run the COMSOL
Multiphysics server on a computer with large amounts of memory (RAM) and
processing power and to use your personal computer for pre- and postprocessing
with the COMSOL Desktop.
72 |
CONNECTING A COMSOL CLIENT TO A COMSOL M ULTIPHYSICS SERVER
You can start a COMSOL Multiphysics client session by clicking COMSOL
Multiphysics Client in the COMSOL Launcher folder underneath your COMSOL
Multiphysics folder on the Windows Start menu. You can also connect to a
COMSOL Multiphysics server from the COMSOL Desktop by selecting File >
Connect to Server. When you start the Client, a Connect to Server window appears
prompting you for a computer name (Server) where the COMSOL Multiphysics
server is running, Port number, Username, and Password.
Once you have filled out this information and clicked OK, the COMSOL
Multiphysics server command window indicates that a COMSOL Multiphysics
client has connected. For more information on running COMSOL in client–server
mode, see the COMSOL Multiphysics Reference Manual.
R u n n i n g C O M S O L M u l t i p h ys i c s i n B a t c h M o d e
You can submit COMSOL Multiphysics batch jobs from the COMSOL Desktop
and the command line.
To run a COMSOL Multiphysics batch job from the COMSOL Desktop, you
need to make the Batch feature visible: in the Model Builder tree, click the Show
More Options button ( ) and select Batch and Cluster in the Show More Options
dialog. In the Model Builder, right-click a Study node and select Batch to create
batch jobs.
From the Windows command window, you can start batch jobs by using the
comsolbatchcommand. For example:
comsolbatch -inputfile [Link] -outputfile [Link]
To run a specific study add the command line option -study <tag>, where <tag>
is the tag of the study to run, for instance, std1. To see the tag, click the toolbar
button Model Tree Node Text in the Model Builder and select Tag.
| 73
The COMSOL Multiphysics Reference Manual has a dedicated section on
running COMSOL Multiphysics from the Windows command window, including
a list of COMSOL commands and associated syntax.
Multicore Settings
74 |
R u n n i n g C O M S O L M u l t i p h ys i c s o n C l u s t e r s
You can launch COMSOL cluster jobs from the COMSOL Desktop and the
command line. To run COMSOL Multiphysics on a cluster, you need to make the
cluster features visible: in the Model Builder tree, click the Show More Options
button ( ) and select Batch and Cluster in the Show More Options dialog. Then,
in the Model Builder, right-click a Study node and select Cluster Computing or
Cluster Sweep to create cluster jobs. Cluster computing requires a Floating
Network License.
The following terms occur frequently when describing the hardware for cluster
computing and shared-memory parallel computing:
• Compute node: The compute nodes are where the distributed computing
occurs. Each distributed COMSOL process resides in a compute node and
communicates with other compute nodes using MPI (message-passing
interface).
• Host: The host is a physical machine (hardware) with a network adapter and
unique network address. The host is part of the cluster. It is sometimes
referred to as a physical node.
• Core: The core is a processor core used in shared-memory parallelism by a
computational node with multiple processors.
The number of hosts and the number of compute nodes are usually the same. For
some special problem types, like very small problems with many parameters, it
might be beneficial to use more than one computational node on one host.
A tutorial for cluster testing is included in the Application Libraries window under
COMSOL Multiphysics/Cluster_and_Batch_Tutorials/micromixer_cluster.
| 75
QUICK TROUBLESHOOTING
• Your first step is to make sure you have the latest release installed. Check that
you have COMSOL Multiphysics 6.4 or later. Also make sure to install the
latest product updates.
• For Windows HPC Server, log in to each node with remote desktop and
start the COMSOL Desktop GUI. No error messages should be displayed.
• If you get the error message “Process status indicates that process is
running,” then cancel any running jobs in the Windows HPCS Job manager
or other scheduler that you use. In the COMSOL Desktop, locate the
External Process page at the lower-right. Click the Clear Status button.
For more information about how to run COMSOL Multiphysics in parallel on
Windows clusters, see the COMSOL Multiphysics Reference Manual. For
installation on Clusters, see Cluster Installation.
R u n n i n g C O M S O L M u l t i p h ys i c s o n t h e C l o u d
R u n n i n g C O M S O L M u l t i p h ys i c s w i t h M A T L A B
76 |
Alternatively, start COMSOL Multiphysics with MATLAB from the Start menu
by pointing to Programs, then to COMSOL Multiphysics 6.4, and then select
COMSOL Multiphysics 6.4 with MATLAB.
Running COMSOL Multiphysics with MATLAB starts a COMSOL Multiphysics
server and a MATLAB Desktop. The COMSOL Desktop is not started. You can
change the path to the MATLAB installation in the Preferences window accessed
from the Options menu of the COMSOL Desktop. For more information, see the
LiveLink™ for MATLAB® documentation.
R u n n i n g C O M S O L M u l t i p h ys i c s w i t h S i m u l i n k
Alternatively, start COMSOL Multiphysics with Simulink from the Start menu by
pointing to Programs, then to COMSOL Multiphysics 6.4, and then select
COMSOL Multiphysics 6.4 with Simulink.
Running COMSOL Multiphysics with Simulink starts a COMSOL Multiphysics
server and a MATLAB Desktop. The COMSOL Desktop is not started.
You can change the path to the MATLAB installation in the Preferences window
accessed from the Options menu of the COMSOL Desktop. For more
information, see the LiveLink™ for Simulink® documentation.
| 77
Installing on macOS
I n s ta l l at i o n O v e r th e I n te r n e t
This is usually sent to you by your COMSOL representative by email. Once you
locate your passcode, follow these steps to prepare for download and installation:
1 Click the link for downloading the software as given in the software download
email from your COMSOL representative. This link is identical or similar to:
[Link]/product-download.
2 If you have not already created a COMSOL Access account, you are prompted
to create it. When you have created the account, you can enter your license
passcode to associate it with your account information.
If you already created a COMSOL Access account, you can associate the license
file with your account on the COMSOL Access page under Manage Licenses at
[Link]/access/licenses.
3 Follow the web-based instructions to download the software.
4 Continue with the instructions in the section Downloading and Installing the
COMSOL Software.
A license passcode can also be used for class kit licenses (CKL).
78 |
Obtaining the Hostid
Follow these steps to obtain a hostid:
1 From the Apple menu, open System Settings and select Network.
2 Select the correct network adapter and then click Details....
3 Select the Hardware tab where you will find the MAC address listed.
4 If there are multiple network adapters, report the MAC address for all of them.
These numbers should each consist of 12 characters.
| 79
Obtaining the License File from a COMSOL Representative
Send the hostid information, as well as hostname, if applicable, in an email to your
COMSOL representative, who will respond with an email including an attached
license file ([Link]). Save this file to your local Home folder to ensure that
the COMSOL installer will be able to read it during the installation process. Avoid
protected folders such as Desktop, Documents, and Downloads.
Below is an example of the contents of a [Link] file for a Single User License
on macOS. The license file is a text file, and this example shows that the licensed
products are COMSOL Multiphysics, Particle Tracing Module, Subsurface Flow
Module, and LiveLink™ for Excel®.
#------------------------------------------------------------------
# COMSOL 6.4 NSL License No: 1234567 Windows/Mac
# Visit [Link]/install for latest installation instructions
#------------------------------------------------------------------
FEATURE SERIAL LMCOMSOL 6.4 permanent uncounted \
VENDOR_STRING=C,18000100200 HOSTID=ANY sort=100 SN=1234567 \
TS_OK SIGN=8045890A6FE4
FEATURE COMSOL LMCOMSOL 6.4 permanent uncounted HOSTID="70f2b13f4dfd \
0116b8cc761a" PLATFORMS="i86_n x64_n i86_mac x64_mac" \
SN=2076312 SIGN=E607EB680852
FEATURE PARTICLETRACING LMCOMSOL 6.4 permanent uncounted \
HOSTID="70f1a12f4dfc 0026b9cc760a" PLATFORMS="i86_n x64_n \
i86_mac x64_mac" SN=2076312 SIGN=3835733C6290
FEATURE SUBSURFACEFLOW LMCOMSOL 6.4 permanent uncounted \
HOSTID="70f1a12f4dfc 0026b9cc760a" PLATFORMS="i86_n x64_n \
i86_mac x64_mac" SN=2076312 SIGN=3A9BA162C9E4
FEATURE LLEXCEL LMCOMSOL 6.4 permanent uncounted HOSTID="70f1a12f4dfc \
0026b9cc760a" PLATFORMS="i86_n x64_n i86_mac x64_mac" \
SN=2076312 SIGN=EE9C11E44356
FEATURE COMSOLGUI LMCOMSOL 6.4 permanent uncounted \
HOSTID="70f1a12f4dfc 0026b9cc760a" PLATFORMS="i86_n x64_n \
i86_mac x64_mac" SN=2076312 SIGN=0D0A83382550
A Single User License file can normally not be edited or changed in any way by
the user but has to be identical to the one sent to you by a COMSOL
representative. However, if you were sent a license file that requires a license
manager, then minor edits are required. For information on the type of license file
required for installations using a license manager, see The License File.
Registering with COMSOL Access
Once you have saved your license file, follow these steps to register or login to
COMSOL Access and to start the installation:
1 Click the link for downloading the software as given in the software download
email from your COMSOL representative. This link is identical or similar to:
[Link]/product-download.
80 |
2 If you have not already created a COMSOL Access account, you are prompted
to create it. While creating the account, point to your license file ([Link])
to associate it with your account information.
If you already created a COMSOL Access account, then you can associate the
license file on the COMSOL Access page with your account under Manage
Licenses at [Link]/access/licenses.
3 Continue with the instructions in the next section.
D o w n lo a d i n g a n d I n s t a l l i n g t h e C O M S O L So f t w a r e
| 81
Installation from USB Flash Drive
The steps for running the COMSOL Installer are independent of the installation
media. If you have followed the above instructions, the COMSOL Installer should
now appear. Continue with the instructions for Windows in the section Running
the COMSOL Installer.
A u t o m a t e d I n s ta l l a t i o n
You can install the COMSOL software using an automated installation process
with minimal user interaction. This method requires installation from the offline
installer and an answer file.
The answer file is a text file with a specific format that contains predefined settings
for the COMSOL installer. If non-ASCII characters are used, the answer file is
expected to be UTF-8 encoded by default, but UTF-16 is also supported if the
file starts with a byte order mark (BOM).
A template answer file, [Link], with detailed usage information is
available in the DMG image.
To perform an automated installation:
1 Open the DMG file in Finder.
2 Copy [Link] to a local directory and customize it as needed.
3 Right-click COMSOL 6.4 Installer and select Show Package Contents.
4 Navigate to Contents > Resources and locate the setup executable.
5 Open a Terminal window.
82 |
6 Click and drag the setup executable to the terminal window. The full path
should be copied to the command prompt.
7 In the terminal, add -s and the full path of your [Link] file to the
command, with spaces in between. If needed, it should be possible to click and
drag the [Link] file to the terminal to input the path.
8 Run the command, which should now resemble something like this:
/Volumes/COMSOL64_full_macarm64/COMSOL\ 6.4\ [Link]/Contents/
Resources/setup -s /Users/username/Desktop/[Link]
or this:
/Volumes/COMSOL64_full_maci64/COMSOL\ 6.4\ [Link]/Contents/
Resources/setup -s /Users/username/Desktop/[Link]
To remove a COMSOL installation from your system, you can use the COMSOL
Installer’s uninstallation option. This removes all the files and directories that were
initially created by the COMSOL Installer. Files and directories that were created
or modified after the installation are not removed.
You can start the COMSOL Uninstaller in a few different ways:
• Launch the COMSOL Setup application from the installation directory, and
select Uninstall COMSOL 6.4.
• Launch the COMSOL Installer using the same method as for the original
installation, and select Uninstall COMSOL 6.4.
• In a terminal window, run the following command:
/Applications/COMSOL64/Multiphysics/setup uninstall
Alternatively, to remove the COMSOL installation, you can also delete the
COMSOL64 folder including all subfolders. The following file may also be added by
the installer: /Library/LaunchDaemons/[Link].
| 83
Product Updates and Application Library Update
A UTOMATED U PDATES
You can update the COMSOL software using an automated update process with
minimal user interaction using the abovementioned DAT-file. Consult
[Link]/product-update for detailed instructions.
You can change the path to the MATLAB installation in the Preferences > LiveLink
Connections window accessed from the Options menu of the COMSOL Desktop.
For more information, see the LiveLink™ for MATLAB® documentation.
84 |
Cluster Installation
SYSTEM REQUIREMENTS
The installation instructions above can also be followed for clusters. COMSOL
supports shared-memory parallelism and distributed-memory parallelism on
macOS with Apple silicon. For details on system requirements, including
additional software packages required for certain configurations, see
[Link]/system-requirements.
LICENSE MANAGER
COMSOL Multiphysics requires a Floating Network License for running on
clusters. Please check the license file for the CLUSTERNODE feature, which needs to
be present to enable the cluster computing functionality. The license manager
needs to be accessible from all nodes in the cluster. Therefore it is often a good
idea to have it run on the head node.
INSTALLATION FOLDER
The COMSOL installation folder should be shared between all compute nodes
and the head node.
FEATURES
During installation, make sure the Cluster Components feature is selected.
ACCESS TO CLUSTER
If you work on a computer that is not on the cluster, install COMSOL
Multiphysics on that computer. Typically, you use a scheduler to launch jobs on
the cluster. Make sure the scheduler client software is installed on that computer.
You can configure the installation to use the scheduler by changing the
[Link] file according to the section on MPI Options in the COMSOL
Multiphysics Reference Manual.
| 85
For more information on installing and running COMSOL on clusters, see
Running COMSOL on Clusters and the COMSOL Multiphysics Reference
Manual.
86 |
License Manager Installation on macOS
Many of the instructions for installing the license manager are similar to those for
Windows. This section covers only the differences when installing on macOS. For
general information on the license manager software, see License Manager
Installation on Windows.
For detailed information on the FlexNet® license manager software, select Help >
Documentation in the COMSOL Desktop and scroll to the bottom of the page to
locate a PDF copy of the FlexNet Publisher License Administration Guide.
Note: This PDF file is only available if you have locally installed documentation.
| 87
T h e Li c e n s e F i l e
The license file for use on macOS is identical to that for Windows. See The License
File and The License Features for more information.
The license manager components are automatically installed when installing the
COMSOL software unless otherwise specified on the Products page of the
COMSOL Installer; see Products Page. The checkbox for the license manager
components can be found last in the list of software components.
If you want to install COMSOL on the same computer as the license manager,
perform a complete COMSOL installation and make sure to include the license
manager components.
88 |
sudo /Volumes/COMSOL64_macarm64/COMSOL\ 6.4\ [Link]/Contents/
Resources/setup
or
sudo /Volumes/COMSOL64_maci64/COMSOL\ 6.4\ [Link]/Contents/
Resources/setup
When finished, skip the remainder of this section and continue with Starting the
License Manager.
To install only the license manager, follow the installation instructions for
COMSOL earlier in this document, and, on the Products page, clear all
checkboxes except the one for the license manager.
| 89
S ta r t i n g t h e L i c e n s e M a n a g e r
Either start the license manager manually or let it run automatically at startup.
or
cd /Applications/COMSOL64/Multiphysics/license/maci64
The server is now ready to distribute licenses over the network. It writes any debug
information to the log file /var/tmp/[Link].
or
sudo cp /Applications/COMSOL64/Multiphysics/license/maci64/
[Link] /Library/LaunchDaemons/
90 |
To disable automatic startup for the license manager and remove the license
manager daemon:
1 Stop and disable the daemon:
sudo launchctl unload -w /Library/LaunchDaemons/[Link]
Once you start the license manager, it is good practice to verify that the license
manager processes are running. Open the Activity Monitor and look for the
vendor daemon (LMCOMSOL) and license server manager (lmgrd) processes.
After the installation is complete and the license manager is running on the license
server, you can start using COMSOL Multiphysics. For more information on how
to run COMSOL Multiphysics, see Running COMSOL Multiphysics on macOS.
If you have received a new license file — for example, when adding COMSOL
products to an existing license — replace the current license file with the new one
| 91
and then restart the license manager or reread the license file. Double-check the
contents of the new file to make sure it lists all the products included in the license.
When the license file has changed, you must restart the license
manager or reread the license file; otherwise, it continues to use
the old license file still in memory.
or
cd /Applications/COMSOL64/Multiphysics/license/maci64
OBTAINING A HOSTID
If you need to verify the hostid of the license server, you can follow the steps in
Obtaining the Hostid. Alternatively, if COMSOL is already installed on the license
server, you can determine the hostid by running the lmhostid command:
COMSOL64/Multiphysics/license/macarm64/lmhostid
or
COMSOL64/Multiphysics/license/maci64/lmhostid
92 |
Using COMSOL on an IPv6 Network
COMSOL has been tested on both IPv6-only networks and hybrid IPv4/IPv6
networks. To make sure that the license manager uses IPv6 for communication,
set the environment variable FNP_IP_PRIORITY to 6. See the FlexNet Publisher
License Administration Guide for details.
| 93
Running COMSOL Multiphysics on macOS
After the installation is finished there are several COMSOL applications available.
How many are available depends on which products and licenses you have:
COMSOL with MATLAB Use this application for running COMSOL with
LiveLink™ for MATLAB®. This application is only available if you have a
LiveLink™ for MATLAB® license.
COMSOL with Simulink Use this application for running COMSOL with
LiveLink™ for Simulink®. This application is only available if you have a LiveLink™
for Simulink® license.
94 |
Running COMSOL Multiphysics from a Terminal Window
COMSOL Multiphysics can also be launched from a terminal window using the
shell script COMSOL64/Multiphysics/bin/comsol.
To run the comsol command more easily, include the COMSOL64/bin directory in
the path or make a symbolic link from /usr/bin/comsol to the comsol script.
Those with administrator privileges can create a symbolic link with the command
sudo ln -s /Applications/COMSOL64/Multiphysics/bin/comsol /usr/bin/comsol
You can launch COMSOL Multiphysics cluster jobs from the COMSOL Desktop
and the command line.
To run COMSOL Multiphysics on a cluster from the COMSOL Desktop, you
need to make the cluster feature visible: in the Model Builder tree, click the Show
More Options button ( ) and select Batch and Cluster in the Show More Options
dialog. Then in the Model Builder, right-click a Study node and select Cluster
Computing or Cluster Sweep to create cluster jobs. Cluster computing requires a
Floating Network License.
| 95
The following terms occur frequently when describing the hardware for cluster
computing and shared memory parallel computing:
• Compute node: The compute nodes are where the distributed computing
occurs. Each distributed COMSOL process resides in a compute node and
communicates with other compute nodes using MPI (message-passing
interface).
• Host: The host is a physical machine (hardware) with a network adapter and
unique network address. The host is part of the cluster. It is sometimes
referred to as a physical node.
• Core: The core is a processor core used in shared-memory parallelism by a
computational node with multiple processors.
The number of used hosts and the number of computational nodes are usually the
same. For some special simulation types, like very small simulations with many
parameters, it might be beneficial to use more than one computational node on
one host.
A tutorial model for cluster testing is included in the Application Libraries window
under COMSOL Multiphysics/Cluster_and_Batch_Tutorials/micromixer_cluster.
QUICK TROUBLESHOOTING
• First, ensure that you have the latest release installed. Check that you have
COMSOL 6.4 or later and make sure to install the latest product updates.
• If you get the error message Process status indicates that process is running,
then cancel any running jobs in the scheduler that you use. In the COMSOL
Desktop, locate the External Process page at the lower-right. Click the Clear
Status button.
R u n n i n g C O M S O L M u l t i p h ys i c s i n C l i e n t – S e r v e r M o d e
When you start COMSOL Multiphysics by, for example, launching the COMSOL
Multiphysics application, COMSOL Multiphysics is run as a single application that
includes the functionality of both the COMSOL Multiphysics Client and
COMSOL Multiphysics server, as explained later in this section. However, the
COMSOL client–server architecture lets you access the COMSOL Multiphysics
96 |
server — the COMSOL computational engine — as a separate process. For
example, the COMSOL Desktop can act as a COMSOL Multiphysics Client when
connected to a COMSOL Multiphysics server.
You need a Floating Network License to run the COMSOL Multiphysics server
and the COMSOL Multiphysics Client on separate computers. However, any
COMSOL license is sufficient for running the Client and the server on the same
computer.
The Client and server need not run on the same platform. For example, you can
run the COMSOL Desktop on macOS and connect to a COMSOL Multiphysics
server on a Windows or Linux computer. This enables offloading heavy-duty
computations from your personal laptop or desktop to run just the COMSOL
Desktop graphical user interface. A typical use would be to run the COMSOL
Multiphysics server on a computer with large amounts of memory (RAM) and
processing power and to use your personal computer for pre- and postprocessing
with the COMSOL Desktop.
| 97
COMSOL Multiphysics server is running, Port number, Username, and
Password.
Once you have filled out this information and clicked OK, the COMSOL
Multiphysics server terminal window displays information that a COMSOL
Multiphysics client has connected. For more information on running COMSOL
in client–server mode, see the COMSOL Multiphysics Reference Manual.
R u n n i n g C O M S O L M u l t i p h ys i c s i n B a t c h M o d e
You can submit COMSOL Multiphysics batch jobs from the COMSOL Desktop
and the command line.
To run a COMSOL Multiphysics batch job from the COMSOL Desktop, you
need to make the Batch feature visible: in the Model Builder tree, click the Show
More Options button ( ) and select Batch and Cluster in the Show More Options
dialog. In the Model Builder, right-click a Study node and select Batch to create
batch jobs.
From the terminal window, you can start batch jobs using the comsol batch
command. This is an example of how such a command could look:
comsol batch -inputfile [Link] -outputfile [Link]
To run a specific study add the command line option -study <tag>, where <tag>
is the tag of the study to run, for instance, std1. To see the tag, click the toolbar
button Model Tree Node Text in the Model Builder and select Tag.
The COMSOL Multiphysics Reference Manual includes a dedicated section on
running COMSOL Multiphysics from the terminal window, including a list of
COMSOL commands and associated syntax.
98 |
Multicore Settings
R u n n i n g C O M S O L M u l t i p h ys i c s o n C l u s t e r s
You can launch COMSOL Multiphysics cluster jobs from the COMSOL Desktop
and the command line. To run COMSOL Multiphysics on a cluster, you need to
make the cluster feature visible: in the Model Builder tree, click the Show More
Options button ( ) and select Batch and Cluster in the Show More Options dialog.
Then in the Model Builder, right-click a Study node and select Cluster Computing
| 99
or Cluster Sweep to create cluster jobs. Cluster computing requires a Floating
Network License.
A tutorial model for cluster testing is included in the Application Libraries window
under COMSOL Multiphysics/Cluster_and_Batch_Tutorials/micromixer_cluster.
For more information about how to run COMSOL Multiphysics in parallel on
clusters, see the COMSOL Multiphysics Reference Manual. For installation on
Clusters, see Cluster Installation for Windows and Cluster Installation for Linux.
R u n n i n g C O M S O L M u l t i p h ys i c s o n t h e C l o u d
100 |
Installing on Linux
I n s ta l l at i o n O v e r th e I n te r n e t
A license passcode can also be used for class kit licenses (CKL).
Continue with the instructions in the section Downloading and Installing the
COMSOL Software.
| 101
The hostid is used to lock the license to your hardware and needs to be sent by
you to a COMSOL representative prior to the license file being generated.
A trial license can be given to you with the intention to test the
software without any payment obligation for noncommercial or
nonproduction use. This option is not available in all regions. For
installation of a Single User Trial License on Linux, you can follow
the same instructions as for a paid-for license.
102 |
1 Click the link for downloading the software as given in the software download
email from your COMSOL representative. This link is identical or similar to:
[Link]/product-download.
2 If you have not already created a COMSOL Access account, you are prompted
to create it. While creating the account, point to your license file ([Link])
to associate it with your account information.
If you already created a COMSOL Access account, then you can associate the
license file on the COMSOL Access page with your account under Manage
Licenses at [Link]/access/licenses.
3 Continue with the instructions in the section below.
D o w n lo a d i n g a n d I n s t a l l i n g t h e C O M S O L So f t w a r e
| 103
I NSTALLATION FROM D OWNLOADED DVD I MAGE
1 Download the DVD image(s). The default image, COMSOL64_dvd.iso, is too
large to burn to disc and must be mounted directly. For installations that require
physical discs, download the files COMSOL64_dvd_1.iso, COMSOL64_dvd_2.iso,
and COMSOL64_dvd_3.iso instead.
2 When you have downloaded the DVD image(s), mount the single image
directly or burn the numbered images to discs. To directly mount the image,
you can use a loopback device:
mount -o loop,exec COMSOL64_dvd.iso /mnt
This section applies if you have received a DVD from a COMSOL representative.
The COMSOL Installer is a user interface tool that guides you through the
installation process. To start the installer:
1 Insert the COMSOL 6.4 DVD into the DVD drive.
2 If the DVD is not mounted automatically by your operating system, use the
mount command to mount it.
3 To start the installation, enter the command:
<drivepath>/setup
where <drivepath> is the mount point of the DVD drive, for example
/media/cdrom
You might have to mount the DVD with the option -o exec if your Linux
distribution mounts the DVD without execute options by default.
The COMSOL 6.4 Installer window appears. Now continue with the instructions
in the section Running The COMSOL Installer below.
104 |
Installation from USB Flash Drive
You might have to mount the USB Flash Drive with the option -o exec if your
Linux distribution mounts the drive without execute options by default.
4 The COMSOL 6.4 Installer window appears. Now continue with the
instructions in the section Running The COMSOL Installer below.
The steps for running the COMSOL Installer are independent of the installation
media option you use. If you have followed the above instructions, the COMSOL
Installer should now appear. For a detailed description and screenshots of the
different COMSOL Installer steps, see the instructions for Windows in the section
Running the COMSOL Installer. The procedure for running the COMSOL
Installer on Linux is similar and summarized below with the differences from
installation on Windows highlighted:
1 When the installer window appears, click New Installation.
2 Read the license agreement, select I accept the terms of the license agreement,
specify License information, and then click Next.
3 If you have a Named Single User License and you are installing the software on
the license server, a dialog opens up and you are asked to enter the username to
bind the license to.
4 Select the products to install and specify the path to the COMSOL installation
directory. Installing in the default path requires administrative rights.
5 Click Next.
6 If you have licensed LiveLink™ for MATLAB® or LiveLink™ for Simulink®, then
specify the MATLAB root folder.
| 105
7 Click Next.
8 Click Install to start the installation.
9 When the installation process is finished, the Finish window appears. If errors
arose during installation, this window issues a notification. The installer also
writes a log entry into the text file [Link], which resides in the
specified installation directory. Click Close to quit the installer. If you installed
from DVD, use the unmount and eject commands to unmount and eject the
DVD. Some Linux configurations automatically unmount and eject the DVD
when you press the DVD drive button.
10 To make sure all users can easily start COMSOL Multiphysics, include the
comsol64/bin directory in all users’ paths or make a symbolic link from /usr/
local/bin/comsol to the comsol command (see the Linux ln command). The
installer can do this step automatically if you run the installer as an
administrator.
You may also need to install the fonts (using the normal Linux
distribution methods) for the languages that you want to use
when running COMSOL Multiphysics.
106 |
A u t o m a t e d I n s ta l l a t i o n
You can install the COMSOL software using an automated installation process
with minimal user interaction. This method requires installation from a DVD or
DVD image and an answer file.
The answer file is a text file with a specific format that contains predefined settings
for the COMSOL installer. If non-ASCII characters are used, the answer file is
expected to be UTF-8 encoded by default, but UTF-16 is also supported if the
file starts with a byte order mark (BOM).
A template answer file, [Link], with detailed usage information is
available on the DVD. Create a copy of this file and customize it with a text editor.
When the answer file is ready, start the installation by running
<drivepath>/setup -s <answerfile>
where <drivepath> is the media mount point, and where <answerfile> is the
complete path to your answer file.
To remove a COMSOL installation from your system, you can use the COMSOL
Installer’s uninstallation option. This removes all the files and directories that were
initially created by the COMSOL Installer. Files and directories that were created
or modified after the installation are not removed.
You can start the COMSOL Uninstaller in a few different ways:
• Launch the COMSOL Installer using the same method as for the original
installation, and select Uninstall COMSOL 6.4.
• In a terminal window, run the following command:
/usr/local/comsol64/multiphysics/setup uninstall
| 107
Product Updates and Application Library Update
A UTOMATED U PDATES
You can update the COMSOL software using an automated update process with
minimal user interaction using the abovementioned DAT-file. Consult
[Link]/product-update for detailed instructions.
You can change the path to the MATLAB installation in the Preferences > LiveLink
Connections window accessed from the Options menu of the COMSOL Desktop.
For more information, see the LiveLink™ for MATLAB® documentation.
Cluster Installation
108 |
including cluster support. This section is dedicated to distributed-memory parallel
installation.
COMSOL Multiphysics can distribute computations on compute clusters using
the MPI model. One large simulation can be distributed across many compute
nodes. Also, parametric sweeps can be done with individual parameter cases
distributed to each cluster node.
SYSTEM REQUIREMENTS
The installation instructions above can also be followed for clusters. COMSOL
supports shared-memory parallelism and distributed-memory parallelism on
Linux. For details on system requirements, including additional software packages
required for certain configurations, see [Link]/system-requirements.
LICENSE MANAGER
COMSOL Multiphysics requires a Floating Network License for running on
clusters. Please check the license file for the CLUSTERNODE feature, which needs to
be present to enable the cluster computing functionality. The license manager
needs to be accessible from all nodes in the cluster. Therefore it is often a good
idea to have it run on the head node.
INSTALLATION FOLDER
The COMSOL installation folder should be shared between all compute nodes
and the head node.
FEATURES
During installation, make sure the Cluster Components feature is selected.
ACCESS TO CLUSTER
If you work on a computer that is not on the cluster, install COMSOL
Multiphysics on that computer. Typically, you use a scheduler to launch jobs on
the cluster. Make sure the scheduler client software is installed on that computer.
You can configure the installation to use the scheduler by changing the
[Link] file according to the section on MPI Options in the COMSOL
Multiphysics Reference Manual.
For more information on installing and running COMSOL on clusters, see
Running COMSOL on Clusters and the COMSOL Multiphysics Reference
Manual.
| 109
License Manager Installation on Linux
Many of the instructions for installing the license manager are similar to those for
Windows. This section only covers the differences for Linux installations. For
more information, see License Manager Installation on Windows.
FlexNe t ® L i c e n s e M a n a g e r S o f t w a r e C o m p o n e n t s
FlexNe t ® L i c e n s e M a n a g e r D o c u m e n t a t i o n
For detailed information on the FlexNet® license manager software, select Help >
Documentation in the COMSOL Desktop and scroll to the bottom of the page to
locate a PDF copy of the FlexNet Publisher License Administration Guide.
Note: This PDF file is only available if you have locally installed documentation.
110 |
T h e Li c e n s e F i l e
The license file for use on Linux is identical to that for Windows, except in the case
of a Named Single User License, which is described below. See The License File
and The License Features for general license file information.
Each INCLUDE row in the [Link] file has a corresponding FEATURE row in the
[Link] file (with the USER_BASED keyword). The second item on each
FEATURE row is the name of the feature for which you have a license.
For more information on which FEATURE items are available, see The License File
and The License Features.
The [Link] file needs to point to the options file. The path to the options
file is indicated by the options keyword. If your options file is placed here:
/usr/local/comsol64/multiphysics/license/[Link]
The license manager components are automatically installed when installing the
COMSOL software unless otherwise specified on the Products page of the
COMSOL installer; see Products Page. The checkbox for the license manager
components can be found last in the list of software components.
| 111
If you want to install COMSOL on the same computer as the license manager and
you did not choose to install the license manager as a service, first perform a
complete COMSOL installation including the license manager software
components.
To install only the license manager, follow the installation instructions for
COMSOL earlier in this document, and on the Products page, clear all
checkboxes except the one for the license manager.
When finished, skip the remainder of this section and continue with Starting the
License Manager below.
112 |
AUTOMATED LICENSE MANAGER INSTALLATION
Alternatively, the license manager can be installed using an automated installation
process with minimal user interaction, see Automated Installation. Set
licmanager = 1 in the answer file to install the license manager. It is also possible
to automatically configure the license manager to run on systemd-based Linux
distributions. Use [Link] = 1 in the [Link] file and
provide values for the other [Link].* lines.
S ta r t i n g t h e L i c e n s e M a n a g e r
You can start the license manager manually or it can run automatically at boot.
The server is now ready to distribute licenses over the network. It writes any debug
information to the log file /var/tmp/[Link].
| 113
systemd-Based Systems
For Linux distributions that use systemd, use the [Link] file, located
in the comsol64/license/glnxa64 or comsol64/license/glnxarm64 directory, to
start the license manager. To use [Link], do the following steps:
1 Update the paths to lmgrd, [Link], and [Link] in case you have
different locations for these files.
2 Optionally, replace username with an actual username. Preferably do not use
root; instead, use the account used to install COMSOL or another account with
access to both the lmgrd executable and the log file location above.
3 Create a /usr/tmp directory if it does not exist and set its permissions to 1777
with the chmod 1777 /usr/tmp command.
4 If you already have the license manager installed using systemd, stop the
previous version of it by typing systemctl stop lmcomsol.
5 Copy the [Link] file to /usr/lib/systemd/system/ and run the
systemctl enable lmcomsol and systemctl start lmcomsol commands to
activate the license manager.
Once you start the license manager, it is good practice to verify that the license
manager processes are running. Use administrative commands such as top or ps to
check that both the vendor daemon (LMCOMSOL) and the license server manager
(lmgrd) are running. On Linux distributions that use systemd, if the license
manager is installed as a service according to the instructions, you can run service
lmcomsol status instead.
114 |
Starting COMSOL Multiphysics
After the installation is complete and the license manager is running on the license
server, you can start using COMSOL Multiphysics. For more information on how
to run COMSOL Multiphysics, see Running COMSOL Multiphysics on Linux.
If you have received a new license file — for example, when adding COMSOL
products to an existing license — replace the current license file with the new one.
Double-check the contents of this file to make sure it lists the products that the
license includes.
When the license file has been changed, you must restart the
license manager or reread the license file; otherwise, it continues
to use the old license file still in memory.
OBTAINING A HOSTID
If the COMSOL software is already installed on your license server, you can
determine the hostid by executing the lmhostid command:
comsol64/multiphysics/license/glnxa64/lmhostid
or
comsol64/multiphysics/license/glnxarm64/lmhostid
| 115
Using COMSOL on an IPv6 Network
COMSOL has been tested on both IPv6-only networks and hybrid IPv4/IPv6
networks. To make sure that the license manager uses IPv6 for communication,
set the environment variable FNP_IP_PRIORITY to 6. See the FlexNet License
Administration Guide for details.
T r o u b l e s h o o ti n g L i c e n s e E r r o r s
116 |
Running COMSOL Multiphysics on Linux
R u n n i n g C O M S O L M u l t i p h ys i c s
If you are running a Linux version with a graphical desktop environment, you
might find a COMSOL Multiphysics icon that you can simply click to start
COMSOL Multiphysics in the menus. Alternatively, using a terminal window, you
can run the comsol command. If it is not available, ask your system manager to
make it available to you, or, if you have administrative privileges on your Linux
system, add the comsol command to the search path. The setup can do this
automatically for you during installation if you run it with root privileges. The
comsol command is located in the bin folder in the COMSOL installation
directory. This is a typical example of a command that adds comsol to the search
path (assuming you are logged in as root):
ln -s /usr/local/comsol64/multiphysics/bin/comsol /usr/bin/comsol
Multicore Settings
| 117
• Speedup is how many times faster a job runs on N cores compared to 1 core,
on a specific compute node. The speedup depends on the simulation type,
the hardware used, and the hardware drivers used.
On Linux, the default number of processor cores used by COMSOL Multiphysics
is the total number of available physical cores. For example, if you have a 2 x dual
core machine, 4 cores are used in parallel by a COMSOL process.
R u n n i n g C O M S O L M u l t i p h ys i c s i n B a t c h M o d e
You can submit COMSOL Multiphysics batch jobs from the COMSOL Desktop
and the command line.
To run a COMSOL Multiphysics batch job from the COMSOL Desktop, you
need to make the Batch feature visible: in the Model Builder tree, click the Show
More Options button ( ) and select Batch and Cluster in the Show More Options
dialog. In the Model Builder, right-click a Study node and select Batch to create
batch jobs.
From a terminal window, you can start batch jobs using the comsol batch
command. This is an example of such a command:
comsol batch -inputfile [Link] -outputfile [Link]
To run a specific study add the command line option -study <tag>, where <tag>
is the tag of the study to run, for instance, std1. To see the tag, click the toolbar
button Model Tree Node Text in the Model Builder and select Tag.
The COMSOL Multiphysics Reference Manual has a dedicated section on
running COMSOL Multiphysics from a terminal window, including a list of
COMSOL commands and associated syntax.
118 |
R u n n i n g C O M S O L M u l t i p h ys i c s i n C l i e n t – S e r v e r M o d e
When you start COMSOL Multiphysics by, for example, entering the comsol
command with no additional arguments, COMSOL Multiphysics is run as a single
application that includes the functionality of both the COMSOL Multiphysics
client and COMSOL Multiphysics server, as explained later in this section.
However, the COMSOL client–server architecture lets you access the COMSOL
Multiphysics server — the COMSOL computational engine — as a separate
process. For example, the COMSOL Desktop can act as a COMSOL Multiphysics
client when connected to a COMSOL Multiphysics server.
You need a Floating Network License to run the COMSOL Multiphysics server
and the COMSOL Multiphysics client on separate computers. However, any
COMSOL license is sufficient for running the client and the server on the same
computer.
The client and server need not run on the same platform. For example, you can
run the COMSOL Desktop on Windows connecting to a COMSOL Multiphysics
server on a Linux computer. This enables offloading heavy-duty computations
from your personal laptop or desktop to run just the COMSOL Desktop graphical
user interface. A typical use would be to run the COMSOL Multiphysics server on
a computer with large amounts of memory (RAM) and processing power and to
use your personal computer for pre- and postprocessing with the COMSOL
Desktop.
You are then prompted for a username and password. You can use any username
and password of your choice, it is only used for connecting a COMSOL
Multiphysics client with a COMSOL Multiphysics server.
When the COMSOL Multiphysics server starts, it listens for a COMSOL
Multiphysics client connection on the port listed in the command window.
| 119
Connecting a COMSOL Multiphysics Client to a COMSOL Multiphysics Server
You can start a COMSOL Multiphysics client session from the COMSOL
Desktop by selecting Connect to Server from the File menu in the COMSOL
Desktop. You can also start a COMSOL Multiphysics client session from a
terminal window by running the comsol command with the client argument:
comsol client
When you start the client, a Connect to COMSOL Multiphysics Server window
appears prompting you for a computer name (Server) where the COMSOL
Multiphysics Server is running, Port number, Username, and Password:
Once you have filled out this information and clicked OK, the COMSOL
Multiphysics server terminal window displays information that a COMSOL
Multiphysics client has connected. For more information on running COMSOL
in client–server mode, see the COMSOL Multiphysics Reference Manual.
You can launch COMSOL Multiphysics cluster jobs from the COMSOL Desktop
and the command line.
120 |
To run COMSOL Multiphysics on a cluster from the COMSOL Desktop, you
need to make the cluster feature visible: in the Model Builder tree, click the Show
More Options button ( ) and select Batch and Cluster in the Show More Options
dialog. Then in the Model Builder, right-click a Study node and select Cluster
Computing or Cluster Sweep to create cluster jobs. Cluster computing requires a
Floating Network License.
The following terms occur frequently when describing the hardware for cluster
computing and shared memory parallel computing:
• Compute node: The compute nodes are where the distributed computing
occurs. Each distributed COMSOL process resides in a compute node and
communicates with other compute nodes using MPI (message-passing
interface).
• Host: The host is a physical machine (hardware) with a network adapter and
unique network address. The host is part of the cluster. It is sometimes
referred to as a physical node.
• Core: The core is a processor core used in shared-memory parallelism by a
computational node with multiple processors.
The number of used hosts and the number of computational nodes are usually the
same. For some special simulation types, like very small simulations with many
parameters, it might be beneficial to use more than one computational node on
one host.
A tutorial model for cluster testing is included in the Application Libraries window
under COMSOL Multiphysics/Cluster_and_Batch_Tutorials/micromixer_cluster.
QUICK TROUBLESHOOTING
• First, ensure that you have the latest release installed. Check that you have
COMSOL 6.4 or later and make sure to install the latest product updates.
• If you get the error message Process status indicates that process is running,
then cancel any running jobs in the scheduler that you use. In the COMSOL
Desktop, locate the External Process page at the lower-right. Click the Clear
Status button.
| 121
R u n n i n g C O M S O L M u l t i p h ys i c s o n t h e C l o u d
R u n n i n g C O M S O L M u l t i p h ys i c s w i t h M A T L A B
122 |
R u n n i n g C O M S O L M u l t i p h ys i c s w i t h S i m u l i n k
| 123
COMSOL Security
C O M S O L M u l t i p h y s i c s C li e n t – S e r v e r S e c u r i t y
P ASSWORD S ECURITY
You can control if the client–server password is stored on file between sessions. In
the COMSOL Multiphysics client, select the Remember username and password
checkbox in the Connect to COMSOL Multiphysics Server dialog to store the
password between sessions. In the COMSOL Multiphysics server, by using the
option -passwd nostore, you can avoid storing the password on file. If you do not
provide the option, the password will be stored on file, and you will not be asked
to provide it when you start a new server session.
Before storing your password on file, it is hashed by the SHA256 algorithm. This
means that an adversary that gets access to your password file will not easily be able
to obtain the password you originally entered. However, if an adversary gets access
to your password file, the adversary could login on a COMSOL Multiphysics
server started by you, or, potentially, have you log in on a hostile COMSOL
Multiphysics server.
By default, both the COMSOL Multiphysics client and the COMSOL
Multiphysics server write the hashed password to the file .comsol/v64/
124 |
[Link] in your home directory. Both COMSOL Multiphysics client
and server will attempt to make the password file inaccessible for other users by
introducing access restrictions. When you use the client and server on the same
computer there will only be a single password file by default. This could also
happen if you run the client and server on separate computers, if your home
directory is located on a shared network drive.
You should avoid storing your client–server password on file if your home
directory is located on a network drive that does not encrypt network traffic. If
your password is stored on a local drive, your client–server password security will
be improved if the drive is encrypted. Generally, a user with administrative access
to your computer could get access to your password file.
The COMSOL Multiphysics client–server is designed to protect your password
file during network traffic between client and server (see the next section).
TCP/IP C ONNECTION
The TCP/IP communication between client and server is not encrypted.
However, the server and client are mutually authenticated using a challenge
handshake authentication protocol (CHAP), which means that the client–server
password cannot be easily obtained by an adversary that can eavesdrop the
network traffic between client and server.
The TCP connection between the client and the server is otherwise not encrypted.
If you require encryption of the TCP connection, you can use third-party software
based on protocols such as SSH or IPSEC and tunnel the client–server traffic.
When doing this you may need access to the port number used for client–server
communication. The port number is 2036 by default but can be controlled and
modified both from the client and the server.
| 125
commands or initiate network traffic on the client or server computer. These
operations are performed with the same privileges as the user that started the
COMSOL Multiphysics client or server.
When running model methods or add-ins in for COMSOL Multiphysics client–
server, these are run using the security settings for applications (see the next
section).
Models and applications can be protected with the AES256 encryption algorithm
using passwords for running and editing. For applications without a running
password, the model or application is decrypted using a secret but hard-coded
password. To achieve the highest security, use both an editing and a running
password.
Protecting a model or application only encrypts the XML data structure that
represents the Model Builder and the Application Builder data structures.
Auxiliary data structures describing the geometry, mesh, and solution are not
encrypted.
Compiled physics builder files are obfuscated with the AES256 encryption
algorithm using a hard-coded password.
Me thod Security
You can use the Application Builder to write Java methods that are run from
applications, model methods, and add-ins. When you run those methods, the
privileges of the methods are controlled by the security settings that you find in
the Preferences window under Security in the COMSOL Multiphysics desktop.
The security settings will apply to all applications, model methods, and add-ins
that you load in COMSOL Multiphysics.
Note that any MPH file may contain applications, model methods, and add-ins. If
you intend to load an MPH file from an unreliable source, you should enable all
security features. You can do that by reverting to Factory Settings and clearing all
checkboxes under General in the security settings, and finally clicking OK.
126 |
S ECURITY S ETTINGS
If your MPH files come from reliable sources or you make them yourself, you can
keep the factory settings for security. If you write methods that require additional
system access, you can give methods more privileges, but you should revert to the
original settings if the situation changes. Find a general description of the security
settings in the section Security Settings in the COMSOL Multiphysics Reference
Manual.
A DD -I N S ECURITY
For add-ins that require extended privileges permanently, you can disable all
security settings for certain methods in the add-in by using the comsoltrust
command. This command makes it possible to maintain restricted security settings
for applications generally but allow certain adds-in to operate.
E MAIL P ASSWORD
When your password to the SMTP email server is stored as preference, the
behavior is operating system dependent.
Windows
The password is encrypted using the built-in Windows data protection mechanism
for the current user. The encrypted password is stored in the preference files
%USERPROFILE%\.comsol\v64\[Link] and
%USERPROFILE%\.comsol\v64\[Link].
For information about COMSOL Server security, see the section Security in the
COMSOL Server Manual.
| 127
Troubleshooting License Errors
If you have questions or problems with your installation, start by checking the
COMSOL Support Knowledge Base at [Link]/support/
knowledgebase for up-to-date information about installation and license issues. If
this does not help, then please contact COMSOL technical support at
support@[Link].
L ICENSE E RRORS
This section summarizes the most common postinstallation error messages
generated by the COMSOL software, and it gives some advice how to
troubleshoot them. For a complete list of error messages, see the FlexNet license
manager documentation. This documentation is shipped with your COMSOL
installation; see FlexNet® License Manager Documentation on where to find it.
128 |
If you need to review the license manager log file, or send it to COMSOL
technical support, this is where you usually find it (depending on choices you
made during the installation):
• Windows: C:\ProgramData\COMSOL\[Link].
• macOS: /var/tmp/[Link]
• Linux: /var/tmp/[Link]
If you need to access the license file, this is where you usually find it:
• Windows:
C:\Program Files\COMSOL\COMSOL64\Multiphysics\license\[Link]
• macOS: /Applications/COMSOL64/Multiphysics/license/[Link]
• Linux: /usr/local/comsol64/multiphysics/license/[Link]
License error A general license error has occurred. Check the error message for
details that might help solve the problem. If you need help in
interpreting the information, see the FlexNet license manager
documentation or send the complete error message to
support@[Link].
License error: -1. The license file is missing or your system settings do not allow you to
Cannot find license read the file. Review the license manager installation steps above and
file. check that you have administrative rights on your computer.
License error: -2. There is a formatting problem with your license file. This can happen if
Invalid license file you edit it with a word processing software such as Microsoft Word
syntax. which inserts extra (invisible) characters. Use a plain text editor
instead (on Windows: Notepad, WordPad, or similar). Formatting
problems can also happen if the file is damaged while being copied or
emailed from one computer to another.
License error: -4. The license manager has detected that all available licenses of a
Licensed number certain COMSOL product have been used by other users. Contact
of users already your license administrator and report this problem. You might need
reached. more licenses of one of the add-on products.
License error: -5. The license manager has encountered a problem during startup.
No such feature Check the license manager log file for error messages.
exists. Please send the log file to support@[Link] if you want help in
interpreting the information.
NOTE: The license manager creates the log file. If there is no log file,
make sure to first start the license manager. Please refer to one of the
License Manager Installation sections of this manual for instructions
how to install and start the COMSOL license manager.
| 129
ERROR MESSAGE EXPLANATION
License error: -10. This error message indicates that you have a time-limited (trial) license
Feature has and that your license has expired. Contact your license administrator
expired. to see if a more recent license file is available. You can also contact a
COMSOL representative to renew your time-limited license.
License error: -12. Check that no firewall on the COMSOL client is preventing the
Invalid returned connection from the COMSOL client to the license server.
data from license Temporarily disable any firewall on the COMSOL client to see if that
server system. helps.
Check that no firewall on the license server is preventing the
connection from the COMSOL client computer to the license
manager, or the connection from the lmgrd daemon and the
LMCOMSOL daemon.
If the problems remain, send the license manager log file to
support@[Link].
130 |
ERROR MESSAGE EXPLANATION
License error: -15. The license manager has not been installed or started yet. If the first
Cannot connect to line of your [Link] file looks like this:
license server SERVER mylicserver 000123456789 1718
system. a license manager is required. Please refer to the License Manager
Installation sections of this manual for instructions on how to install
and start the COMSOL license manager.
Check that no firewall on the COMSOL client is preventing the
connection from the COMSOL client to the license server.
Temporarily disable any firewall on the COMSOL client to see if that
helps.
Check that no firewall on the license server is preventing the
connection from the COMSOL client computer to the license
manager.
Check that the [Link] file on the COMSOL client computer
points to the correct license server hostname. First, find the
[Link] according to the instructions above.
Check that the first line has the correct license server hostname. For
example, if your license server hostname is apollo, the first row in
the [Link] file should look like this:
SERVER apollo 000123456789 1718
If the COMSOL client computer does not recognize apollo as a
proper hostname, it might help to instead use the fully qualified
domain name ([Link]) or the IP address. If
neither of these work, there might be a problem with DNS or the
HOSTS file on the client. Please ask your system administrator for
advice on how to connect with TCP/IP to the license server.
Finally, the license manager might have encountered a problem during
startup. Check the license manager log file for error messages.
NOTE: The log file is created by the license manager after it has been
started.
Please send the log file to support@[Link] if you want help in
interpreting the information.
For information about a loss of connection to the license server while
running the COMSOL Multiphysics software, see License Server
Interruptions below.
License error: -39. The error means that your username does not match the one listed in
User/host not on the license manager options file, [Link]. To get access to
INCLUDE list for COMSOL, ask your license/system administrator for help. When the
feature. username in the options file is changed, the license manager must be
shut down and restarted to give the new user immediate access to
COMSOL.
| 131
ERROR MESSAGE EXPLANATION
License error: -88. The software has detected that a system clock has been set back.
System clock has Please make sure that your computer’s clock is set to the current local
been set back. time and date. If the problem remains check that there are no files on
your hard drive that have a future date.
License error: -96. Please make sure that the SERVER hostname in the [Link]
License server file is valid and that the TCP/IP network connection between the
machine is down application computer and the license server is working properly.
or not responding. This error could also indicate that your firewall is not configured
properly in order to let the license manager and vendor daemon
network traffic through (typically ports 1718 and 1719). It could also
indicate problems with other network security settings. Contact your
systems administrator for help.
License error: -97. The license manager has encountered a problem during startup.
The desired Check the license manager log file for error messages.
vendor daemon is NOTE: The log file is created by the license manager after it has been
down. started.
Please send the log file to support@[Link] if you want help in
interpreting the information.
Click Save and Exit to save the current COMSOL Multiphysics model and then
exit, or click Exit to exit from the COMSOL Desktop without saving. You could
also wait to see if the connection can be reestablished. If you choose to save the
mode, you get a choice of location for the file. In addition, if there are models
on the server that are not used by the COMSOL Desktop, they are saved
immediately in their original locations with autosaved appended to their
132 |
filenames in order not to overwrite the original files. Models that have never
been saved are saved in the recovery folder also when recovery is not enabled.
However, if there is no recovery file and the program has stopped when
executing a runnable, it is not possible to save the model. If you are running a
COMSOL batch job, the output file is used if it is not identical to the input file.
• As soon as the connection to the license servers has been lost, you will not
be able to add feature nodes with license requirements to the Model Builder.
Trying to add such nodes result in an error message such as “Could not
obtain license for Floating Potential 1 {fb1}, Required product: AC/DC
Module” and a license error -15 (see list of license errors above).
| 133
134 |
Index
| 135
desktop shortcuts 71 utility program, macOS 87
configuring license features 61 utility program, Windows 53
core 75 Floating Network License
CPU-Locked Single User License 12 definition 12
cross-platform user interface 68, 70 Linux, client servers and 119
csh program 122 Linux, clusters and 95, 121
Linux, clusters installation and 85, 109
D dongle 15
macOS, client server and 97
downloading product 9
macOS, clusters and 100
Linux 101
management software 14
Linux, DVD 104
Windows, client server and 72
macOS 78
Windows, cluster installation and 50
troubleshooting 128
Windows, clusters and 75
Windows 16
Windows, definition 52
Windows, DVD 19
H hard disk serial number 17
E errors, license 128
hardware lock 15
Ethernet address
host 75
Linux 102
hostid
macOS 92
Linux, changing licenses 115
Windows 17
Linux, Internet installations 102
Windows, changing license and 66
macOS, changing licenses 92
Excel
macOS, Internet installations 79
LiveLink for 44
Windows, changing licenses 66
F FEATURE line, license file 56
Windows, Internet installations 17
FlexNet
Windows, license server and 55
control panel 53
I idle timeout 61
License Administration Guide, Linux
INCREMENT line, license file 56
110
installation
License Administration Guide, ma-
Linux 101
cOS 87
macOS 78
License Administration Guide, Win-
media options 9
dows 54
previous 10
license manager 14
Windows 16
license manager, troubleshooting 128
license manager, Windows 52 J Java runtime, custom 29
management, Linux 110
K Knowledge Base 9
management, macOS 87
COMSOL Access, and 15
management, Windows 53
troubleshooting 128
utility program, Linux 110
136 |
L Learning Center 9 Windows, starting 64
License Agreement 9 license server
license agreement 11 Linux, client server and 119
license errors 128 Windows, and 22
license feature name 56 Windows, client server and 72
license file license, changing
comment line 55 Linux 115
example of 18 macOS 91
FEATURE line 56 Windows 66
FlexNet, and 14 [Link]
INCREMENT line 56 FlexNet, and 14
macOS, obtaining 80 Linux 111
SERIAL line 56 Linux, changing 115
SERVER line 55 macOS 87
troubleshooting 129 macOS, changing 92
USE_SERVER line 55 troubleshooting 129
VENDOR line 55 Windows 54
Windows, obtaining 17 Windows, FlexNet and 53
license manager LiveLink for
automated installation on Linux 113 AutoCAD 44
automated installation on macOS 89 Autodesk Inventor 45
automated installation on Windows Excel 44
63 PTC Creo Parametric 46
daemon, Linux 110 Revit 47
daemon, macOS 87 Solid Edge 48
daemon, Windows 53 SOLIDWORKS 49
files for installation, Linux 111 [Link] Linux 110
files for installation, macOS 88 [Link] macOS 87
files for installation, Windows 62 [Link] Windows 53
installing files, Linux 111 lmhostid
installing files, macOS 88 Linux 115
installing files, Windows 62 macOS 92
Linux, log file 113 lmutil
Linux, starting 113 Windows 66
log file 64 lmutil Linux 110
log file, troubleshooting 129 lmutil macOS 87
macOS, log file 90 lmutil Windows 53
macOS, starting 90 log file, license manager 64
Windows, log file 65 log file, Linux 113
| 137
log file, macOS 90 COMSOL Access, and 15
log file, troubleshooting 129 proxy server
log file, Windows 65 for software updates 41
Linux installations 108
M MAC address
macOS installations 84
Linux installations 102
Windows installations 28
macOS installations 92
PTC Creo Parametric
Windows installations 17, 66
LiveLink for 46
MATLAB
Linux, changing path to 108 R remove feature 21
macOS, changing path to 84 Revit
running COMSOL Multiphysics on LiveLink for 47
Linux with 122 root 113
running COMSOL Multiphysics on
S SERIAL line, license file 56
macOS with 94
SERVER line, license file 55
running COMSOL Multiphysics on
shared-memory computing 11
Windows with 76
software license agreement 11
Windows, changing path to 77
Solid Edge
merged license file 24
LiveLink for 48
multicore computing 11
SOLIDWORKS
multiprocessor computing 11
LiveLink for 49
N Named Single User License system requirements 9, 10
definition 12
T technical support, contacting 128
Linux, and 105, 111
technical support, website 9
O operating system 11 three-server redundancy 22
options file 111 timeout, of licenses 61
trial license
P passcode 16
Linux 102
physical address 17
macOS 78, 101
port number 22
Windows 16
previous installation 10
troubleshooting license errors 128
product downloads 9
tutorials, installation 128
COMSOL Access, and 15
tutorials, videos 9
Linux 101
Linux, DVD 104 U uninstalling COMSOL
macOS 78 Linux 107
troubleshooting 128 macOS 83
Windows 16 Windows 39
Windows, DVD 19 updates, product 9
product updates 9 COMSOL Access 15
138 |
USE_SERVER line, license file 55
user interface, cross-platform 68, 70
utility program, Linux 110
utility program, macOS 87
utility program, Windows 53
V vendor daemon
Linux installations 110
macOS installations 87
Windows installations 53
VENDOR line, license file 55
videos
installation 128
tutorials 9
volume serial number 17
| 139
140 |
To verify that the COMSOL license manager is running, start the Windows Task Manager, navigate to the Services tab, and check for the LMCOMSOL service. Ensuring it is active denotes a running license manager. Optionally, reviewing the log file for activity records confirms operational status .
Running COMSOL on a cluster requires a Floating Network License and a configuration that includes a shared COMSOL installation folder across nodes, typically managed by a scheduler . The cluster setup allows for distributed computing, enhancing computational power and enabling large-scale complex simulations that are challenging for single-node setups. It facilitates load-sharing, reduces the time for computations, and handles large data sets efficiently .
The installation process for COMSOL Multiphysics differs mainly in how files are accessed and initiated. Using an online installer requires downloading the setup file COMSOL64_win.exe, while initiating directly after download provides a step-by-step guide on the internet . Conversely, the offline installation begins with downloading an ISO image, which must be mounted on the system. It involves additional steps of either mounting the image directly or burning split ISO images to discs before proceeding with the setup .
To configure the COMSOL license manager to start as a service on reboot, one must adjust the settings in LMTOOLS by choosing 'Configuration using Services' and defining necessary paths and startup options. Enabling 'Use Services' and 'Start Server at Power Up' ensures automatic startup . This is beneficial as it minimizes runtime errors by ensuring the license manager is always active, hence improving reliability in multi-user environments .
COMSOL batch processing allows executing computational tasks without manual user intervention via commands or using the COMSOL Desktop's Model Builder interface . This is achieved by creating batch jobs through the Model Builder or terminal commands like `comsol batch -inputfile in.mph -outputfile out.mph` to run specific studies. Such automation is beneficial for running series of simulations or processing multiple datasets sequentially, saving time and freeing up resources for other tasks .
The components of the FlexNet license manager include the license server manager (lmgrd), which oversees coordination on the server, and the vendor daemon (LMCOMSOL), which specifically manages COMSOL licenses . The utilities like lmutil facilitate various management tasks, while the debug log records operational details to ensure smooth function . These components coordinate to allow licensing information transition from client requests to server approval.
The client-server setup in COMSOL Multiphysics allows users to offload computation-intensive tasks to a powerful server while utilizing the client for graphical interfacing tasks . This approach maximizes computational resources by running the server on a machine with higher memory and processing capabilities, enabling complex simulations that a personal computer might struggle to handle .
COMSOL facilitates parallel computations through shared-memory parallel operations and distributed-memory parallel operations which include cluster support for both Windows and Linux. This is significant as it allows computations to be distributed across multiple cores or nodes, improving the efficiency and capability of handling large-scale simulations. Shared-memory uses multiple threads within a single processor while distributed-memory utilizes multiple nodes communicating over a network, suitable for high-demand computational tasks .
To install COMSOL using a USB flash drive, insert the drive into the computer port. If the installation window does not automatically appear, manually run setup.exe from the flash drive . This method is convenient for offline environments or when network issues arise, providing a readily available installation option . The USB should contain all necessary files to initiate the COMSOL Installer and proceed with the standard installation steps .
On macOS, the installation of the license manager follows different paths, mainly facilitated by adapting commands for a Unix-like environment and using system-specific utilities like dmg files for mounting . In contrast, Windows setups rely heavily on .exe files and GUI-based installation processes. Both systems, however, use the same fundamental license management via FlexNet . Command-line operations for starting services also differ between the two systems .