WarpTwin
Documentation for WarpTwin models and classes.
Loading...
Searching...
No Matches
TabularThrustModel.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/*
17Tabular thrust model header file
18
19Author: Sam Matez
20*/
21/*
22Metadata for MS GUI:
23imdata = {"exclude" : True}
24*/
25
26#ifndef MODELS_SUPPORT_TABULAR_THRUST_MODEL_H
27#define MODELS_SUPPORT_TABULAR_THRUST_MODEL_H
28
29#include "simulation/Model.h"
30#include "utils/Interpolate2D.h"
31#include "locations.h"
32
33namespace warptwin {
34
51 MODEL(TabularThrustModel)
52 public:
53 // Model params
54 // NAME TYPE DEFAULT VALUE
57 SIGNAL(thrust_file, std::string, "")
59 SIGNAL(out_of_range_thrust, double, 0.0)
61
62 // Model inputs
63 // NAME TYPE DEFAULT VALUE
66 SIGNAL(time_s, clockwerk::Time, clockwerk::Time())
68
69 // Model outputs
70 // NAME TYPE DEFAULT VALUE
73 SIGNAL(thrust, double, 0.0)
75
76 protected:
77 int16 start() override;
78 int16 execute() override;
79
80 // Internal variables for thrust calculations.
81 std::vector<std::vector<double>> _thrust_table;
86 };
87}
88
89#endif
#define SIGNAL(NAME, TYPE, INITIAL_VALUE)
Definition appmacros.h:27
#define START_PARAMS
Definition appmacros.h:42
#define END_OUTPUTS
Definition appmacros.h:33
#define END_PARAMS
Definition appmacros.h:47
#define START_OUTPUTS
Definition appmacros.h:28
#define END_INPUTS
Definition appmacros.h:40
#define START_INPUTS
Definition appmacros.h:35
A class for performing simple x-y linear interpolation.
Definition Interpolate2D.h:50
Extensions to the C++ standard library.
Definition half.hpp:2325
Class to propagate CR3BP dynamics in characteristic units.
Definition statistics.hpp:22
int16 start() override
Class to execute logging.
double _max_time_s
Definition TabularThrustModel.h:84
SIGNAL(_mu, double, warpos::earth_wgs84.mu)
double _min_time_s
Definition TabularThrustModel.h:83
Interpolate2D _interp_thrust
Definition TabularThrustModel.h:82
@ MODEL
Simplified dynamics model representing motion in the circular restricted 3 body problem.
Definition ImNode.h:31
std::vector< std::vector< double > > _thrust_table
Definition TabularThrustModel.h:81
int16 execute() override
Function to check monitor input conditions and set trigger flag accordingly. Should be implemented in...
bool _out_of_range
Definition TabularThrustModel.h:85