Class Trapezoidal.Instance
An IIntegrationMethod that implements the trapezoidal method.
Inherited Members
Namespace: SpiceSharp.Simulations.IntegrationMethods
Assembly: SpiceSharp.dll
Syntax
protected class Trapezoidal.Instance : SpiceMethod.SpiceInstance, IBreakpointMethod, IIntegrationMethod, ISimulationState
Constructors
Instance(Trapezoidal, IBiasingSimulationState)
Initializes a new instance of the Trapezoidal.Instance class.
Declaration
public Instance(Trapezoidal parameters, IBiasingSimulationState state)
Parameters
Type | Name | Description |
---|---|---|
Trapezoidal | parameters | The parameters. |
IBiasingSimulationState | state | The biasing simulation state. |
Fields
Coefficients
The integration coefficients.
Declaration
protected readonly double[] Coefficients
Field Value
Type | Description |
---|---|
double[] |
Methods
ComputeCoefficients()
Computes the integration coefficients.
Declaration
protected override void ComputeCoefficients()
Overrides
CreateDerivative(bool)
Creates a derivative.
Declaration
public override IDerivative CreateDerivative(bool track = true)
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()