Class Constants
Helpful (electronics-related) constants used throughout Spice#.
Inherited Members
Namespace: SpiceSharp
Assembly: SpiceSharp.dll
Syntax
public static class Constants
Fields
Boltzmann
Boltzman constant (in Joules per Kelvin - J/K).
Declaration
public const double Boltzmann = 1.3806226E-23
Field Value
Type | Description |
---|---|
double |
CelsiusKelvin
The conversion constant for converting between Kelvin and Celsius (in Kelvin or degrees Celsius).
Declaration
public const double CelsiusKelvin = 273.15
Field Value
Type | Description |
---|---|
double |
Charge
Charge of an electron (in Coulomb - C).
Declaration
public const double Charge = 1.6021918E-19
Field Value
Type | Description |
---|---|
double |
Ground
The fixed name of the ground node.
Declaration
public const string Ground = "0"
Field Value
Type | Description |
---|---|
string |
Remarks
The ground node is the reference node at 0V, and any simulation that wants to solve for voltages will need one.
If you want to use other names for ground, you can make an IEqualityComparer<T> that maps these extra node names to the ground node.
KOverQ
Normalized thermal voltage (in Volts per Kelvin - V/K).
Declaration
public const double KOverQ = 8.617086918058125E-05
Field Value
Type | Description |
---|---|
double |
ReferenceTemperature
The default reference temperature in Kelvin (equal to 27 degrees Celsius).
Declaration
public const double ReferenceTemperature = 300.15
Field Value
Type | Description |
---|---|
double |
Root2
The square root of 2.
Declaration
public const double Root2 = 1.4142135623730951
Field Value
Type | Description |
---|---|
double |
Vt0
The thermal voltage at the default reference temperature (in Volt - V).
Declaration
public const double Vt0 = 0.02586418638455146
Field Value
Type | Description |
---|---|
double |
Properties
DefaultComparer
Gets the default string comparer.
Declaration
public static IEqualityComparer<string> DefaultComparer { get; }
Property Value
Type | Description |
---|---|
IEqualityComparer<string> | The default string comparer. |