tidy3d.rf.CompositeCurrentIntegral#
- class CompositeCurrentIntegral[source]#
Bases:
CompositeCurrentIntegralSpecCurrent integral comprising one or more disjoint paths
- Parameters:
path_specs (tuple[Union[
AxisAlignedCurrentIntegralSpec,Custom2DCurrentIntegralSpec,AxisAlignedCurrentIntegral,Custom2DCurrentIntegral], …]) – Disjoint path specifications – or already-built path integrals – for each isolated contour integral.sum_spec (Literal['sum', 'split']) – Determines the method used to combine the currents calculated by the different current integrals defined by
path_specs.sumsimply adds all currents, whilesplitkeeps contributions with opposite phase separate, which allows for isolating the current flowing in opposite directions. Insplitversion, the current returned is the maximum of the two contributions.
Example
>>> spec1 = AxisAlignedCurrentIntegralSpec(center=(0, 0, 0), size=(1, 1, 0), sign="+") >>> spec2 = AxisAlignedCurrentIntegralSpec(center=(2, 0, 0), size=(1, 1, 0), sign="+") >>> composite = CompositeCurrentIntegral(path_specs=(spec1, spec2), sum_spec="sum")
Attributes
"Collection of closed current path integrals.
sum_specMethods
compute_current(em_field)Compute current flowing in loop defined by the outer edge of a rectangle.
- path_specs#
- property current_integrals#
“Collection of closed current path integrals.