Skip to main content

fields.layer_fields_3d

fields.layer_fields_3d

Computes the three-dimensional fields in a layer on the real-space grid.

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.
  • grid_shape: The shape of the xy real-space grid.
  • num_unit_cells: The number of unit cells along each direction.

Returns:

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