How Can I Set Charge Boundary Conditions?

How Can I Set Charge Boundary Conditions?#

Date

Category

2025-06-30 21:10:35

Charge

Boundary conditions for heat simulations are defined using the HeatChargeBoundarySpec class, which has two required fields: condition and placement.

  • condition: Specifies the boundary condition to impose. It accepts one of the following types:

  • placement: Specifies where the boundary condition should be applied. Available options include:

    • StructureBoundary
      The boundary of a structure. Only the portion of the boundary not covered by subsequent structures is considered.

    • StructureStructureInterface
      The interface between two structures. Specifically, this refers to the boundary of the succeeding structure that lies within the preceding structure.

    • MediumMediumInterface
      The interface between two media.

    • SimulationBoundary
      The boundary of the heat simulation domain. You can specify particular surfaces using the surfaces field. By default, all surfaces are selected.

    • StructureSimulationBoundary
      The portion of the heat simulation domain boundary that is covered by a structure. As with StructureBoundary, only regions not covered by subsequent structures are included.

You can check out this Carrier injection based Mach-Zehnder modulator notebook for an example of how to use it in practice.