Declared in Spacecraft

Declaration

void ComputeEnergyMomentum(
    double time,
    double step
);

Description

Computes the total energy and momentum of the object. It finds the total orbital energy, total orbital angular momentum, total rotational energy and total rotational angular momentum. These values are used for validation purposes

Parameters

NameDescription
timeThe current time [s]
stepThe delta time [s]