Home Examples Screenshots User manual Bluesky logo
OghmaNano Simulate organic/Perovskite Solar Cells, OFETs, and OLEDs DOWNLOAD

Slab waveguide mode solver

In this tutorial we compute the optical modes supported by a cylindrical waveguide, such as an optical fiber. Unlike the slab tutorials, this example uses free objects rather than layered structures defined in the epitaxy editor. By replacing the example objects with items from the shape library, you can investigate the modes supported by virtually any geometry. Note that this solver is two-dimensional: it takes a cross-sectional slice of the 3D object and calculates the guided modes in that plane.

Step 2: Create a new simulation

Click New simulation. This opens the library of available device categories, shown in ??. Double-click the Mode solver icon to open the optics examples folder. You’ll see a list of pre-set simulations, including 1D slab waveguides (TE/TM), 2D box guides, 2D slab guides, and a 2D fiber optic template, as shown in ??. For this tutorial, select 2D Fiber optic (TE). When prompted, save the new simulation to a folder you have write access to.

💡 Tip: For best performance save to a local drive such as C:\. Simulations stored on network, USB, or cloud folders (e.g. OneDrive) can run slowly due to heavy read/writes.

OghmaNano New simulation window with categories including Organic solar cells, OFETs, Optical filter, Lasers, and Mode solver highlighted
The New simulation window showing the library of device categories and example projects. Here the Mode solver folder is highlighted — double-click to open example simulations for guided-wave optics.
OghmaNano Mode solver examples list showing options such as 1D Slab waveguide (TE/TM), 2D Box waveguide, 2D Fiber optic, and 2D Slab waveguide
Inside the Mode solver category, you can choose from several templates. These include 1D slab guides (TE or TM), 2D box guides, 2D slab guides, and a 2D fiber optic example. Selecting the fiber optic template creates a cylindrical waveguide simulation ready for analysis.

Step 2: Create a new simulation

Click New simulation. This opens the library of available device categories, shown in ??. Double-click the Mode solver icon to open the optics examples folder. You’ll see a list of pre-set simulations, including 1D slab waveguides (TE/TM), 2D box guides, 2D slab guides, and a 2D fiber optic template, as shown in ??. For this tutorial, select 2D Fiber optic (TE). When prompted, save the new simulation to a folder you have write access to.

OghmaNano 3D view showing the geometry of an optical fiber with an inner core object inside an outer cladding object. The right-click menu on the inner core is open.
Geometry view of an optical fiber defined by two nested objects — an inner core and an outer cladding. Although shown as spheres, the solver works in 2D so this represents a slice through a fiber cross-section. Right-clicking on the inner core object brings up the Edit menu.
OghmaNano object editor window showing options to configure the selected object including material, shape, position, and orientation.
The Object Editor window for the selected core. Here you can set the optical material (e.g. from the materials database), adjust the object shape, and configure its size, position, and orientation. Objects can also be dragged interactively within the 3D view.

When the main simulation window opens, you will see a geometry view similar to ??. In this example, two free-form objects from the shape library have been placed inside one another to form the fiber cross-section. You can reposition objects by dragging them in the main window with the left mouse button.

If you right-click on the inner object, a context menu appears (??). Selecting Edit opens the Object editor (??), where you can modify properties such as material, refractive index, dimensions, orientation, and position. This editor allows you to fine-tune the geometry before running the mode solver.

Step 3: Running the simulation

Click the Run simulation button (blue play icon) to start the calculation. Compared to the 1D slab example, this step will take longer because multiple 2D modes may exist, and each requires additional computation.

Once the run is complete, go to the Output tab of the main window (??). A new snapshots directory will appear containing the calculated field data. Double-click to open it, then use the Add (+) button to load E.csv into the plot list. With the slider, you can step through the different optical modes that the solver has found. The Snapshots window (??) displays the electric field distribution for each mode. In this fiber example, the modal profiles are slightly asymmetric because the core is not perfectly centered within the cladding. Try adjusting the core’s position, refractive index, or radius to explore how these changes affect the supported modes.

OghmaNano Output tab showing the snapshots directory after running the fiber simulation.
The Output tab after clicking the Run button. The snapshots directory is generated, which contains the calculated field data.
OghmaNano snapshots window showing the 2D modal field profile of the fiber with an off-center core.
The Snapshots window after selecting E.dat with the Add button, showing the 2D modal field profile of the fiber. The modes are not perfectly symmetric because the inner core is slightly offset from the center of the outer cladding. You can experiment by adjusting the core position, refractive index, or size to see how the modal profiles change.
OghmaNano main window showing the Optical ribbon with the Mode Calculator button highlighted.
The Optical ribbon in OghmaNano, with the Mode Calculator button highlighted. Clicking this button opens the mode solver configuration window.
OghmaNano Mode Calculator editor window with the TE/TM selection dropdown highlighted.
The Mode Calculator editor window, where you can configure solver parameters. The highlighted dropdown menu allows selection between Transverse Electric (TE) and Transverse Magnetic (TM) modes.

Step 4: Configuring the mode solver

Before running the calculation, you can fine-tune the optical mesh and solver settings. The Optical ribbon provides access to the Optical mesh editor (??), where you define the grid resolution in both the X and Y directions. A sufficiently fine mesh is essential for capturing sharp field variations, especially near high-index contrasts or small structures.

Clicking the Mode Calculator button opens the solver configuration window (??). Here you can set the maximum number of iterations, numerical tolerance, and the number of eigenmodes to search in the X and Y directions. The TE/TM selector allows you to switch between Transverse Electric and Transverse Magnetic calculations, which is useful for comparing how polarization affects the guided modes.