Simulation#
- class nannos.Simulation(layers, excitation, nh=100, formulation='original')[source]#
Main simulation object.
- Parameters
- diffraction_efficiencies(orders=False, complex=False, return_dict=False)[source]#
Compute the diffraction efficiencies.
- Parameters
orders (bool) – If
True
, returns diffracted orders, else returns the sum of reflection and transmission for all propagating orders (the default isFalse
).complex (bool) – If
True
, return complex valued quantities corresponding to ampitude related coefficients. (the default isFalse
).return_dict (bool) – If
True
, return quantities as nested dictionaries with keys corresponding to diffraction orders. This works only iforders=True
(the default isFalse
).
- Returns
The reflection and transmission
R
andT
.- Return type