Table of Contents

Class IntegrationLibrary

Namespace
NominalSystems.Universe
Assembly
NominalSystems.Universe.dll

[Nominal] This library allows for the integrator to run for an Euler or RK4 method. This will perform the integration methods for a specific object that is integrable. The object must implement from the IIntegrable interface.


public static class IntegrationLibrary
Inheritance
IntegrationLibrary

Methods

Integrate(IIntegrable, IntegratorType, double, double)

Integrates an object at some point by a specific type of integration. This will determine the type of integration to use and then integrate under the appropriate method.

public static void Integrate(IIntegrable obj, IntegratorType type, double prevTime, double step)

Parameters

obj IIntegrable

The integrable object to integrate over

type IntegratorType

The integration type used

prevTime double

[s] The previous time

step double

[s] The delta time

IntegrateEuler(IIntegrable, double, double)

Integrates an object at some point by some time interval. This will take in some integrable object and update the state of the object, using the Euler method.

public static void IntegrateEuler(IIntegrable obj, double prevTime, double step)

Parameters

obj IIntegrable

The integrable object to integrate over

prevTime double

[s] The previous time

step double

[s] The delta time

IntegrateRK4(IIntegrable, double, double)

Integrates an object at some point by some time interval. This will take in some integrable object and update the state of the object, using the Runge-Kutter 4 (RK4) method.

public static void IntegrateRK4(IIntegrable obj, double prevTime, double step)

Parameters

obj IIntegrable

The integrable object to integrate over

prevTime double

[s] The previous time

step double

[s] The delta time