Class Semiconductor
A class with helper methods for semiconductor devices.
Inherited Members
Namespace: SpiceSharp.Components.Semiconductors
Assembly: SpiceSharp.dll
Syntax
public static class Semiconductor
Methods
LimitJunction(double, double, double, double, ref bool)
Limit the per-iteration change of PN junction voltages Defined as DEVpnjlim in devsup.c
Declaration
public static double LimitJunction(double newVoltage, double oldVoltage, double thermalVoltage, double criticalVoltage, ref bool limited)
Parameters
| Type | Name | Description |
|---|---|---|
| double | newVoltage | The target voltage. |
| double | oldVoltage | The current voltage. |
| double | thermalVoltage | The thermal voltage. |
| double | criticalVoltage | The critical voltage. |
| bool | limited | If |
Returns
| Type | Description |
|---|---|
| double | The new voltage value, limited if necessary. |
Remarks
Taken from ngSpice, where it was fixed by Alan Gillespie's code.