Struct MosfetVariables<T>
Variables for a mosfet.
Inherited Members
Namespace: SpiceSharp.Components.Mosfets
Assembly: SpiceSharp.dll
Syntax
public readonly struct MosfetVariables<T>
Type Parameters
Name | Description |
---|---|
T | The base value type. |
Constructors
MosfetVariables(IComponentBindingContext, IVariableFactory<IVariable<T>>)
Initializes a new instance of the MosfetVariables<T> struct.
Declaration
public MosfetVariables(IComponentBindingContext context, IVariableFactory<IVariable<T>> factory)
Parameters
Type | Name | Description |
---|---|---|
IComponentBindingContext | context | The binding context. |
IVariableFactory<IVariable<T>> | factory | The variable factory. |
Fields
Bulk
The bulk node.
Declaration
public readonly IVariable<T> Bulk
Field Value
Type | Description |
---|---|
IVariable<T> |
Drain
The drain node.
Declaration
public readonly IVariable<T> Drain
Field Value
Type | Description |
---|---|
IVariable<T> |
DrainPrime
The internal drain node.
Declaration
public readonly IVariable<T> DrainPrime
Field Value
Type | Description |
---|---|
IVariable<T> |
Gate
The gate node.
Declaration
public readonly IVariable<T> Gate
Field Value
Type | Description |
---|---|
IVariable<T> |
Source
The source node.
Declaration
public readonly IVariable<T> Source
Field Value
Type | Description |
---|---|
IVariable<T> |
SourcePrime
The internal source node.
Declaration
public readonly IVariable<T> SourcePrime
Field Value
Type | Description |
---|---|
IVariable<T> |
Methods
Equals(object)
Determines whether the specified object, is equal to this instance.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with this instance. |
Returns
Type | Description |
---|---|
bool |
|
Overrides
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
Overrides
GetMatrixLocations(IVariableMap)
Gets the matrix locations.
Declaration
public MatrixLocation[] GetMatrixLocations(IVariableMap map)
Parameters
Type | Name | Description |
---|---|---|
IVariableMap | map | The map. |
Returns
Type | Description |
---|---|
MatrixLocation[] | The matrix locations. |
GetRhsIndices(IVariableMap)
Gets the right hand side vector.
Declaration
public int[] GetRhsIndices(IVariableMap map)
Parameters
Type | Name | Description |
---|---|---|
IVariableMap | map | The map. |
Returns
Type | Description |
---|---|
int[] | The right hand side vector indices. |
Operators
operator ==(MosfetVariables<T>, MosfetVariables<T>)
Implements the operator ==.
Declaration
public static bool operator ==(MosfetVariables<T> left, MosfetVariables<T> right)
Parameters
Type | Name | Description |
---|---|---|
MosfetVariables<T> | left | The left. |
MosfetVariables<T> | right | The right. |
Returns
Type | Description |
---|---|
bool | The result of the operator. |
operator !=(MosfetVariables<T>, MosfetVariables<T>)
Implements the operator !=.
Declaration
public static bool operator !=(MosfetVariables<T> left, MosfetVariables<T> right)
Parameters
Type | Name | Description |
---|---|---|
MosfetVariables<T> | left | The left. |
MosfetVariables<T> | right | The right. |
Returns
Type | Description |
---|---|
bool | The result of the operator. |