The Application Gallery features COMSOL Multiphysics tutorial and demo app files pertinent to the electrical, mechanical, fluid, and chemical disciplines. You can download ready-to-use tutorial models and demo apps with step-by-step instructions for how to create them yourself. The examples in the gallery serve as a great starting point for your own simulation work.

Use the Quick Search to find tutorials and apps relevant to your area of expertise. Log in or create a COMSOL Access account that is associated with a valid COMSOL license to download the MPH-files.

Directional Coupler

Two embedded optical waveguides in close proximity form a directional coupler. The cladding material is GaAs and the core material is ion-implanted GaAs. The waveguide is excited by the two first supermodes of the waveguide structure - the symmetric and antisymmetric modes. Two numeric ports are used on both the exciting boundary and the absorbing boundary, to define the two modes. A boundary ...

Step-Index Fiber Bend

The first part of the application computes the modes for a straight step index fiber made of silica glass. In the second part, a step index fiber bend with a 3 mm radius of curvature is analyzed with respect to propagating modes and radiation loss. It is shown how to find the power averaged mode radius and how to use this to compute the effective mode index.


A Gaussian electromagnetic wave is incident on a dense array of very thin wires (or rods). The distance between the rods and, thus, the rod diameter is much smaller than the wavelength. Under these circumstances, the rod array does not function as a diffraction grating (see the Plasmonic Wire Grating model). Instead, the rod array behaves as if it was a continuous metal sheet for light polarized ...

Time-Domain Modeling of Dispersive Drude-Lorentz Media

This tutorial shows how to solve the full time-dependent wave equation in dispersive media such as plasmas and semiconductors. The 2D TM in-plane wave model solves for the vector potential from the wave equation and for an auxiliary electric polarization density from an ordinary differential equation. The geometry consists of a single dispersive slab with a sub-wavelength slit in it. Periodic ...

Fabry-Perot Cavity

This is an example of a Fabry-Perot cavity, the simplest optical resonator structure. It is a classical problem in optics and photonics. Two methods are shown for computing the Q-factor. The losses in this model are purely via radiation away from the resonator.

Gaussian Beam Incident at the Brewster Angle

This model demonstrates the polarization properties for a Gaussian beam incident at an interface between two media at the Brewster angle. The model shows how to use the Electromagnetic Waves, Beam Envelopes physics interface with a User defined phase specification. Matched Boundary Condition features are used for absorbing waves incident to boundaries at non-normal directions.

Fiber Simulator

The transmission speed of optical waveguides is superior to microwave waveguides because optical devices have a much higher operating frequency than microwaves, enabling a far higher bandwidth. Single-mode step-index fibers are used for long-haul (even transoceanic) communication, whereas both graded-index and step-index multimode fibers are used for short-distance communication, for example, ...

Hexagonal Grating

A plane wave is incident on a reflecting hexagonal grating. The grating cell consists of a protruding semisphere. The scattering coefficients for the different diffraction orders are calculated for a few different wavelengths.

Multipole Analysis of Electromagnetic Scattering

The multipole expansion is a powerful tool for analyzing electromagnetic waves scattered by small objects. In the expansion, the scattered field is represented as a superposition of the fields created by a finite set of point multipoles. Each point multipole is connected to a unique electric current mode in the object. This connection can be harnessed to design scatterers with prescribed ...

Second Harmonic Generation from a Gaussian Beam (Wave Optics)

It is possible to generate harmonics that are multiples of the frequency of laser light by using nonlinear optical materials. This model demonstrates second harmonic generation using transient wave simulation and nonlinear material properties. A YAG (lambda=1.06 micron) laser beam is focused on a nonlinear crystal so that the waist of the beam is inside the crystal.