00001 /* 00002 * dsim_ideal_spring.h 00003 * DSimEngine2 00004 * 00005 * Created by David Wilson on 9/18/09. 00006 * Copyright 2009 Princeton Satellite Systems. All rights reserved. 00007 * 00008 */ 00009 00010 #ifndef __DSIM_IDEAL_SPRING__ 00011 #define __DSIM_IDEAL_SPRING__ 00012 00013 #include "dsim_model.h" 00014 00021 class dsim_ideal_spring : public dsim_model 00022 { 00023 public: 00024 dsim_ideal_spring(dsim_model_setup *setup); 00025 ~dsim_ideal_spring(); 00026 00027 void initialize_data(); 00028 void initialization_complete(); 00029 00030 void rhs(double t,double jd); 00031 00032 private: 00033 dsim_variable spring_k; 00034 dsim_variable spring_base; 00035 00036 dsim_variable target_pos; 00037 }; 00038 00039 #endif