Show / Hide Table of Contents

Class Parameters

Parameters for a Resistor.

Inheritance
object
ParameterSet
ParameterSet<Parameters>
Parameters
Implements
ICloneable<Parameters>
IImportParameterSet<double>
IExportPropertySet<double>
IImportParameterSet<GivenParameter<double>>
IExportPropertySet<GivenParameter<double>>
IParameterSet
Inherited Members
ParameterSet<Parameters>.Clone()
ParameterSet.SetParameter<P>(string, P)
ParameterSet.TrySetParameter<P>(string, P)
ParameterSet.GetProperty<P>(string)
ParameterSet.TryGetProperty<P>(string, out P)
ParameterSet.CreateParameterSetter<P>(string)
ParameterSet.CreatePropertyGetter<P>(string)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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.

Implements

ICloneable<T>
IImportParameterSet<P>
IExportPropertySet<P>
IImportParameterSet<P>
IExportPropertySet<P>
IParameterSet

Extension Methods

Utility.ThrowIfNull<T>(T, string)
Documentation.ParameterValues<T>(IParameterSet, bool)
Documentation.Parameters(IParameterSet)

See Also

ParameterSet
In this article
Back to top Generated by DocFX