N-Body

class otp.nbody.NBodyProblem

Bases: otp.Problem

Parameters

class otp.nbody.NBodyParameters

Bases: otp.Parameters

Parameters for the N-body problem.

Constructor Summary
NBodyParameters(varargin)

Create an N-body parameters object.

Parameters:

varargin – A variable number of name-value pairs. A name can be any property of this class, and the subsequent value initializes that property.

Property Summary
SpatialDim

MATLAB ONLY: (1,1) {mustBeInteger, mustBePositive} = 2

Masses

Masses are the masses of the objects

GravitationalConstant

GravitationalConstant is exactly what it says on the box

SofteningLength

SofteningLength is a heuristic parameter that avoids singularities

Presets