Class Biasing
DC biasing behavior for a CurrentSource.
Implements
Inherited Members
Namespace: SpiceSharp.Components.CurrentSources
Assembly: SpiceSharp.dll
Syntax
[BehaviorFor(typeof(CurrentSource))]
[AddBehaviorIfNo(typeof(IBiasingBehavior))]
public class Biasing : Behavior, IBiasingBehavior, IBehavior, IParameterSetCollection, IParameterized<Parameters>, IExportPropertySet<double>, IParameterSet
Remarks
This behavior also includes transient behavior logic. When transient analysis is performed, then waveforms need to be used to calculate the operating point anyway.
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 |
Properties
Current
Gets the DC or instantaneous current through the device.
Declaration
[ParameterName("c")]
[ParameterName("i")]
[ParameterName("i_r")]
[ParameterInfo("Current through current source")]
public double Current { get; protected set; }
Property Value
Type | Description |
---|---|
double | The DC or instantaneous current. |
Parameters
Gets the parameter set.
Declaration
public Parameters Parameters { get; }
Property Value
Type | Description |
---|---|
Parameters | The parameter set. |
Power
Gets the DC or instantaneous power dissipation by the device.
Declaration
[ParameterName("p")]
[ParameterName("p_r")]
[ParameterInfo("Power supplied by the source")]
public double Power { get; }
Property Value
Type | Description |
---|---|
double | The DC or instantaneous power dissipation. |
Voltage
Gets the DC or instantaneous voltage over the device.
Declaration
[ParameterName("v")]
[ParameterName("v_r")]
[ParameterInfo("Voltage accross the supply")]
public double Voltage { get; }
Property Value
Type | Description |
---|---|
double | The DC or instantaneous voltage. |
Waveform
Gets the waveform.
Declaration
public IWaveform Waveform { get; }
Property Value
Type | Description |
---|---|
IWaveform | The waveform. |