FEM

heat

Run a steady-state thermal simulation of a waveguide cross-section.

Warning

This function is only available under beta release. Please report any issues or bugs.

Note

Each shape() now accepts an input parameter called heat_only (default: False), which can be used to set additional shapes on top or bottom of the photonic layer stack. For example, common heat_only shapes are the substrate and metal heater layers.

Each shape() also now accepts an input parameter called fem_resolution (default: 0), which is used to refine the triangular mesh within certain shapes.

Each material in the EMode material database now has thermal_conductivity (W/m·K), resistivity (Ohm·nm), and dn_dT (1/K).

Parameters:
  • min_angle (float) – Minimum angle for triangular mesh. Smaller values result in a finer mesh, but can prevent the meshing algorithm from converging. Default: 30.

  • boundary_temperature (float) – Fixed temperature boundary condition in ‘K’ set along each perimeter indicated by boundaries. Default: 298.

  • boundaries (list[str]) – ‘top’, ‘bottom’, ‘left’, or ‘right’; Indicates which boundaries are set to the fixed temperature boundary_temperature. Default: [‘bottom’].

  • verbose (bool) – Control the display of the progress bar. Default: True.

  • simulation_name (str) – Simulation name. Default: ‘emode’.

Returns:

A dictionary/struct with the mesh points (p), mesh triangles (t), temperature, thermal_conductivity, and heat_generation arrays. It also includes the boundary_temperature and boundaries settings.

electrostatic

Run a steady-state electrostatic simulation of a waveguide cross-section.

Warning

This function is only available under beta release. Please report any issues or bugs.

Note

Each shape() also now accepts an input parameter called voltage (default: 0), which is set to create electric field sources.

Each shape() also now accepts an input parameter called fem_resolution (default: 0), which is used to refine the triangular mesh within certain shapes.

Each material in the EMode material database now has eps_r_dc (relative permittivity at ~1 kHz).

Parameters:
  • min_angle (float) – Minimum angle for triangular mesh. Smaller values result in a finer mesh, but can prevent the meshing algorithm from converging. Default: 30.

  • verbose (bool) – Control the display of the progress bar. Default: True.

  • simulation_name (str) – Simulation name. Default: ‘emode’.

Returns:

A dictionary/struct with the mesh points (p), mesh triangles (t), voltage, and eps_dc_grid.