Class BiasingBehavior
Biasing behavior for VoltageSource.
Inheritance
System.Object
BiasingBehavior
Implements
IBranchedBehavior<System.Double>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: SpiceSharp.Components.VoltageSources
Assembly: SpiceSharp.dll
Syntax
[BehaviorFor(typeof(VoltageSource), typeof(IBiasingBehavior))]
public class BiasingBehavior : Behavior, IBiasingBehavior, IBranchedBehavior<double>, IBehavior, IParameterSetCollection, IParameterSet, ICloneable, IParameterized<IndependentSourceParameters>
Constructors
BiasingBehavior(IComponentBindingContext)
Initializes a new instance of the BiasingBehavior class.
Declaration
public BiasingBehavior(IComponentBindingContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| IComponentBindingContext | context | The context. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | Thrown if |
Properties
Branch
Gets the branch equation variable.
Declaration
public IVariable<double> Branch { get; }
Property Value
| Type | Description |
|---|---|
| IVariable<System.Double> | The branch equation variable. |
Current
Gets the DC or instantaneous current through the device.
Declaration
[ParameterName("i")]
[ParameterInfo("Voltage source current")]
public double Current { get; }
Property Value
| Type | Description |
|---|---|
| System.Double | The DC or instantaneous current. |
Parameters
Gets the parameter set.
Declaration
public IndependentSourceParameters Parameters { get; }
Property Value
| Type | Description |
|---|---|
| IndependentSourceParameters | The parameter set. |
Power
Gets the DC or instantaneous power dissipation by the device.
Declaration
[ParameterName("p")]
[ParameterInfo("Instantaneous power")]
public double Power { get; }
Property Value
| Type | Description |
|---|---|
| System.Double | The DC or instantaneous power dissipation. |
Voltage
Gets the DC or instantaneous voltage over the device.
Declaration
[ParameterName("v")]
[ParameterInfo("Instantaneous voltage")]
public double Voltage { get; }
Property Value
| Type | Description |
|---|---|
| System.Double | The DC or instantaneous voltage. |
Waveform
Gets the waveform.
Declaration
protected IWaveform Waveform { get; }
Property Value
| Type | Description |
|---|---|
| IWaveform | The waveform. |
Explicit Interface Implementations
IBiasingBehavior.Load()
Loads the Y-matrix and right hand side vector.
Declaration
void IBiasingBehavior.Load()
Exceptions
| Type | Condition |
|---|---|
| SpiceSharpException | Thrown if the behavior can't load the matrix and/or right hand side vector. |