example sim SIM_msd add init body

This commit is contained in:
Scott Fennell 2018-12-21 14:01:48 -06:00
parent 5408b5bc44
commit f0537efb0f

View File

@ -9,5 +9,8 @@ PROGRAMMERS:
/* initialization job */
int MSD::init() {
x = x_0;
v = v_0;
a = (F - b*v - k*x)/m;
return 0;
}