00001 00011 #include <DSimEngine2/DSimEngine2.h> 00012 00013 #ifndef MAGLEV 00014 #define MAGLEV 00015 00017 00052 class maglev : public dsim_model 00053 { 00054 public: 00055 maglev(dsim_model_setup *setup); 00056 ~maglev(); 00057 void initialize_data(); 00058 void initialization_complete(); 00059 void initialize_timestep(); 00060 void rhs(double t,double jd); 00061 void complete_timestep(); 00062 00063 protected: 00065 dsim_variable a_dsim; 00067 dsim_variable g_dsim; 00069 dsim_variable l0_dsim; 00071 dsim_variable m_dsim; 00073 dsim_variable i_dsim; 00075 dsim_variable position_dsim; 00077 dsim_variable velocity_dsim; 00078 00079 private: 00080 }; 00081 #endif