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.

Modifying Imported CAD Geometry with the Deformed Geometry Interface

When you are working with foreign CAD or ECAD data, such as files in the STEP, GDS, or IGES file formats, or any of the other supported formats, you may think that you need to re-import a new CAD file and start your modeling over from scratch if you want to study a change in size or shape. But, in fact, you can modify the geometry that you've imported with some clever usage of the Deformed ...

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 ...

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/)", ...

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 ...

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.

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](".

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 ...

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](".

Modeling a Koch Snowflake

This example exemplifies how to model a Koch snowflake using the Application Builder. A more detailed description of the phenomenon and the modeling process can be seen in the blog post "[Using the Application Builder to Create a Koch Snowflake](".

Swept Mesh of a Bracket Geometry - new

This tutorial demonstrates how to partition a 3D part to create a swept mesh. The example explores different strategies for partitioning the geometry, and demonstrates how to combine hexahedral and tetrahedral meshes.