flex_rf.tidy3d.Custom2DPathIntegral
Type: class │ Base(s): Custom2DPathIntegralSpec
Description
Section titled “Description”Class for defining a custom path integral defined as a curve on an axis-aligned plane.
Given a set of vertices , this class approximates path integrals over vector fields of the form as , where the differential length is approximated using central differences . If the path is not closed, forward and backward differences are used at the endpoints.
Example(s)
Section titled “Example(s)”import numpy as npvertices = np.array([[0, 0], [1, 0], [1, 1], [0, 1]])path = Custom2DPathIntegral( axis=2, position=0.5, vertices=vertices,)Parameters
Section titled “Parameters”axis [Axis] |
|
Specifies dimension of the planar axis (0,1,2) -> (x,y,z). |
position [float] |
|
Position of the plane along the |
vertices [ArrayFloat2D] |
|
List of (d1, d2) defining the 2 dimensional positions of the path. The index of dimension should be in the ascending order, which means if the axis corresponds with |
Methods
Section titled “Methods”compute_integral(field: FieldParameter, em_field: IntegrableMonitorDataType) |
|
Computes the path integral defined by |