Implement modular integration techniques #5

Open
opened 2025-06-02 15:03:40 -04:00 by tfaour · 0 comments
Owner

Want to include at least Euler and RUnge-Kutta

Body::step(const engine::integrator integrator){
        for (int i = 0; i < 3; ++i) {
        X[i] += integrator.step(step_size, V[i]);
        V[i] += integrator.step(step_size, A[i]);
        A[i] = Decimal(0); //reset acceleration - it will be calculated for next time
    }
}
Want to include at least Euler and RUnge-Kutta ```C++ Body::step(const engine::integrator integrator){ for (int i = 0; i < 3; ++i) { X[i] += integrator.step(step_size, V[i]); V[i] += integrator.step(step_size, A[i]); A[i] = Decimal(0); //reset acceleration - it will be calculated for next time } } ```
Sign in to join this conversation.
No Label
No Milestone
No project
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: tfaour/OrbitalSimulator#5
No description provided.