EnergyLevelsProvider3D Class¶
- class plask.flow.EnergyLevelsProvider3D(data)¶
Provider of the energy levels for electrons and holes in Cartesian3D geometry (eV).
This class is used for energy levels for electrons and holes 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). It must also be able to give its length (i.e. have the__len__
method defined) that gives the number of different provided values.
To obtain the value from the provider simply call it. The call signature is as follows:
- solver.outEnergyLevels(n=0, mesh, interpolation='default')¶
- Parameters:
n (int) – Value number.
mesh (mesh) – Target mesh to get the field at.
interpolation (str) – Requested interpolation method.
- Returns:
Data with the energy levels for electrons and holes on the specified mesh (eV).
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.inEnergyLevels = solver.outEnergyLevels
Obtain the provided field:
>>> solver.outEnergyLevels(0, mesh) <plask.Data at 0x1234567>
Test the number of provided values:
>>> len(solver.outEnergyLevels) 3
See also
Receiver of energy levels for electrons and holes:
plask.flow.EnergyLevelsReceiver3D
Data filter for energy levels for electrons and holes:plask.flow.EnergyLevelsFilter3D
Methods¶
|
Get value from the provider. |
Inform all connected receivers that the provided value has changed. |
Descriptions¶
Method Details¶
- EnergyLevelsProvider3D.__call__(n, mesh, interpolation='DEFAULT')¶
- EnergyLevelsProvider3D.__call__(mesh, interpolation='DEFAULT')
Get value from the provider.
- Parameters:
n (int) – Value number.
mesh (mesh) – Target mesh to get the field at.
interpolation (str) – Requested interpolation method.
- EnergyLevelsProvider3D.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.