The Application Gallery features COMSOL Multiphysics® tutorial and demo app files pertinent to the electrical, structural, acoustics, fluid, heat, and chemical disciplines. You can use these examples as a starting point for your own simulation work by downloading the tutorial model or demo app file and its accompanying instructions.

Search for tutorials and apps relevant to your area of expertise via the Quick Search feature. To download the MPH-files, log in or create a COMSOL Access account that is associated with a valid COMSOL license. Note that many of the examples featured here can also be accessed via the Application Libraries that are built into the COMSOL Multiphysics® software and available from the File menu.


Lid-Driven Cavity

This example demonstrates how to define the lid-driven cavity benchmark in the field of computational fluid dynamics. In the model setup, a 2D square cavity has a tangentially moving wall that induces a large vortex in the center of the cavity, and small vortices in the corners. The results show the velocity field for different values of the Reynolds number. The velocity profile and size and ...

Cluster Setup Validation

Use the Cluster Setup Validation app to validate if the current default cluster settings, as taken from the preferences, correctly submit jobs to the cluster. This app also allows you to override the default cluster settings to, for example, test modifications to the current setup or test a new set of settings for connecting to a cluster.

Simulating Action Potential with the Hodgkin-Huxley Model

This app allows you to simulate the action potential in a cell's membrane using the Hodgkin-Huxley model. As it is presented in the form of a simulation app, you can change the input parameters for potential, conductance, and membrane capacitance to study their effects on the dynamics of the system. A more detailed description of the phenomenon, and the modeling process, can be seen in the [blog post](https://www.comsol.com/blogs/analyze-the-hodgkin-huxley-model-with-a-computational-app/) ...

Modeling Irregular Shapes by Using Interpolation and Image Data

This file shows how to create a surface of an irregular shape based on text, image, or elevation data. This approach is best suited for data where the height (or elevation) is a function of _x_- and _y_-coordinates. The data is of the Matterhorn, a European mountain located in the Alps. In short, the procedure includes: * Importing a text file, image file, or elevation data into a function ...

How to Export Images Automatically After Solving

This example demonstrates how to use a parameterized slice plot and animation functionality to export a sequence of images. In addition, the example shows how to use a job sequence to perform a programmatic sequence of operations where the model is first solved and then the image sequence is generated and saved to file, all automatically. In the blog post associated with these files, "[How to ...

Thermostat with a Reactionary Delay

This example shows how to model the behavior of a thermostat where a delay in its reaction has been implemented. A more detailed description of the phenomenon, and the modeling process, can be seen in the blog post "[How to Implement a Delay in Your Thermostat Simulation](https://www.comsol.com/blogs/how-to-implement-a-delay-in-your-thermostat-simulation/)".

Carburizing of gears

The model illustrates how to simulate carburizing, a heat treatment process producing a wear resistant surface. The model solves heat transfer in solids, carbon diffusion and phase transformation of austenite into martensite and pearlite.

Job Sequences to Save Data After Solving a Model

These examples demonstrate how to use a job sequence to perform a programmatic sequence of operations, including solving; saving the model to file; and generating and exporting plot groups, results, and images. In the blog post associated with these files, "[How to Use Job Sequences to Save Data After Solving Your Model](/blogs/how-to-use-job-sequences-to-save-data-after-solving-your-model/)", ...

Using Text Files to Automate Model Preprocessing

This example demonstrates how to set up text files to use when preprocessing models that contain hundreds of parts. A more detailed description of the phenomenon and the modeling process can be seen in the blog post "[Automate Model Preprocessing with the Application Builder](https://www.comsol.com/blogs/automate-model-preprocessing-with-the-application-builder/)".

Interpolation between points using a COMSOL App

This App will fit a surface through a set of points using Radial Basis Functions and will write out a COMSOL-format file of a smooth NURBS surface that passes through all of the points. The function describing the surface can also be written to a text file. The point data is read in from comma-delimited file and thin-plate spline radial basis functions are used to fit the surface. Up to 5000 ...