Class Parameters
Parameters for a Resistor.
Implements
Inherited Members
Namespace: SpiceSharp.Components.Resistors
Assembly: SpiceSharp.dll
Syntax
public class Parameters : ParameterSet<Parameters>, ICloneable<Parameters>, IImportParameterSet<double>, IExportPropertySet<double>, IImportParameterSet<GivenParameter<double>>, IExportPropertySet<GivenParameter<double>>, IParameterSet
Fields
MinimumResistance
The minimum resistance for any resistor.
Declaration
public const double MinimumResistance = 1E-12
Field Value
Type | Description |
---|---|
double |
Properties
Length
Gets or sets the length of the resistor.
Declaration
[ParameterName("l")]
[ParameterInfo("Length", Units = "m")]
[GreaterThanOrEquals(0)]
[Finite]
public GivenParameter<double> Length { get; set; }
Property Value
Type | Description |
---|---|
GivenParameter<double> | The length of the resistor. |
ParallelMultiplier
Gets or sets the number of resistors in parallel.
Declaration
[ParameterName("m")]
[ParameterInfo("Parallel multiplier")]
[GreaterThanOrEquals(0)]
[Finite]
public double ParallelMultiplier { get; set; }
Property Value
Type | Description |
---|---|
double | The number of resistors in parallel. |
Resistance
Gets or sets the resistance of the resistor.
Declaration
[ParameterName("resistance")]
[ParameterName("r")]
[ParameterInfo("Resistance", Units = "Ω", IsPrincipal = true)]
[GreaterThanOrEquals(0)]
[LowerLimit(1E-12)]
[Finite]
public GivenParameter<double> Resistance { get; set; }
Property Value
Type | Description |
---|---|
GivenParameter<double> | The resistance. |
Remarks
If the resistance is limited to MinimumResistance to avoid numerical instability issues. If a 0 Ohm resistance is wanted, consider using an ideal voltage source instead.
SeriesMultiplier
Gets or sets the number of resistors in series.
Declaration
[ParameterName("n")]
[ParameterInfo("Series multiplier")]
[GreaterThan(0)]
[Finite]
public double SeriesMultiplier { get; set; }
Property Value
Type | Description |
---|---|
double | The number of resistors in series. |
Temperature
Gets or sets the temperature parameter in degrees Kelvin.
Declaration
[GreaterThan(0)]
[Finite]
public GivenParameter<double> Temperature { get; set; }
Property Value
Type | Description |
---|---|
GivenParameter<double> | The temperature of the resistor. |
TemperatureCelsius
Gets or sets the resistor operating temperature in degrees Celsius.
Declaration
[ParameterName("temp")]
[ParameterInfo("Instance operating temperature", Units = "°C", Interesting = false)]
[GreaterThan(-273.15)]
[Finite]
public double TemperatureCelsius { get; set; }
Property Value
Type | Description |
---|---|
double | The resistor operating temperature in degrees Celsius. |
Width
Gets or sets the width of the resistor.
Declaration
[ParameterName("w")]
[ParameterInfo("Width", Units = "m")]
[GreaterThan(0)]
[Finite]
public GivenParameter<double> Width { get; set; }
Property Value
Type | Description |
---|---|
GivenParameter<double> | The width of the resistor. |