Class Gear.Instance
An IIntegrationMethod that implements the Gear integration method.
Inherited Members
Namespace: SpiceSharp.Simulations.IntegrationMethods
Assembly: SpiceSharp.dll
Syntax
protected class Gear.Instance : SpiceMethod.SpiceInstance, IBreakpointMethod, IIntegrationMethod, ISimulationState
Constructors
Instance(Gear, IBiasingSimulationState)
Initializes a new instance of the Gear.Instance class.
Declaration
public Instance(Gear parameters, IBiasingSimulationState state)
Parameters
| Type | Name | Description |
|---|---|---|
| Gear | parameters | The parameters. |
| IBiasingSimulationState | state | The biasing simulation state. |
Fields
Coefficients
The integration coefficients.
Declaration
protected readonly DenseVector<double> Coefficients
Field Value
| Type | Description |
|---|---|
| DenseVector<double> |
PredictionCoefficients
The prediction coefficients.
Declaration
protected readonly DenseVector<double> PredictionCoefficients
Field Value
| Type | Description |
|---|---|
| DenseVector<double> |
Solver
The solver used to calculate the coefficients.
Declaration
protected readonly DenseRealSolver Solver
Field Value
| Type | Description |
|---|---|
| DenseRealSolver |
Methods
ComputeCoefficients()
Computes the integration coefficients.
Declaration
protected override void ComputeCoefficients()
Overrides
CreateDerivative(bool)
Creates a derivative.
Declaration
public override IDerivative CreateDerivative(bool track)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | track | If set to |
Returns
| Type | Description |
|---|---|
| IDerivative | The derivative. |
Overrides
CreateIntegral(bool)
Creates an integrator.
Declaration
public override IIntegral CreateIntegral(bool track = true)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | track | If set to |
Returns
| Type | Description |
|---|---|
| IIntegral | The integrator. |
Overrides
Initialize()
Initializes the integration method using the allocated biasing state. At this point, all entities should have received the chance to allocate and register integration states.
Declaration
public override void Initialize()
Overrides
Predict()
Predicts a solution for truncation.
Declaration
protected override void Predict()