Class Variable
A class that describes an unknown variable in a system of equations.
Implements
Inherited Members
Namespace: SpiceSharp.Simulations
Assembly: SpiceSharp.dll
Syntax
public class Variable : IVariable
Constructors
Variable(string, IUnit)
Initializes a new instance of the Variable class.
Declaration
public Variable(string name, IUnit unit)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name. |
IUnit | unit | The unit. |
Properties
Name
Gets the name of the variable.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
string | The name of the variable. Can be |
Unit
Gets the units of the quantity.
Declaration
public IUnit Unit { get; }
Property Value
Type | Description |
---|---|
IUnit | The units. |
Methods
ToString()
Returns a string that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string that represents this instance. |