PLaSK User Manual

Fourier2D.Eigenmodes Class

class Fourier2D.Eigenmodes

Layer eignemodes

This is an advanced class allowing to extract eignemodes in each layer.

Subclasses

Eigenmode Single eignemode.

Attributes

outLightE Provider of the computed electric field [V/m].
outLightH Provider of the computed electric field [A/m].
outLightMagnitude Provider of the computed light intensity [W/m²].

Descriptions

Attribute Details

Fourier2D.Eigenmodes.outLightE

Provider of the computed electric field [V/m].

outLightE(n=0, mesh, interpolation=’default’)

Parameters:
  • n (int) – Number of the mode found with find_mode().:param 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.inLightE = 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.LightEProvider2D

Receciver class: plask.flow.LightEReceiver2D

Fourier2D.Eigenmodes.outLightH

Provider of the computed electric field [A/m].

outLightH(n=0, mesh, interpolation=’default’)

Parameters:
  • n (int) – Number of the mode found with find_mode().:param mesh mesh: Target mesh to get the field at.
  • interpolation (str) – Requested interpolation method.
Returns:

Data with the electric 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.inLightH = 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.LightHProvider2D

Receciver class: plask.flow.LightHReceiver2D

Fourier2D.Eigenmodes.outLightMagnitude

Provider of the computed light intensity [W/m²].

outLightMagnitude(n=0, mesh, interpolation=’default’)

Parameters:
  • n (int) – Number of the mode found with find_mode().:param mesh mesh: Target mesh to get the field at.
  • interpolation (str) – Requested interpolation method.
Returns:

Data with the light intensity 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.inLightMagnitude = solver.outLightMagnitude

Obtain the provided field:

>>> solver.outLightMagnitude(0, mesh)
<plask.Data at 0x1234567>

Test the number of provided values:

>>> len(solver.outLightMagnitude)
3