Class Biasing
DC biasing behavior for a Diode.
Implements
Inherited Members
Namespace: SpiceSharp.Components.Diodes
Assembly: SpiceSharp.dll
Syntax
[BehaviorFor(typeof(Diode))]
[AddBehaviorIfNo(typeof(IBiasingBehavior))]
public class Biasing : Temperature, ITemperatureBehavior, IParameterized<Parameters>, IConvergenceBehavior, IBiasingBehavior, IBehavior, IParameterSetCollection, IExportPropertySet<double>, IParameterSet
Constructors
Biasing(IComponentBindingContext)
Initializes a new instance of the Biasing class.
Declaration
public Biasing(IComponentBindingContext context)
Parameters
Type | Name | Description |
---|---|---|
IComponentBindingContext | context | The context. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if |
Fields
Elements
The matrix elements.
Declaration
protected readonly ElementSet<double> Elements
Field Value
Type | Description |
---|---|
ElementSet<double> |
LocalConductance
The conductance through a single diode (not including paralle or series multipliers).
Declaration
protected double LocalConductance
Field Value
Type | Description |
---|---|
double |
LocalCurrent
The current through a single diode (not including parallel or series multipliers).
Declaration
protected double LocalCurrent
Field Value
Type | Description |
---|---|
double |
LocalVoltage
The voltage across a single diode (not including parallel or series multipliers).
Declaration
protected double LocalVoltage
Field Value
Type | Description |
---|---|
double |
Variables
The variables used by the behavior.
Declaration
protected readonly DiodeVariables<double> Variables
Field Value
Type | Description |
---|---|
DiodeVariables<double> |
Properties
Conductance
Gets the small-signal conductance.
Declaration
[ParameterName("gd")]
[ParameterInfo("Small-signal conductance")]
public double Conductance { get; }
Property Value
Type | Description |
---|---|
double | The small-signal conductance. |
Current
Gets the DC or instantaneous current through the device.
Declaration
[ParameterName("i")]
[ParameterName("id")]
[ParameterName("c")]
[ParameterInfo("The complex current through the diode")]
public double Current { get; }
Property Value
Type | Description |
---|---|
double | The DC or instantaneous current. |
Remarks
If the parallel multiplier is set, then this current is the sum of all currents through all the diodes in parallel.
Power
Gets the DC or instantaneous power dissipation by the device.
Declaration
[ParameterName("p")]
[ParameterName("pd")]
[ParameterInfo("The dissipated power")]
public double Power { get; }
Property Value
Type | Description |
---|---|
double | The DC or instantaneous power dissipation. |
Remarks
The power does not take into account losses by parasitic series resistors.
Voltage
Gets the DC or instantaneous voltage over the device.
Declaration
[ParameterName("v")]
[ParameterName("vd")]
[ParameterInfo("The voltage across the internal diode")]
public double Voltage { get; }
Property Value
Type | Description |
---|---|
double | The DC or instantaneous voltage. |
Remarks
If the series multiplier is set, then this voltage is the sum of all voltage drops over all the diodes in series.
Methods
Initialize(out double, out bool)
Initialize the device based on the current iteration state.
Declaration
protected void Initialize(out double vd, out bool check)
Parameters
Type | Name | Description |
---|---|---|
double | vd | |
bool | check |
Load()
Declaration
protected virtual void Load()