Class Biasing.FlatSimulationState
An IBiasingSimulationState that just maps nodes but uses the same solver.
Inheritance
System.Object
Biasing.FlatSimulationState
Implements
ISolverSimulationState<System.Double>
System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<System.String, IVariable<System.Double>>>
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, IVariable<System.Double>>>
System.Collections.IEnumerable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: SpiceSharp.Components.Subcircuits.Simple
Assembly: SpiceSharp.dll
Syntax
protected class FlatSimulationState : FlatSolverState<double, IBiasingSimulationState>, IBiasingSimulationState, ISolverSimulationState<double>, ISimulationState, IVariableFactory<IVariable<double>>, IVariableDictionary<IVariable<double>>, IReadOnlyDictionary<string, IVariable<double>>, IReadOnlyCollection<KeyValuePair<string, IVariable<double>>>, IEnumerable<KeyValuePair<string, IVariable<double>>>, IEnumerable
Constructors
FlatSimulationState(String, IBiasingSimulationState, IEnumerable<Bridge<String>>)
Initializes a new instance of the Biasing.FlatSimulationState class.
Declaration
public FlatSimulationState(string name, IBiasingSimulationState parent, IEnumerable<Bridge<string>> nodes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The name. |
| IBiasingSimulationState | parent | The parent. |
| System.Collections.Generic.IEnumerable<Bridge<System.String>> | nodes | The nodes. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | Thrown if |
Properties
OldSolution
Gets the solution vector of the last computed iteration.
Declaration
public IVector<double> OldSolution { get; }
Property Value
| Type | Description |
|---|---|
| IVector<System.Double> | The solution to the last iteration. |
Remarks
This vector is needed for determining convergence.
Implements
System.Collections.Generic.IReadOnlyDictionary<TKey, TValue>
System.Collections.Generic.IReadOnlyCollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable