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 calledheat_only(default: False), which can be used to set additional shapes on top or bottom of the photonic layer stack. For example, commonheat_onlyshapes are the substrate and metal heater layers.Each
shape()also now accepts an input parameter calledfem_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), anddn_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, andheat_generationarrays. It also includes theboundary_temperatureandboundariessettings.
- 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 calledvoltage(default: 0), which is set to create electric field sources.Each
shape()also now accepts an input parameter calledfem_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, andeps_dc_grid.