Shockley3D Class¶
- class electrical.shockley.Shockley3D(name='')¶
Finite element thermal solver for 3D Cartesian geometry.
Methods¶
|
Run electrical calculations |
Get the structure capacitance. |
|
Get the energy stored in the electrostatic field in the analyzed structure. |
|
|
Get total current flowing through active region (mA) |
Get the total heat produced by the current flowing in the structure. |
|
Initialize solver. |
|
Set the solver back to uninitialized state. |
Attributes¶
Receivers¶
Receiver of the temperature required for computations [K]. |
Providers¶
Provider of the computed electrical conductivity [S/m]. |
|
Provider of the computed current density [kA/cm²]. |
|
Provider of the computed heat sources density [W/m³]. |
|
Not available in this solver. |
|
Provider of the computed voltage [V]. |
Other¶
Chosen matrix factorization algorithm |
|
Junction coefficient (1/V). |
|
Convergence method. |
|
Should empty regions (e.g. air) be included into computation domain?. |
|
Maximum estimated error |
|
Geometry provided to the solver |
|
Id of the solver object. |
|
True if the solver has been initialized. |
|
Iterative matrix parameters (see |
|
Reverse bias current density (A/m2). |
|
Limit for the potential updates |
|
Mesh provided to the solver |
|
Conductivity of the n-contact |
|
Conductivity of the p-contact |
|
Default effective conductivity of the active region. |
|
Default effective conductivity of the active region. |
|
Boundary conditions of the first kind (constant potential) |
Descriptions¶
Method Details¶
- Shockley3D.compute(loops=0)¶
Run electrical calculations
- Shockley3D.get_capacitance()¶
Get the structure capacitance.
- Returns:
Total capacitance [pF].
Note
This method can only be used it there are exactly two boundary conditions specifying the voltage. Otherwise use
get_electrostatic_energy()
to obtain the stored energy $W$ and compute the capacitance as: $C = 2 , W / U^2$, where $U$ is the applied voltage.
- Shockley3D.get_electrostatic_energy()¶
Get the energy stored in the electrostatic field in the analyzed structure.
- Returns:
Total electrostatic energy [J].
- Shockley3D.get_total_current(nact=0)¶
Get total current flowing through active region (mA)
- Shockley3D.get_total_heat()¶
Get the total heat produced by the current flowing in the structure.
- Returns:
Total produced heat (mW).
- Shockley3D.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
- Shockley3D.invalidate()¶
Set the solver back to uninitialized state.
This method frees the memory allocated by the solver and sets
initialized
to False.
Receiver Details¶
- Shockley3D.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
Provider Details¶
- Shockley3D.outConductivity(mesh, interpolation='default') = <property object>¶
Provider of the computed electrical conductivity [S/m].
- Parameters:
mesh (mesh) – Target mesh to get the field at.
interpolation (str) – Requested interpolation method.
- Returns:
Data with the electrical conductivity on the specified mesh [S/m].
Example
Connect the provider to a receiver in some other solver:
>>> other_solver.inConductivity = solver.outConductivity
Obtain the provided field:
>>> solver.outConductivity(mesh) <plask.Data at 0x1234567>
See also
Provider class:
plask.flow.ConductivityProvider3D
Receciver class:
plask.flow.ConductivityReceiver3D
- Shockley3D.outCurrentDensity(mesh, interpolation='default') = <property object>¶
Provider of the computed current density [kA/cm²].
- Parameters:
mesh (mesh) – Target mesh to get the field at.
interpolation (str) – Requested interpolation method.
- Returns:
Data with the current density on the specified mesh [kA/cm²].
Example
Connect the provider to a receiver in some other solver:
>>> other_solver.inCurrentDensity = solver.outCurrentDensity
Obtain the provided field:
>>> solver.outCurrentDensity(mesh) <plask.Data at 0x1234567>
See also
Provider class:
plask.flow.CurrentDensityProvider3D
Receciver class:
plask.flow.CurrentDensityReceiver3D
- Shockley3D.outHeat(mesh, interpolation='default') = <property object>¶
Provider of the computed heat sources density [W/m³].
- Parameters:
mesh (mesh) – Target mesh to get the field at.
interpolation (str) – Requested interpolation method.
- Returns:
Data with the heat sources density on the specified mesh [W/m³].
Example
Connect the provider to a receiver in some other solver:
>>> other_solver.inHeat = solver.outHeat
Obtain the provided field:
>>> solver.outHeat(mesh) <plask.Data at 0x1234567>
- Shockley3D.outPotential = <property object>¶
Not available in this solver. Use
outVoltage
instead.
- Shockley3D.outVoltage(mesh, interpolation='default') = <property object>¶
Provider of the computed voltage [V].
- Parameters:
mesh (mesh) – Target mesh to get the field at.
interpolation (str) – Requested interpolation method.
- Returns:
Data with the voltage on the specified mesh [V].
Example
Connect the provider to a receiver in some other solver:
>>> other_solver.inVoltage = solver.outVoltage
Obtain the provided field:
>>> solver.outVoltage(mesh) <plask.Data at 0x1234567>
Attribute Details¶
- Shockley3D.algorithm = <property object>¶
Chosen matrix factorization algorithm
- Shockley3D.beta = <property object>¶
Junction coefficient (1/V).
In case, there is more than one junction you may set $\beta$ parameter for any of them by using
beta#
property, where # is the junction number (specified by a rolejunction#
oractive#
).beta
is an alias forbeta0
.
- Shockley3D.convergence = <property object>¶
Convergence method.
If stable, covergence is slown down to ensure stability.
- Shockley3D.empty_elements = <property object>¶
Should empty regions (e.g. air) be included into computation domain?
- Shockley3D.err = <property object>¶
Maximum estimated error
- Shockley3D.geometry = <property object>¶
Geometry provided to the solver
- Shockley3D.id = <property object>¶
Id of the solver object. (read only)
Example
>>> mysolver.id mysolver:category.type
- Shockley3D.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.
- Shockley3D.iterative = <property object>¶
Iterative matrix parameters (see
IterativeParams
)
- Shockley3D.js = <property object>¶
Reverse bias current density (A/m2).
In case, there is more than one junction you may set $j_s$ parameter for any of them by using
js#
property, where # is the junction number (specified by a rolejunction#
oractive#
).js
is an alias forjs0
.
- Shockley3D.maxerr = <property object>¶
Limit for the potential updates
- Shockley3D.mesh = <property object>¶
Mesh provided to the solver
- Shockley3D.ncond = <property object>¶
Conductivity of the n-contact
- Shockley3D.pcond = <property object>¶
Conductivity of the p-contact
- Shockley3D.pnjcond = <property object>¶
Default effective conductivity of the active region.
Effective junction conductivity will be computed starting from this value. Note that the actual junction conductivity after convergence can be obtained with
outConductivity
.
- Shockley3D.start_cond = <property object>¶
Default effective conductivity of the active region.
Effective junction conductivity will be computed starting from this value. Note that the actual junction conductivity after convergence can be obtained with
outConductivity
.
- Shockley3D.voltage_boundary = <property object>¶
Boundary conditions of the first kind (constant potential)
This field holds a list of boundary conditions for the solver. You may access and alter its elements a normal Python list. Each element is a special class that has two attributes:
place
Boundary condition location (
plask.mesh.RectangularBase3D.Boundary
).value
Boundary condition value.
When you add new boundary condition, you may use two-argument
append
, orprepend
methods, or three-argumentinsert
method, where you separately specify the place and the value. See the below example for clarification.Example
>>> solver.voltage_boundary.clear() >>> solver.voltage_boundary.append(solver.mesh.Bottom(), some_value) >>> solver.voltage_boundary[0].value = different_value >>> solver.voltage_boundary.insert(0, solver.mesh.Top(), new_value) >>> solver.voltage_boundary[1].value == different_value True