Fourier2D Class¶
- class optical.modal.Fourier2D(name='')¶
Optical Solver using Fourier expansion in 2D.
It calculates optical modes and optical field distribution using Fourier modal method and reflection transfer in two-dimensional Cartesian space.
Subclasses¶
Layer eignemodes |
|
Detailed information about the mode. |
|
Reflected mode proxy. |
Methods¶
|
Compute reflection coefficient on planar incidence [%]. |
Compute transmission coefficient on planar incidence [%]. |
|
|
Compute the mode near the specified effective index. |
|
Create coefficients vector with Gaussian profile. |
|
Compute discontinuity matrix determinant. |
|
Get Fourier expansion coefficients for the electric field. |
|
Get Fourier expansion coefficients for the magnetic field. |
Initialize solver. |
|
|
Get average integral of the squared electric field: |
|
Get average integral of the squared magnetic field: |
Set the solver back to uninitialized state. |
|
|
Get eignemodes for a layer at specified level. |
|
Access to the reflected field. |
|
Helper function to Access reflected fields for access incidence. |
|
Set interface at the bottom of the specified object. |
|
Set the mode for specified parameters. |
Attributes¶
Receivers¶
Receiver of the carriers concentration required for computations [1/cm³]. |
|
Receiver of the permittivity tensor required for computations [-]. |
|
Receiver of the material gain required for computations [1/cm]. |
|
Receiver of the temperature required for computations [K]. |
Providers¶
Provider of the computed electric field [V/m]. |
|
Provider of the computed magnetic field [A/m]. |
|
Provider of the computed permittivity tensor [-]. |
|
Provider of the computed electric field [V/m]. |
|
Provider of the computed magnetic field [A/m]. |
|
Provider of the computed optical field magnitude [W/m²]. |
|
Provider of the computed effective index [-]. |
|
Provider of the computed refractive index [-]. |
|
Provider of the computed electric field [V/m]. |
|
Provider of the computed magnetic field [A/m]. |
|
Provider of the computed wavelength [nm]. |
Other¶
Alias for |
|
Type of discrete cosine transform for symmetric expansion. |
|
Type of determinant that is computed in root finding. |
|
Direction of the useful light emission. |
|
Type of the Fourier transform. |
|
Geometry provided to the solver |
|
Layer grouping switch. |
|
Id of the solver object. |
|
True if the solver has been initialized. |
|
Matching interface position. |
|
Normalized frequency of the light (1/µm). |
|
Longitudinal propagation constant of the light (1/µm). |
|
Transverse propagation constant of the light (1/µm). |
|
Wavelength of the light (nm). |
|
Reference wavelength. |
|
Vertical posiotions of centers of each layer. |
|
Vertical posiotions of egges of each layer. |
|
Mesh provided to the solver |
|
Mirror reflectivities. |
|
Computed modes. |
|
Side Perfectly Matched Layers boundary conditions. |
|
Mode polarization. |
|
Number of refinement points for refractive index averaging. |
|
Configuration of the root searching algorithm. |
|
Orthogonal expansion size. |
|
Smoothing parameter for material boundaries (increases convergence). |
|
Stack of distinct layers. |
|
Mode symmetry. |
|
Maximum temperature difference between the layers in one group. |
|
Temperature probing step. |
|
Temperature probing step. |
|
Preferred transfer method. |
|
Recompute dynamic parameters. |
|
Vertical Perfectly Matched Layers boundary conditions. |
|
Alias for |
Descriptions¶
Method Details¶
- Fourier2D.compute_reflectivity(lam, side, index)¶
- Fourier2D.compute_reflectivity(lam, side, polarization)
- Fourier2D.compute_reflectivity(lam, side, coffs)
Compute reflection coefficient on planar incidence [%].
- Parameters:
lam (float or array of floats) – Incident light wavelength (nm).
side (top or bottom) – Side of the structure where the incident light is present.
polarization – Specification of the incident light polarization. It should be a string of the form ‘E#‘, where # is the axis name of the non-vanishing electric field component.
idx – Eigenmode number.
coeffs – expansion coefficients of the incident vector.
- Fourier2D.compute_transmittivity(lam, side, index)¶
- Fourier2D.compute_transmittivity(lam, side, polarization)
- Fourier2D.compute_transmittivity(lam, side, coffs)
Compute transmission coefficient on planar incidence [%].
- Parameters:
lam (float or array of floats) – Incident light wavelength (nm).
side (top or bottom) – Side of the structure where the incident light is present.
polarization – Specification of the incident light polarization. It should be a string of the form ‘E#‘, where # is the axis name of the non-vanishing electric field component.
idx – Eigenmode number.
coeffs – expansion coefficients of the incident vector.
- Fourier2D.find_mode(*args, **kwargs)¶
Compute the mode near the specified effective index.
Only one of the following arguments can be given through a keyword. It is the starting point for search of the specified parameter.
- Parameters:
lam (complex) – Wavelength (nm).
k0 (complex) – Normalized frequency (1/µm).
neff (complex) – Longitudinal effective index.
ktran (complex) – Transverse wavevector (1/µm).
- Fourier2D.gaussian(side, polarization, sigma, center=0.0)¶
Create coefficients vector with Gaussian profile.
This method is intended to use for
scattering()
method.- Parameters:
side (top or bottom) – Side of the structure where the incident light is present.
polarization – Specification of the incident light polarization. It should be a string of the form ‘E#‘, where # is the axis name of the non-vanishing electric field component.
sigma (float) – Gaussian standard deviation (µm).
center (float) – Position of the beam center (µm).
Example
>>> scattered = fourier.scattering('top', ... fourier.gaussian('top', 'Ex', 0.2))
- Fourier2D.get_determinant(*args, **kwargs)¶
Compute discontinuity matrix determinant.
Arguments can be given through keywords only.
- Parameters:
lam (complex) – Wavelength (nm).
k0 (complex) – Normalized frequency (1/µm).
neff (complex) – Longitudinal effective index.
ktran (complex) – Transverse wavevector (1/µm).
- Fourier2D.get_raw_E(num, level)¶
Get Fourier expansion coefficients for the electric field.
This is a low-level function returning $E_l$ and/or $E_t$ Fourier expansion coefficients. Please refer to the detailed solver description for their interpretation.
- Parameters:
num (int) – Computed mode number.
level (float) – Vertical level at which the coefficients are computed.
- Return type:
numpy.ndarray
- Fourier2D.get_raw_H(num, level)¶
Get Fourier expansion coefficients for the magnetic field.
This is a low-level function returning $H_l$ and/or $H_t$ Fourier expansion coefficients. Please refer to the detailed solver description for their interpretation.
- Parameters:
num (int) – Computed mode number.
level (float) – Vertical level at which the coefficients are computed.
- Return type:
numpy.ndarray
- Fourier2D.initialize()¶
Initialize solver.
This method manually initialized the solver and sets
initialized
to True. Normally calling it is not necessary, as each solver automatically initializes itself when needed.- Returns:
solver
initialized
state prior to this method call.- Return type:
bool
- Fourier2D.integrateEE(z1, z2)¶
- Fourier2D.integrateEE(num, z1, z2)
Get average integral of the squared electric field:
\[\frac 1 2 \int_{z_1}^{z_2} |E|^2.\]
In the lateral direction integration is performed over the whole domain.
- Parameters:
num (int) – Computed mode number.
z1 (float) – Lower vertical bound of the integral.
z2 (float) – Upper vertical bound of the integral.
- Returns:
Computed integral [V2 / m2].
- Return type:
float
Warning
This method may return incorrect results for layers with gain, due to the strong non-Hemiticity!
- Fourier2D.integrateHH(z1, z2)¶
- Fourier2D.integrateHH(num, z1, z2)
Get average integral of the squared magnetic field:
\[\frac 1 2 \int_{z_1}^{z_2} |H|^2.\]
In the lateral direction integration is performed over the whole domain.
- Parameters:
num (int) – Computed mode number.
z1 (float) – Lower vertical bound of the integral.
z2 (float) – Upper vertical bound of the integral.
- Returns:
Computed integral [A2 / m2].
- Return type:
float
Warning
This method may return incorrect results for layers with gain, due to the strong non-Hemiticity!
- Fourier2D.invalidate()¶
Set the solver back to uninitialized state.
This method frees the memory allocated by the solver and sets
initialized
to False.
- Fourier2D.layer_eigenmodes(level)¶
Get eignemodes for a layer at specified level.
This is a low-level function to access diagonalized eigenmodes for a specific layer. Please refer to the detailed solver description for the interpretation of the returned values.
- Parameters:
level (float) – Vertical level at which the coefficients are computed.
- Return type:
- Fourier2D.scattering(side, idx)¶
- Fourier2D.scattering(side, polarization)
- Fourier2D.scattering(side, coeffs)
Access to the reflected field.
- Parameters:
side (top or bottom) – Side of the structure where the incident light is present.
polarization – Specification of the incident light polarization. It should be a string of the form ‘E#‘, where # is the axis name of the non-vanishing electric field component.
idx – Eigenmode number.
coeffs – expansion coefficients of the incident vector.
- Return type:
- Fourier2D.scattering_gaussian(side, polarization, sigma, center=0.0)¶
Helper function to Access reflected fields for access incidence.
This method is equivalent to calling:
>>> fourier.scattering(side, ... fourier.gaussian(side, polarization, sigma, center))
- Parameters:
side (top or bottom) – Side of the structure where the incident light is present.
polarization – Specification of the incident light polarization. It should be a string of the form ‘E#‘, where # is the axis name of the non-vanishing electric field component.
sigma (float) – Gaussian standard deviation (µm).
center (float) – Position of the beam center (µm).
- Fourier2D.set_interface(pos)¶
- Fourier2D.set_interface(object, path=None)
Set interface at the bottom of the specified object.
- Parameters:
object (geometry object) – object to set the interface at.
path (path) – Optional path specifying an instance of the object.
Set interface as close as possible to the specified position.
- Parameters:
pos (float) – Position, near which the interface will be located.
- Fourier2D.set_mode(*args, **kwargs)¶
Set the mode for specified parameters.
This method should be used if you have found a mode manually and want to insert it into the solver in order to determine the fields. Calling this will raise an exception if the determinant for the specified parameters is too large.
Arguments can be given through keywords only.
- Parameters:
lam (complex) – Wavelength (nm).
k0 (complex) – Normalized frequency (1/µm).
neff (complex) – Longitudinal effective index.
ktran (complex) – Transverse wavevector (1/µm).
Receiver Details¶
- Fourier2D.inCarriersConcentration = <property object>¶
Receiver of the carriers concentration required for computations [1/cm³].
You will find usage details in the documentation of the receiver class
CarriersConcentrationReceiver2D
.Example
Connect the receiver to a provider from some other solver:
>>> solver.inCarriersConcentration = other_solver.outCarriersConcentration
See also
Receciver class:
plask.flow.CarriersConcentrationReceiver2D
Provider class:
plask.flow.CarriersConcentrationProvider2D
Data filter:
plask.filter.CarriersConcentrationFilter2D
- Fourier2D.inEpsilon = <property object>¶
Receiver of the permittivity tensor required for computations [-].
You will find usage details in the documentation of the receiver class
EpsilonReceiver2D
.Example
Connect the receiver to a provider from some other solver:
>>> solver.inEpsilon = other_solver.outEpsilon
See also
Receciver class:
plask.flow.EpsilonReceiver2D
Provider class:
plask.flow.EpsilonProvider2D
Data filter:
plask.filter.EpsilonFilter2D
- Fourier2D.inGain = <property object>¶
Receiver of the material gain required for computations [1/cm].
You will find usage details in the documentation of the receiver class
GainReceiver2D
.Example
Connect the receiver to a provider from some other solver:
>>> solver.inGain = other_solver.outGain
See also
Receciver class:
plask.flow.GainReceiver2D
Provider class:
plask.flow.GainProvider2D
Data filter:
plask.filter.GainFilter2D
- Fourier2D.inTemperature = <property object>¶
Receiver of the temperature required for computations [K].
You will find usage details in the documentation of the receiver class
TemperatureReceiver2D
.Example
Connect the receiver to a provider from some other solver:
>>> solver.inTemperature = other_solver.outTemperature
See also
Receciver class:
plask.flow.TemperatureReceiver2D
Provider class:
plask.flow.TemperatureProvider2D
Data filter:
plask.filter.TemperatureFilter2D
Provider Details¶
- Fourier2D.outDownwardsLightE(n=0, mesh, interpolation='default') = <property object>¶
Provider of the computed electric field [V/m].
- Parameters:
n (int) – Number of the mode found with
find_mode()
.mesh (mesh) – Target mesh to get the field at.
interpolation (str) – Requested interpolation method.
- Returns:
Data with the electric field on the specified mesh [V/m].
You may obtain the number of different values this provider can return by testing its length.
Example
Connect the provider to a receiver in some other solver:
>>> other_solver.inModeLightE = solver.outDownwardsLightE
Obtain the provided field:
>>> solver.outDownwardsLightE(0, mesh) <plask.Data at 0x1234567>
Test the number of provided values:
>>> len(solver.outDownwardsLightE) 3
See also
Provider class:
plask.flow.ModeLightEProvider2D
Receciver class:
plask.flow.ModeLightEReceiver2D
- Fourier2D.outDownwardsLightH(n=0, mesh, interpolation='default') = <property object>¶
Provider of the computed magnetic field [A/m].
- Parameters:
n (int) – Number of the mode found with
find_mode()
.mesh (mesh) – Target mesh to get the field at.
interpolation (str) – Requested interpolation method.
- Returns:
Data with the magnetic field on the specified mesh [A/m].
You may obtain the number of different values this provider can return by testing its length.
Example
Connect the provider to a receiver in some other solver:
>>> other_solver.inModeLightH = solver.outDownwardsLightH
Obtain the provided field:
>>> solver.outDownwardsLightH(0, mesh) <plask.Data at 0x1234567>
Test the number of provided values:
>>> len(solver.outDownwardsLightH) 3
See also
Provider class:
plask.flow.ModeLightHProvider2D
Receciver class:
plask.flow.ModeLightHReceiver2D
- Fourier2D.outEpsilon(mesh, lam=DEFAULT, interpolation='default') = <property object>¶
Provider of the computed permittivity tensor [-].
- Parameters:
mesh (mesh) – Target mesh to get the field at.
interpolation (str) – Requested interpolation method.
lam (float) – Complex wavelength at which the epsilon tensor is computed (nm).
- Returns:
Data with the permittivity tensor on the specified mesh [-].
Example
Connect the provider to a receiver in some other solver:
>>> other_solver.inEpsilon = solver.outEpsilon
Obtain the provided field:
>>> solver.outEpsilon(mesh, lam=DEFAULT) <plask.Data at 0x1234567>
- Fourier2D.outLightE(n=0, mesh, interpolation='default') = <property object>¶
Provider of the computed electric field [V/m].
- Parameters:
n (int) – Number of the mode found with
find_mode()
.mesh (mesh) – Target mesh to get the field at.
interpolation (str) – Requested interpolation method.
- Returns:
Data with the electric field on the specified mesh [V/m].
You may obtain the number of different values this provider can return by testing its length.
Example
Connect the provider to a receiver in some other solver:
>>> other_solver.inModeLightE = solver.outLightE
Obtain the provided field:
>>> solver.outLightE(0, mesh) <plask.Data at 0x1234567>
Test the number of provided values:
>>> len(solver.outLightE) 3
See also
Provider class:
plask.flow.ModeLightEProvider2D
Receciver class:
plask.flow.ModeLightEReceiver2D
- Fourier2D.outLightH(n=0, mesh, interpolation='default') = <property object>¶
Provider of the computed magnetic field [A/m].
- Parameters:
n (int) – Number of the mode found with
find_mode()
.mesh (mesh) – Target mesh to get the field at.
interpolation (str) – Requested interpolation method.
- Returns:
Data with the magnetic field on the specified mesh [A/m].
You may obtain the number of different values this provider can return by testing its length.
Example
Connect the provider to a receiver in some other solver:
>>> other_solver.inModeLightH = solver.outLightH
Obtain the provided field:
>>> solver.outLightH(0, mesh) <plask.Data at 0x1234567>
Test the number of provided values:
>>> len(solver.outLightH) 3
See also
Provider class:
plask.flow.ModeLightHProvider2D
Receciver class:
plask.flow.ModeLightHReceiver2D
- Fourier2D.outLightMagnitude(n=0, mesh, interpolation='default') = <property object>¶
Provider of the computed optical field magnitude [W/m²].
- Parameters:
n (int) – Number of the mode found with
find_mode()
.mesh (mesh) – Target mesh to get the field at.
interpolation (str) – Requested interpolation method.
- Returns:
Data with the optical field magnitude on the specified mesh [W/m²].
You may obtain the number of different values this provider can return by testing its length.
Example
Connect the provider to a receiver in some other solver:
>>> other_solver.inModeLightMagnitude = solver.outLightMagnitude
Obtain the provided field:
>>> solver.outLightMagnitude(0, mesh) <plask.Data at 0x1234567>
Test the number of provided values:
>>> len(solver.outLightMagnitude) 3
See also
Provider class:
plask.flow.ModeLightMagnitudeProvider2D
Receciver class:
plask.flow.ModeLightMagnitudeReceiver2D
- Fourier2D.outNeff(n=0) = <property object>¶
Provider of the computed effective index [-]. Effective index of the last computed mode.
- Parameters:
n (int) – Value number.
- Returns:
Value of the effective index [-].
You may obtain the number of different values this provider can return by testing its length.
Example
Connect the provider to a receiver in some other solver:
>>> other_solver.inModeEffectiveIndex = solver.outNeff
Obtain the provided value:
>>> solver.outNeff(n=0) 1000
Test the number of provided values:
>>> len(solver.outNeff) 3
See also
Provider class:
plask.flow.ModeEffectiveIndexProvider
Receciver class:
plask.flow.ModeEffectiveIndexReceiver
- Fourier2D.outRefractiveIndex(n=0, mesh, lam=DEFAULT, interpolation='default') = <property object>¶
Provider of the computed refractive index [-].
- Parameters:
comp (str) – Component of a diagonal refractive index derivative to return. Can be ‘ll’, ‘tt’, ‘vv’, or equivalent using current axes names. For scalar solvers this argument is ignored and can be skipped.
mesh (mesh) – Target mesh to get the field at.
interpolation (str) – Requested interpolation method.
lam (float) – Complex wavelength at which the refractive index is computed (nm).
- Returns:
Data with the refractive index on the specified mesh [-].
You may obtain the number of different values this provider can return by testing its length.
Example
Connect the provider to a receiver in some other solver:
>>> other_solver.inRefractiveIndex = solver.outRefractiveIndex
Obtain the provided field:
>>> solver.outRefractiveIndex(0, mesh, lam=DEFAULT) <plask.Data at 0x1234567>
Test the number of provided values:
>>> len(solver.outRefractiveIndex) 3
See also
Provider class:
plask.flow.RefractiveIndexProvider2D
Receciver class:
plask.flow.RefractiveIndexReceiver2D
- Fourier2D.outUpwardsLightE(n=0, mesh, interpolation='default') = <property object>¶
Provider of the computed electric field [V/m].
- Parameters:
n (int) – Number of the mode found with
find_mode()
.mesh (mesh) – Target mesh to get the field at.
interpolation (str) – Requested interpolation method.
- Returns:
Data with the electric field on the specified mesh [V/m].
You may obtain the number of different values this provider can return by testing its length.
Example
Connect the provider to a receiver in some other solver:
>>> other_solver.inModeLightE = solver.outUpwardsLightE
Obtain the provided field:
>>> solver.outUpwardsLightE(0, mesh) <plask.Data at 0x1234567>
Test the number of provided values:
>>> len(solver.outUpwardsLightE) 3
See also
Provider class:
plask.flow.ModeLightEProvider2D
Receciver class:
plask.flow.ModeLightEReceiver2D
- Fourier2D.outUpwardsLightH(n=0, mesh, interpolation='default') = <property object>¶
Provider of the computed magnetic field [A/m].
- Parameters:
n (int) – Number of the mode found with
find_mode()
.mesh (mesh) – Target mesh to get the field at.
interpolation (str) – Requested interpolation method.
- Returns:
Data with the magnetic field on the specified mesh [A/m].
You may obtain the number of different values this provider can return by testing its length.
Example
Connect the provider to a receiver in some other solver:
>>> other_solver.inModeLightH = solver.outUpwardsLightH
Obtain the provided field:
>>> solver.outUpwardsLightH(0, mesh) <plask.Data at 0x1234567>
Test the number of provided values:
>>> len(solver.outUpwardsLightH) 3
See also
Provider class:
plask.flow.ModeLightHProvider2D
Receciver class:
plask.flow.ModeLightHReceiver2D
- Fourier2D.outWavelength(n=0) = <property object>¶
Provider of the computed wavelength [nm].
- Parameters:
n (int) – Value number.
- Returns:
Value of the wavelength [nm].
You may obtain the number of different values this provider can return by testing its length.
Example
Connect the provider to a receiver in some other solver:
>>> other_solver.inModeWavelength = solver.outWavelength
Obtain the provided value:
>>> solver.outWavelength(n=0) 1000
Test the number of provided values:
>>> len(solver.outWavelength) 3
See also
Provider class:
plask.flow.ModeWavelengthProvider
Receciver class:
plask.flow.ModeWavelengthReceiver
Attribute Details¶
- Fourier2D.dct = <property object>¶
Type of discrete cosine transform for symmetric expansion.
- Fourier2D.determinant_type = <property object>¶
Type of determinant that is computed in root finding.
This attribute specifies what is returned by the
get_determinant()
method. Regardless of the determinant type, its value must be zero for any mode.Can take on of the following values that specified what quantity is computed for the characteristic matrix:
eigenvalue
Eigenvalue with the smallest magnitude
full
Determinant of the matrix
- Fourier2D.emission = <property object>¶
Direction of the useful light emission.
Necessary for the over-threshold model to correctly compute the output power. Currently the fields are normalized only if this parameter is set to
top
orbottom
. Otherwise, it isundefined
(default) and the fields are not normalized.
- Fourier2D.ft = <property object>¶
Type of the Fourier transform. Analytic transform is faster and more precise, however it ignores temperature and gain distributions.
- Fourier2D.geometry = <property object>¶
Geometry provided to the solver
- Fourier2D.group_layers = <property object>¶
Layer grouping switch.
If this property is
True
, similar layers are grouped for efficiency.
- Fourier2D.id = <property object>¶
Id of the solver object. (read only)
Example
>>> mysolver.id mysolver:category.type
- Fourier2D.initialized = <property object>¶
True if the solver has been initialized. (read only)
Solvers usually get initialized at the beginning of the computations. You can clean the initialization state and free the memory by calling the
invalidate()
method.
- Fourier2D.interface = <property object>¶
Matching interface position.
- Fourier2D.k0 = <property object>¶
Normalized frequency of the light (1/µm).
Use this property only if you are looking for anything else than the wavelength,e.g. the effective index of lateral wavevector.
- Fourier2D.klong = <property object>¶
Longitudinal propagation constant of the light (1/µm).
Use this property only if you are looking for anything else than the longitudinal component of the propagation vector and the effective index.
- Fourier2D.ktran = <property object>¶
Transverse propagation constant of the light (1/µm).
Use this property only if you are looking for anything else than the transverse component of the propagation vector.
- Fourier2D.lam = <property object>¶
Wavelength of the light (nm).
Use this property only if you are looking for anything else than the wavelength, e.g. the effective index of lateral wavevector.
- Fourier2D.lam0 = <property object>¶
Reference wavelength.
This is a wavelength at which refractive index is retrieved from the structure. If this parameter is None, material parameters are computed each time, the wavelength changes even slightly (this is most accurate, but can be very inefficient.
- Fourier2D.layer_centers = <property object>¶
Vertical posiotions of centers of each layer.
At these positions materials and temperatures are probed.
- Fourier2D.layer_edges = <property object>¶
Vertical posiotions of egges of each layer.
- Fourier2D.mesh = <property object>¶
Mesh provided to the solver
- Fourier2D.mirrors = <property object>¶
Mirror reflectivities. If None then they are automatically estimated from the Fresnel equations.
- Fourier2D.modes = <property object>¶
Computed modes.
- Fourier2D.pml = <property object>¶
Side Perfectly Matched Layers boundary conditions.
Attributes:
factor
PML scaling factor.
shape
PML shape order (0 → flat, 1 → linearly increasing, 2 → quadratic, etc.).
dist
PML distance from the structure.
size
PML size.
- Return type:
PML
- Fourier2D.polarization = <property object>¶
Mode polarization.
- Fourier2D.refine = <property object>¶
Number of refinement points for refractive index averaging.
- Fourier2D.root = <property object>¶
Configuration of the root searching algorithm.
Attributes:
alpha
Parameter ensuring sufficient decrease of determinant in each step (Broyden method only).
lambd
Minimum decrease ratio of one step (Broyden method only).
initial_range
Initial range size (Muller and Brent methods only).
maxiter
Maximum number of iterations.
maxstep
Maximum step in one iteration (Broyden method only).
method
Root finding method ('muller', 'broyden', or 'brent')
tolf_max
Required tolerance on the function value.
tolf_min
Sufficient tolerance on the function value.
tolx
Absolute tolerance on the argument.
- Return type:
RootParams
- Fourier2D.size = <property object>¶
Orthogonal expansion size.
- Fourier2D.smooth = <property object>¶
Smoothing parameter for material boundaries (increases convergence).
- Fourier2D.stack = <property object>¶
Stack of distinct layers.
- Fourier2D.symmetry = <property object>¶
Mode symmetry.
- Fourier2D.temp_diff = <property object>¶
Maximum temperature difference between the layers in one group.
If a temperature in a single layer varies vertically more than this value, the layer is split into two and put into separate groups. If this is empty, temperature gradient is ignored in layers grouping.
- Fourier2D.temp_dist = <property object>¶
Temperature probing step.
If
temp_diff
is notNone
, the temperature is laterally probed in points approximately separated by this distance.
- Fourier2D.temp_layer = <property object>¶
Temperature probing step.
If
temp_diff
is notNone
, this is the minimum thickness of sublayers resulting from temperature-gradient division.
- Fourier2D.transfer = <property object>¶
Preferred transfer method.
Can take on of the following values:
auto
Automatically choose the best method
reflection
Reflection Transfer Method
admittance
Admittance Transfer Method
impedance
Impedance Transfer Method
Reflection transfer can have optional suffix
-admittance
(default) or-impedance
, in which case the admittance/impedance matching is done at interface (for eigenmode search). You should prefer admittance if electric field is expected to have significant horizontal components (particularly at the interface) i.e. for TE-like modes and impedance for TM-like modes.
- Fourier2D.update_gain = <property object>¶
Recompute dynamic parameters.
If this attribute is set to True, material parameters are always recomputed for layers with gain or permittivity provided by py:
inEpsilon
. This allows to set ‘lam0’ for better efficiency and still consider slight changes of wavelength, where it matters the most.
- Fourier2D.vpml = <property object>¶
Vertical Perfectly Matched Layers boundary conditions.
Attributes
factor
PML scaling factor.
dist
PML distance from the structure.
size
PML size.
Attribute
shape
is ignored for vertical PML (it is always 0).