WarpTwin
Documentation for WarpTwin models and classes.
Loading...
Searching...
No Matches
CR3BPDynamics.h
Go to the documentation of this file.
1/******************************************************************************
2* Copyright (c) ATTX INC 2025. All Rights Reserved.
3*
4* This software and associated documentation (the "Software") are the
5* proprietary and confidential information of ATTX INC. The Software is
6* furnished under a license agreement between ATTX and the user organization
7* and may be used or copied only in accordance with the terms of the agreement.
8* Refer to 'license/attx_license.adoc' for standard license terms.
9*
10* EXPORT CONTROL NOTICE: THIS SOFTWARE MAY INCLUDE CONTENT CONTROLLED UNDER THE
11* INTERNATIONAL TRAFFIC IN ARMS REGULATIONS (ITAR) OR THE EXPORT ADMINISTRATION
12* REGULATIONS (EAR99). No part of the Software may be used, reproduced, or
13* transmitted in any form or by any means, for any purpose, without the express
14* written permission of ATTX INC.
15******************************************************************************/
16/*
17Circular Restricted Three Body Dynamics header file
18---------------------------------------------------
19
20Author: Alex Reynolds
21*/
22#ifndef CR3BPUTILS_CR3BP_DYNAMICS_H
23#define CR3BPUTILS_CR3BP_DYNAMICS_H
24
27#include "core/Matrix.hpp"
28
40namespace warptwin {
41 const unsigned int NUM_CR3BP_STATES = 6;
42
43 class CR3BPDynamics : public warpos::Rates<NUM_CR3BP_STATES> {
44 public:
45 CR3BPDynamics() : Rates() {}
46
51 int16 calculateRates(floating_point time,
52 const std::array<floating_point, NUM_CR3BP_STATES> &state,
53 std::array<floating_point, NUM_CR3BP_STATES> &out_rates) override;
54
56 double mu_star;
57 private:
58
59 };
60
61}
62
63#endif
Definition Rates.hpp:28
CR3BPDynamics()
Definition CR3BPDynamics.h:45
double mu_star
This is the ratio of second body mass to total system mass.
Definition CR3BPDynamics.h:56
int16 calculateRates(floating_point time, const std::array< floating_point, NUM_CR3BP_STATES > &state, std::array< floating_point, NUM_CR3BP_STATES > &out_rates) override
Function to calculate frame rates of change for a frame.
Definition CR3BPDynamics.cpp:20
Class to propagate CR3BP dynamics in characteristic units.
Definition statistics.hpp:22
const unsigned int NUM_CR3BP_STATES
Definition CR3BPDynamics.h:41