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.


Phase Change

This example demonstrates how to model a phase change and predict its impact on a heat transfer analysis. When a material changes phase, for instance from solid to liquid, energy is added to the solid. Instead of creating a temperature rise, the energy alters the material’s molecular structure. Equations for the latent heat of phase changes appear in many texts but their implementation is ...

Contact Switch

This model illustrates how to implement a multiphysics contact. It models the thermal and electrical behavior of two contacting parts of a switch. The electrical current and the heat flow from one part to the other only through the contact surface. The contact switch device has a cylindrical body and plate hook shapes at the contact area. There, the thermal and electrical apparent resistances ...

Loaded Spring - Using Global Equations to Satisfy Constraints

Global equations are a way of adding an additional equation to a model. A global equation can be used to describe a load, constraint, material property, or anything else in the model that has a uniquely definable solution. In this example, a structural mechanics model of a spring is augmented by a global equation which solves for the load to achieve a desired spring displacement.

Diffraction Grating

This model uses the Wave Optics Module and the Ray Optics module to model the propagation of rays through a diffraction grating at different angles of incidence. It uses the S-parameters computed by the Electromagnetic Waves, Frequency Domain interface on a unit cell of the grating to specify the reflectivity and transmissivity of each diffraction order in the Geometrical Optics interface, ...

Vacuum Drying

Vacuum drying is a chemical process frequently used in the pharmaceutical and food industries to remove water or an organic solvent from a wet powder. When designing a vacuum drying system, engineers aim to minimize the drying time while maintaining high quality in the product. This model investigates vacuum drying in a Nutsche filter-dryer, which consists of a cylindrical drum filled with wet ...

Scatterer on Substrate

A plane TE-polarized electromagnetic wave is incident on a gold nanoparticle on a dielectric substrate. The absorption and scattering cross-sections of the particle are computed for a few different polar and azimuthal angles of incidence. The model first computes a background field from the plane wave incident on the substrate, and then uses that to arrive at the total field with the ...

Convective Cooling of a Busbar

This is a template MPH-file containing the physics interfaces and the parameterized geometry for the model Electrical Heating in a Busbar.

Generator in 2D

In this model, a rotor with permanent magnets and a nonlinear magnetic material rotates within a stator of the same magnetic material. The generated voltage in windings around the stator is calculated as a function of time. COMSOL Multiphysics models the rotation with assemblies and identity pairs. The nonlinearity of the magnetic material is also taken into account using an interpolation ...

Loudspeaker Driver - Transient Analysis

In this model, a full transient analysis of a loudspeaker driver is performed, which allow the modeling of nonlinear effects. It extends the linear frequency domain analysis done in the Loudspeaker Driver tutorial model. The analysis accounts for nonlinear behavior of the soft iron in the magnetic system, geometric nonlinearities in the structures, and nonlinear effects due to the topology ...

Diffraction Patterns

This example resembles the well-known 2-slit interference experiment often demonstrated in schools with water waves or sound. This model mimics the plane-wave excitation with two thin waveguides leading to slits in a screen, and it computes the diffraction pattern on the screen’s other side. This diffraction pattern is clearly visible. The main effect of quantization is that the numerical ...