Skip to main content

fields.layer_fields_3d_on_coordinates

fields.layer_fields_3d_on_coordinates

Computes the three-dimensional fields in a layer at specified coordinates

This function may be significantly faster than layer_fields_3d in cases where fields in the full simulation domain are not required.

Args:

  • forward_amplitude_start: The forward-going wave amplitudes, defined at the start of the layer.
  • backward_amplitude_end: The backward-going wave amplitudes, defined at the end of the layer.
  • layer_solve_result: The results of the layer eigensolve.
  • layer_thickness: The layer thickness.
  • layer_znum: The number of gridpoints in the z-direction for the layer.
  • x: The x-coordinates where the fields are sought.
  • y: The y-coordinates where the fields are sought, with shape matching that of x.

Returns:

  • None: The electric and magnetic fields and grid coordinates, (ef, hf, (x, y, z)).