Class CurrentControlledVoltageSource
A current-controlled voltage source.
Inheritance
Implements
Inherited Members
Namespace: SpiceSharp.Components
Assembly: SpiceSharp.dll
Syntax
[Pin(0, "H+")]
[Pin(1, "H-")]
[VoltageDriver(0, 1)]
public class CurrentControlledVoltageSource : Component<Parameters>, IParameterized<Parameters>, ICurrentControllingComponent, IComponent, IEntity, IParameterSetCollection, IParameterSet, ICloneable<IEntity>, IRuleSubject
Constructors
CurrentControlledVoltageSource(string)
Initializes a new instance of the CurrentControlledVoltageSource class.
Declaration
public CurrentControlledVoltageSource(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the current-controlled current source. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if |
CurrentControlledVoltageSource(string, string, string, string, double)
Initializes a new instance of the CurrentControlledVoltageSource class.
Declaration
public CurrentControlledVoltageSource(string name, string pos, string neg, string controllingSource, double gain)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the current-controlled current source. |
string | pos | The positive node. |
string | neg | The negative node. |
string | controllingSource | The controlling voltage source name. |
double | gain | The transresistance (gain). |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if |
Fields
PinCount
The pin count for current-controlled voltage sources.
Declaration
[ParameterName("pincount")]
[ParameterInfo("Number of pins")]
public const int PinCount = 2
Field Value
Type | Description |
---|---|
int |
Properties
ControllingSource
Gets or sets the name of the controlling entity.
Declaration
[ParameterName("control")]
[ParameterInfo("Controlling voltage source")]
public string ControllingSource { get; set; }
Property Value
Type | Description |
---|---|
string | The name of the controlling entity. |
Methods
CreateBehaviors(ISimulation)
Creates the behaviors and stores them in the specified container.
Declaration
public override void CreateBehaviors(ISimulation simulation)
Parameters
Type | Name | Description |
---|---|---|
ISimulation | simulation | The simulation. |
Overrides
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if |
ArgumentException | Thrown if the simulation does not use an IComplexSimulationState. |
TypeNotFoundException | Thrown if a required behavior or parameter set could not be found. |
AmbiguousTypeException | Thrown if a behavior or parameter set could not be resolved unambiguously. |