Class Inductor
An inductor.
Inheritance
Inductor
Implements
Inherited Members
Namespace: SpiceSharp.Components
Assembly: SpiceSharp.dll
Syntax
[Pin(0, "L+")]
[Pin(1, "L-")]
[VoltageDriver(0, 1)]
public class Inductor : Component<Parameters>, IComponent, IEntity, IParameterSetCollection, IParameterSet, ICloneable<IEntity>, IParameterized<Parameters>, IRuleSubject
Constructors
Inductor(string)
Initializes a new instance of the Inductor class.
Declaration
public Inductor(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the inductor. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if |
Inductor(string, string, string, double)
Initializes a new instance of the Inductor class.
Declaration
public Inductor(string name, string pos, string neg, double inductance)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the inductor. |
string | pos | The positive node. |
string | neg | The negative node. |
double | inductance | The inductance. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if |
Fields
InductorPinCount
Constants
Declaration
[ParameterName("pincount")]
[ParameterInfo("Number of pins")]
public const int InductorPinCount = 2
Field Value
Type | Description |
---|---|
int |
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. |