OdeIntegratorD Class |
Namespace: DigitalRune.Mathematics.Analysis
The OdeIntegratorD type exposes the following members.
Name | Description | |
---|---|---|
OdeIntegratorD |
Initializes a new instance of the OdeIntegratorD class.
|
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Integrate |
Computes the new state x1 at time t1.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
FirstOrderDerivative |
Gets the function f(x, t) that computes the first order derivative.
|
Numerical integration is explained using following example:
Consider the following ODE: dx/dt = f(x, t). The goal of the numerical integration is to compute the state x1 at time t1 when following information is given:
Note: In this documentation we assume that the integration variable is time since this is very common for simulation tasks. Of course the integration variable can be any other quantity.
The function f that computes the first order derivative depends on the state x and the time t: For example, the state in rigid body simulation consist of the positions and velocities of the rigid bodies. When computing the new state of the simulation, the first order derivatives (velocities and accelerations) depend on the whole state and on time. This is because accelerations are computed through forces which depend on time (for example explosions), depend on velocities (damping forces) or depend on positions (spring forces).