Diffusion3D Class¶
- class electrical.diffusion.Diffusion3D(name='')¶
Calculates carrier pairs concentration in active region using FEM in three-dimensional space
Methods¶
|
Run diffusion calculations |
|
Get power burned over threshold by specified mode [mW]. |
Get total power burned over threshold [mW]. |
|
Initialize solver. |
|
Set the solver back to uninitialized state. |
Attributes¶
Receivers¶
Receiver of the current density required for computations [kA/cm²]. |
|
Receiver of the material gain required for computations [1/cm]. |
|
Receiver of the electric field required for computations [V/m]. |
|
Receiver of the temperature required for computations [K]. |
|
Receiver of the wavelength required for computations [nm]. |
Providers¶
Provider of the computed carriers concentration [1/cm³]. |
Other¶
Chosen matrix factorization algorithm |
|
Geometry provided to the solver |
|
Id of the solver object. |
|
True if the solver has been initialized. |
|
Iterative matrix parameters (see |
|
Maximum relative residual error (%) |
|
Mesh provided to the solver |
Descriptions¶
Method Details¶
- Diffusion3D.compute(loops=0, shb=False, reg=None)¶
Run diffusion calculations
- Parameters:
loops (int) – Number of iterations to perform. If 0, the solver will run until the convergence.
shb (bool) – If True, the solver will use take into account the spatial hole burning effect.
reg (int or None) – Index of the active region to compute. If None, perform computations for all the active regions.
- Diffusion3D.get_burning_for_mode(mode)¶
Get power burned over threshold by specified mode [mW].
- Diffusion3D.get_total_burning()¶
Get total power burned over threshold [mW].
- Diffusion3D.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
- Diffusion3D.invalidate()¶
Set the solver back to uninitialized state.
This method frees the memory allocated by the solver and sets
initialized
to False.
Receiver Details¶
- Diffusion3D.inCurrentDensity = <property object>¶
Receiver of the current density required for computations [kA/cm²].
You will find usage details in the documentation of the receiver class
CurrentDensityReceiver3D
.Example
Connect the receiver to a provider from some other solver:
>>> solver.inCurrentDensity = other_solver.outCurrentDensity
See also
Receciver class:
plask.flow.CurrentDensityReceiver3D
Provider class:
plask.flow.CurrentDensityProvider3D
Data filter:
plask.filter.CurrentDensityFilter3D
- Diffusion3D.inGain = <property object>¶
Receiver of the material gain required for computations [1/cm]. It is required only for the SHB computations.
You will find usage details in the documentation of the receiver class
GainReceiver3D
.Example
Connect the receiver to a provider from some other solver:
>>> solver.inGain = other_solver.outGain
See also
Receciver class:
plask.flow.GainReceiver3D
Provider class:
plask.flow.GainProvider3D
Data filter:
plask.filter.GainFilter3D
- Diffusion3D.inLightE = <property object>¶
Receiver of the electric field required for computations [V/m]. It is required only for the SHB computations.
You will find usage details in the documentation of the receiver class
ModeLightEReceiver3D
.Example
Connect the receiver to a provider from some other solver:
>>> solver.inLightE = other_solver.outModeLightE
See also
Receciver class:
plask.flow.ModeLightEReceiver3D
Provider class:
plask.flow.ModeLightEProvider3D
Data filter:
plask.filter.ModeLightEFilter3D
- Diffusion3D.inTemperature = <property object>¶
Receiver of the temperature required for computations [K].
You will find usage details in the documentation of the receiver class
TemperatureReceiver3D
.Example
Connect the receiver to a provider from some other solver:
>>> solver.inTemperature = other_solver.outTemperature
See also
Receciver class:
plask.flow.TemperatureReceiver3D
Provider class:
plask.flow.TemperatureProvider3D
Data filter:
plask.filter.TemperatureFilter3D
- Diffusion3D.inWavelength = <property object>¶
Receiver of the wavelength required for computations [nm]. It is required only for the SHB computations.
You will find usage details in the documentation of the receiver class
ModeWavelengthReceiver
.Example
Connect the receiver to a provider from some other solver:
>>> solver.inWavelength = other_solver.outModeWavelength
See also
Receciver class:
plask.flow.ModeWavelengthReceiver
Provider class:
plask.flow.ModeWavelengthProvider
Data filter:
plask.filter.ModeWavelengthFilter
Provider Details¶
- Diffusion3D.outCarriersConcentration(n=0, mesh, interpolation='default') = <property object>¶
Provider of the computed carriers concentration [1/cm³].
- Parameters:
type (str) – Detailed information which carriers are returned. It can be ‘majority’ to return majority carriers in given material, ‘pairs’ for the concentration of electron-hole pairs, ‘electrons’, or ‘holes’ for particular carriers type.
mesh (mesh) – Target mesh to get the field at.
interpolation (str) – Requested interpolation method.
- Returns:
Data with the carriers concentration on the specified mesh [1/cm³].
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.inCarriersConcentration = solver.outCarriersConcentration
Obtain the provided field:
>>> solver.outCarriersConcentration(0, mesh) <plask.Data at 0x1234567>
Test the number of provided values:
>>> len(solver.outCarriersConcentration) 3
See also
Provider class:
plask.flow.CarriersConcentrationProvider3D
Receciver class:
plask.flow.CarriersConcentrationReceiver3D
Attribute Details¶
- Diffusion3D.algorithm = <property object>¶
Chosen matrix factorization algorithm
- Diffusion3D.geometry = <property object>¶
Geometry provided to the solver
- Diffusion3D.id = <property object>¶
Id of the solver object. (read only)
Example
>>> mysolver.id mysolver:category.type
- Diffusion3D.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.
- Diffusion3D.iterative = <property object>¶
Iterative matrix parameters (see
IterativeParams
)
- Diffusion3D.maxerr = <property object>¶
Maximum relative residual error (%)
- Diffusion3D.mesh = <property object>¶
Mesh provided to the solver