Running Applications with COMSOL Server
COMSOL applications can be run by connecting to COMSOL Server from a web browser or a COMSOL Client for Windows®. The COMSOL Client for Windows® allows a user to run applications that require a LiveLink™ product for CAD, as described in Running Applications in the COMSOL Client.
Running applications in a web browser does not require any installation or web browser plug-ins. Running an application in a web browser supports interactive graphics in 1D, 2D, and 3D. In a web browser, graphics rendering in 3D is based on WebGL™ technology, which is included with all major web browsers.
Running Applications in a Web Browser
Using a web browser, you can point directly to the computer name and port number of a COMSOL Server web interface — for example, http://comsol-server-machine-url.com:2036, assuming that port number 2036 is used by your COMSOL Server installation. You need to provide a username and password to log in. If you are running COMSOL Server locally, the address field will typically be localhost:2036.
When logged in, the Application Library page displays a list of applications to run.
Click Run in browser to run an application. Applications are run in separate tabs in the browser.
Limitations When Running Applications in Web Browsers
When you create applications to run in a web browser, make sure you use the grid layout mode in the Application Builder; See Sketch and Grid Layout. This will ensure that the user interface layout adapts to the size and aspect ratio of the browser window. For low-resolution displays, make sure to test the user interface layout in the target platform to check that all form objects are visible. Applications that contain resizable graphics forms may not fit in low-resolution displays. In such cases, use graphics with fixed width and height to make sure all form objects fit in the target browser window. Depending on the type of web browser and the graphics card, there may be restrictions on how many graphics objects can be used in an application. You can get around such limitations by, instead of using multiple graphics objects, reuse the same graphics object by switching its source.
When running in a web browser, the LiveLink™ products for CAD software packages are not supported.
When running COMSOL applications in web browsers for smartphones and certain tablets, not all functionality is supported. Typical limitations include the ability to play sounds or open documents. In addition, file upload and download may not be supported.
If the application allows the user to make selections, such as clicking on boundaries to set boundary conditions, running in a web browser is different from running in COMSOL Multiphysics or the COMSOL Client for Windows®. In a web browser, boundaries are not automatically highlighted when hovering. Instead, it is required to click once to highlight a boundary. A second click will make the selection. A third click will highlight for deselection and a fourth click will deselect. The process is similar for domains, edges, and points.
Note that file browsing functionality is slightly different depending on the web browser and depending on the version of the web browser. This may impact the user experience when running an application that has functionality for saving files to the client computer. For example, the location of the downloads folder can be changed in the settings of many web browsers. A web browser may also allow the user to manually specify the download location for each file. Please refer to the documentation of your target web browsers for details.
Running Applications in the COMSOL Client
As an alternative to using a web browser for running applications, the COMSOL Client for Windows® can be used to connect to COMSOL Server for running applications natively in the Windows® operating system. This typically gives better graphics performance and supports more sophisticated graphics rendering in 1D, 2D, and 3D. In addition, the COMSOL Client for Windows® allows running applications that require a LiveLink™ product for CAD, provided that the COMSOL Server you connect to has the required licenses. You can open an application with the COMSOL Client for Windows® in two different ways:
If you try to run an application with the COMSOL Client in this way, but it is not yet installed, you will be prompted to download and install it.
If you have the COMSOL Client for Windows® already installed, a desktop shortcut will be available. You can double-click its desktop icon and before you can use the COMSOL Client to run applications, you will be prompted to log into a COMSOL Server with a valid username and password. After login, the COMSOL Client displays a COMSOL Server web interface identical to that seen when logging in from a web browser.
Using the COMSOL Client, applications run as native Windows® applications in separate windows. For example, applications run in the COMSOL Client may have a Windows® ribbon with tabs. When run in a web browser, ribbons are represented by a toolbar.
In the figure below, the COMSOL Server web interface is shown (top) with an application launched in the COMSOL Client for Windows® (bottom).
Running COMSOL Server on Multiple Computers or a Cluster
COMSOL applications can be run on multiple computers or clusters in two main ways:
Primary and Secondary Instances
Running COMSOL Server on multiple computers using primary and secondary instances allows for more concurrent users and applications than a single computer instance (or installation). The main COMSOL Server instance is called primary and the other instances are called secondary. The primary server is used for all incoming connections — for example, to show the web interface or to run applications in a web browser or with COMSOL Client. The actual computations are offloaded to the secondary server computers. This type of installation has a major benefit: Applications do not need to be custom-built for a particular cluster. Load balancing is managed automatically by the primary server, which distributes the work load between the secondary servers. A COMSOL Server installation can consist of multiple primary and secondary server installations without additional license requirements. You can perform administrative tasks using the COMSOL Server web interface without checking out license keys for users running applications. License keys are only checked out when running applications.
Configuring a Study Node for Cluster Sweep or Cluster Computing
If you want to utilize a cluster for applications that require large parametric sweeps or high-performance computing power, then you can configure the Model Builder study nodes of an application using the Cluster Sweep and Cluster Computing options. Note that for building such applications, you will need a Floating Network License. You can find more information on configuring a study node for clusters in the Introduction to COMSOL Multiphysics and COMSOL Multiphysics Reference Manual books. For running such cluster-enabled applications, you can use either COMSOL Server or a Floating Network License of COMSOL Multiphysics. Cluster system configurations are available from the COMSOL Server web interface.
For more information on COMSOL Server, see the COMSOL Server Manual available with a COMSOL Server installation or from www.comsol.com/documentation.