00001 /* 00002 * dsim_second_order.h 00003 * DSimEngine2 00004 * 00005 * Created by Joe Mueller on 3/2/2011 00006 * Copyright 2011 Princeton Satellite Systems. All rights reserved. 00007 * 00008 */ 00009 00020 #ifndef __dsim_second_order__ 00021 #define __dsim_second_order__ 00022 00023 #include "dsim_model.h" 00024 00031 class dsim_second_order : public dsim_model 00032 { 00033 public: 00034 dsim_second_order(dsim_model_setup *setup); 00035 ~dsim_second_order(); 00036 00037 void initialize_data(); 00038 void initialization_complete(); 00039 void initialize_timestep(); 00040 void complete_timestep(); 00041 00042 void rhs(double t,double jd); 00043 00044 private: 00045 00046 // paramters 00047 dsim_variable wn; 00048 dsim_variable zeta; 00049 00050 // inputs 00051 dsim_variable u; 00052 00053 // states 00054 dsim_variable y; 00055 dsim_variable yDot; 00056 00057 // outputs 00058 dsim_variable yDotDot; 00059 00060 00061 00062 }; 00063 00064 #endif