www.pudn.com > simulator.zip > General_integral_Newmark.cpp
#include "General_ext.h"
/*------------------------------------------------------------------------*/
/* class : Integration_Newmark */
/*------------------------------------------------------------------------*/
class Integration_Newmark : virtual public Time_Integration_scheme
{ public :
virtual void previous(void);
virtual void method(void);
private :
force App_force_i[MAX_CTRL_CHAN]; // integral of App_force[]
motion s [MAX_CTRL_CHAN], // integral of Displ[]
s_p [MAX_CTRL_CHAN]; // _p for previous step
};
/**************************************************************************/
/* class member function : Integration_Newmark::previous */
/**************************************************************************/
void Integration_Newmark::previous(void)
{
for(int i=0 ; i