get_adjoint_fields#
- BaseFom.get_adjoint_fields(fdtd_session, entry)#
Apply necessary scaling to the adjoint simulation fields.
This method can be used to apply any necessary scaling to the raw adjoint fields extracted from the FDTD session before they are combined with the Jacobian and forward fields to compute the gradient. By default, it returns the input adjoint fields unchanged, but it can be overridden in subclasses if specific scaling is needed for certain types of simulations.
- Parameters:
- fdtd_session
FdtdSession FDTD session providing access to simulation data and parameters.
- entry
dict Dictionary containing filenames and simulation results for the current entry.
- fdtd_session
- Returns:
listofnp.ndarrayScaled adjoint electric field data ready for combination with Jacobian and forward fields, one array per wavelength.