Click or drag to resize

RungeKutta4Integrator Class

A fourth-order fixed step Runge-Kutta integrator.
Inheritance Hierarchy

Namespace:  AGI.Foundation.NumericalMethods
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax
public class RungeKutta4Integrator : RungeKuttaFixedStepIntegrator

The RungeKutta4Integrator type exposes the following members.

Constructors
  NameDescription
Public methodRungeKutta4Integrator
Initializes a new instance.
Public methodRungeKutta4Integrator(DependentVariableDerivatives)
Initializes a new instance based on the given differential system for the derivatives of the dependent variables.
Protected methodRungeKutta4Integrator(RungeKutta4Integrator, CopyContext)
Initializes a new instance as a copy of an existing instance.
Top
Properties
  NameDescription
Public propertyCurrentStepSize
Gets the current (positive) size of the step which the integrator will use for the next integration step.
(Inherited from RungeKuttaFixedStepIntegrator.)
Public propertyDimension
Gets the number of dependent variables based on the Dimension of the SystemOfEquations.
(Inherited from NumericalIntegrator.)
Public propertyDirection
Gets or sets whether to integrate forward, increasing the independent variable, or backward, decreasing the independent variable.
(Inherited from NumericalIntegrator.)
Public propertyFinalDependentVariableValues
Gets or sets the values of the dependent variables resulting from the last integration step.
(Inherited from NumericalIntegrator.)
Public propertyFinalIndependentVariableValue
Gets or sets the value of the independent variable after an integration step.
(Inherited from NumericalIntegrator.)
Public propertyInitialDependentVariableValues
Gets or sets the values of the dependent variables prior to an integration step. These values will be updated to the previous FinalDependentVariableValues at the beginning of each integration step.
(Inherited from NumericalIntegrator.)
Public propertyInitialIndependentVariableValue
Gets or sets the value of the independent variable prior to an integration step.
(Inherited from NumericalIntegrator.)
Public propertyInitialStepSize
Gets or sets the initial (positive) size of the step to add to the InitialIndependentVariableValue when performing an integration. By default, the initial value is one.
(Inherited from NumericalIntegrator.)
Public propertyIsThreadSafe
Gets a value indicating whether the methods on this instance are safe to call from multiple threads simultaneously.
(Inherited from NumericalIntegrator.)
Public propertyPreviousStepSize
Gets the size of the last step taken by the integrator. This returns the difference between the FinalIndependentVariableValue and the InitialIndependentVariableValue.
(Inherited from NumericalIntegrator.)
Public propertyStepSizeInformation
Gets or sets a value indicating whether the CurrentStepSize was changed from the InitialStepSize and, if so, the nature of how it was changed.
(Inherited from NumericalIntegrator.)
Public propertySystemOfEquations
Gets or sets the system of differential equations corresponding to the derivatives of the dependent variables.
(Inherited from NumericalIntegrator.)
Protected propertyTableau
Gets or sets the Butcher Tableau with the coefficients and weights to use to perform the RungeKutta integration.
(Inherited from RungeKuttaFixedStepIntegrator.)
Top
Methods
  NameDescription
Public methodClone
Create a copy of this integrator.
(Overrides NumericalIntegratorClone(CopyContext).)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitialize
Initialize the integrator's initial independent and dependent variables and reset the integration parameters. This should be called by the user prior to performing the first integration step.
(Inherited from RungeKuttaFixedStepIntegrator.)
Public methodIntegrate

Perform an integration step moving the independent and dependent variables from their initial (the final values of the previous step) to their new final values, using the CurrentStepSize.

When overriding this method, StartNextStep should be called prior to integration.

(Inherited from NumericalIntegrator.)
Public methodIntegrate(Double)

Perform an integration step moving the independent and dependent variables from their initial (the final values of the previous step) to their new final values.

When overriding this method, StartNextStep should be called prior to integration. Also note that the CurrentStepSize property should be unaffected by the stepSize parameter.

(Inherited from NumericalIntegrator.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodReintegrate

Repeats the last integration of the differential equations.

When overriding this method, note that the CurrentStepSize property should be unaffected by the stepSize parameter.

(Inherited from RungeKuttaFixedStepIntegrator.)
Protected methodStartNextStep
This performs the task of setting the Initial values to the previous Final values prior to taking the next step. This method is called prior to integrating the step but not called during reintegration.
(Inherited from NumericalIntegrator.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also