2018-01-31 19:37:14 +00:00
|
|
|
/************************TRICK HEADER*************************
|
|
|
|
PURPOSE:
|
|
|
|
(This S_define works with the RUN_numeric input file)
|
|
|
|
LIBRARY DEPENDENCIES:
|
|
|
|
(
|
|
|
|
(msd/src/msd.cpp)
|
2018-12-21 19:48:38 +00:00
|
|
|
(msd/src/msd_default_data.cpp)
|
2018-01-31 19:37:14 +00:00
|
|
|
(msd/src/msd_deriv.cpp)
|
2018-12-21 19:48:38 +00:00
|
|
|
(msd/src/msd_init.cpp)
|
2018-01-31 19:37:14 +00:00
|
|
|
(msd/src/msd_integ.cpp)
|
2018-12-21 19:48:38 +00:00
|
|
|
(msd/src/msd_shutdown.cpp)
|
2018-01-31 19:37:14 +00:00
|
|
|
)
|
|
|
|
*************************************************************/
|
2024-05-23 15:12:27 +00:00
|
|
|
#define TRICK_NO_MONTE_CARLO
|
|
|
|
#define TRICK_NO_MASTERSLAVE
|
|
|
|
#define TRICK_NO_INSTRUMENTATION
|
|
|
|
#define TRICK_NO_REALTIMEINJECTOR
|
|
|
|
#define TRICK_NO_ZEROCONF
|
2018-01-31 19:37:14 +00:00
|
|
|
#include "sim_objects/default_trick_sys.sm"
|
2024-05-23 15:12:27 +00:00
|
|
|
|
2020-02-05 20:31:58 +00:00
|
|
|
// #include "sim_objects/WebServer.sm"
|
2018-12-21 19:48:38 +00:00
|
|
|
##include "msd/include/msd.hh"
|
2018-01-31 19:37:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
class MSDSimObject : public Trick::SimObject {
|
|
|
|
|
|
|
|
public:
|
2018-12-21 19:48:38 +00:00
|
|
|
MSD msd ;
|
2018-01-31 19:37:14 +00:00
|
|
|
|
|
|
|
MSDSimObject() {
|
2018-12-21 19:48:38 +00:00
|
|
|
("default_data") MSD::default_data( msd ) ;
|
|
|
|
("initialization") msd.init() ;
|
|
|
|
("derivative") msd.state_deriv() ;
|
|
|
|
("integration") trick_ret= msd.state_integ() ;
|
|
|
|
("shutdown") msd.shutdown() ;
|
2018-01-31 19:37:14 +00:00
|
|
|
}
|
|
|
|
} ;
|
|
|
|
|
|
|
|
MSDSimObject dyn ;
|
2024-05-23 15:12:27 +00:00
|
|
|
IntegLoop dyn_integloop (0.01) dyn ;
|
|
|
|
|