LuminescenceProvider2D Class¶
- class plask.flow.LuminescenceProvider2D(data)¶
Provider of the luminescence in Cartesian2D geometry (a.u.).
This class is used for luminescence provider in binary solvers. You can also create a custom provider for your Python solver.
- Parameters:
data –
Data
object to interpolate or callable returning it for given mesh. The callable must accept the same arguments as the provider__call__
method (see below).
To obtain the value from the provider simply call it. The call signature is as follows:
- solver.outLuminescence(mesh, lam, interpolation='default')¶
- Parameters:
mesh (mesh) – Target mesh to get the field at.
interpolation (str) – Requested interpolation method.
lam (float) – The wavelength at which the luminescence is computed (nm).
- Returns:
Data with the luminescence on the specified mesh (a.u.).
Example
Connect the provider to a receiver in some other solver:
>>> other_solver.inLuminescence = solver.outLuminescence
Obtain the provided field:
>>> solver.outLuminescence(mesh, lam) <plask.Data at 0x1234567>
See also
Receiver of luminescence:
plask.flow.LuminescenceReceiver2D
Data filter for luminescence:plask.flow.LuminescenceFilter2D
Methods¶
|
Get value from the provider. |
Inform all connected receivers that the provided value has changed. |
Descriptions¶
Method Details¶
- LuminescenceProvider2D.__call__(mesh, lam, interpolation='DEFAULT')¶
Get value from the provider.
- Parameters:
mesh (mesh) – Target mesh to get the field at.
interpolation (str) – Requested interpolation method.
lam (float) – The wavelength at which the luminescence is computed (nm).
- LuminescenceProvider2D.set_changed()¶
Inform all connected receivers that the provided value has changed.
The receivers will have its changed attribute set to True and solvers will call the provider again if they need its value (otherwise they might take it from the cache.