3.2.6.7. A_FMM.Layer.calculate_field_old
- Layer.calculate_field_old(u: ndarray, d: ndarray = None, x: ndarray = 0, y: ndarray = 0, z: ndarray = 0, components: list = None) dict
Return field given modal coefficient and coordinates
Coordinates arrays must be 1D. Fields are returned on a meshgrid of the input coordinates. Older version. Slower, but may require less memory.
- Parameters:
u (array_like) – coefficient of forward propagating modes.
d (array_like, optional) – coefficient of backward propagating modes. Default to None: no backward propagation is assumed.
x (array_like) – x coordinates.
y (array_like) – y coordinates.
z (array_like) – z coordinates.
components (list of str, optional) – field components to calculate. Default to None: all components (‘Ex’, ‘Ey’, ‘Hx’, ‘Hy’) are calculated.
- Returns:
Desired field components. Shape of ndarray is the same as x,y, and z.
- Return type:
dict of ndarray
- Raises:
ValueError – if other component than ‘Ex’, ‘Ey’, ‘Hx’, or ‘Hy’ is requested.