Struct kidou::orbit::Orbit[][src]

pub struct Orbit {
    id: String,
    hc_initials: HCInitials,
    gca_initials: GCaInitials,
    gcy_initials: GCyInitials,
    n: I,
    results: Results,
}
Expand description

An orbit of a globular cluster

Fields

id: String

ID of the object

hc_initials: HCInitials

Initial coordinates and velocities in the Heliocentric Cartesian system

gca_initials: GCaInitials

Initial coordinates and velocities in the Galactic Cartesian system

gcy_initials: GCyInitials

Initial coordinates and velocities in the Galactic Cylindrical system

n: I

Number of iterations used in the last integration

results: Results

Integrated coordinates of a globular cluster in the Galactic Cylindrical system

Implementations

Integrate the orbit with the specified number of iterations n and the time step h using the fourth-order Runge-Kutta algorithm

Apply the Monte Carlo method: simulate sampling from Normal distribution using the mean and standard deviation of the input data, use that as the input to the integrate routine s times with the number of iterations n and the time step h; write the coordinates and total energy in the folder if they’re specified in the fields

Panics

Can panic if standard deviations aren’t finite. This should be handled in the load routine.

Parse the file(s) with initial positions and velocities

Return all of the proper orbits found in the file(s) and the log of status codes.

Write the results of integration to the specified file

Initialize an orbit with an ID from the initial coordinates and velocities in the Heliocentric Cartesian system

Get the ID of the object

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.