Add SIM_ball_default_data to the Consolidated Ball directory and also add the required .d files. refs #191

This commit is contained in:
John M. Penn 2016-02-23 15:36:30 -06:00
parent 0144cc121a
commit cf0ac7a5a1
8 changed files with 144 additions and 4 deletions

View File

@ -0,0 +1,4 @@
TRICK_CFLAGS += -I../models
TRICK_CXXFLAGS += -I../models

View File

@ -0,0 +1,31 @@
/********************************* TRICK HEADER *******************************
PURPOSE:
(Ball model external force parameter default init. data.)
REFERENCE:
(((Bailey, R.W, and Paddock, E.J.)
(Trick Simulation Environment) (NASA:JSC #37943)
(JSC/Engineering Directorate/Automation, Robotics and Simulation Division)
(March 1997)))
ASSUMPTIONS AND LIMITATIONS:
((2 dimensional space)
(Constant Force))
PROGRAMMERS:
(((Your Name) (Company Name) (Date) (Trick tutorial)))
*******************************************************************************/
/*
* $Log: ball_force.d,v $
* Revision 5.1 2004-08-05 13:06:24-05 lin
* Bump
*
* Revision 4.1 2003/10/21 21:49:39 lin
* Bump version number for 04
*
* Revision 3.2 2002/10/07 15:15:57 lin
* Add rcs version info to all trick_models files
*
*/
BFORCE.input.origin {m} = {0.0, 2.0} ;
BFORCE.input.force {N} = 8.0 ;

View File

@ -0,0 +1,76 @@
/********************************* TRICK HEADER *******************************
PURPOSE:
(Ball model state integrator default initialization data.)
REFERENCE:
(((Bailey, R.W, and Paddock, E.J.)
(Trick Simulation Environment) (NASA:JSC #37943)
(JSC/Engineering Directorate/Automation, Robotics and Simulation Division)
(March 1997)))
ASSUMPTIONS AND LIMITATIONS:
((2 dimensional space))
PROGRAMMERS:
(((Your Name) (Company Name) (Date) (Trick tutorial)))
*******************************************************************************/
/*
* $Log: ball_integ.d,v $
* Revision 7.2 2006-08-28 09:58:28-05 lin
* Convert the old style allocation statements we have in included sims
*
* Revision 7.1 2006-06-22 14:15:03-05 lin
* Bump version number for 07
*
* Revision 5.1 2004-08-05 13:06:24-05 lin
* Bump
*
* Revision 4.1 2003/10/21 21:49:40 lin
* Bump version number for 04
*
* Revision 3.2 2002/10/07 15:15:58 lin
* Add rcs version info to all trick_models files
*
*/
#define NUM_STEP 12 /* use up to 12 intermediate steps:
8th order RK Fehlberg */
#define NUM_VARIABLES 4 /* x,y position state and x,y velocity state */
/* Unconstrained arrays must be sized */
INTEGRATOR.state = alloc(NUM_VARIABLES) ;
INTEGRATOR.deriv = alloc(NUM_STEP) ;
INTEGRATOR.state_ws = alloc(NUM_STEP) ;
INTEGRATOR.deriv[0] = alloc(NUM_VARIABLES) ;
INTEGRATOR.deriv[1] = alloc(NUM_VARIABLES) ;
INTEGRATOR.deriv[2] = alloc(NUM_VARIABLES) ;
INTEGRATOR.deriv[3] = alloc(NUM_VARIABLES) ;
INTEGRATOR.deriv[4] = alloc(NUM_VARIABLES) ;
INTEGRATOR.deriv[5] = alloc(NUM_VARIABLES) ;
INTEGRATOR.deriv[6] = alloc(NUM_VARIABLES) ;
INTEGRATOR.deriv[7] = alloc(NUM_VARIABLES) ;
INTEGRATOR.deriv[8] = alloc(NUM_VARIABLES) ;
INTEGRATOR.deriv[9] = alloc(NUM_VARIABLES) ;
INTEGRATOR.deriv[10] = alloc(NUM_VARIABLES) ;
INTEGRATOR.deriv[11] = alloc(NUM_VARIABLES) ;
INTEGRATOR.state_ws[0] = alloc(NUM_VARIABLES) ;
INTEGRATOR.state_ws[1] = alloc(NUM_VARIABLES) ;
INTEGRATOR.state_ws[2] = alloc(NUM_VARIABLES) ;
INTEGRATOR.state_ws[3] = alloc(NUM_VARIABLES) ;
INTEGRATOR.state_ws[4] = alloc(NUM_VARIABLES) ;
INTEGRATOR.state_ws[5] = alloc(NUM_VARIABLES) ;
INTEGRATOR.state_ws[6] = alloc(NUM_VARIABLES) ;
INTEGRATOR.state_ws[7] = alloc(NUM_VARIABLES) ;
INTEGRATOR.state_ws[8] = alloc(NUM_VARIABLES) ;
INTEGRATOR.state_ws[9] = alloc(NUM_VARIABLES) ;
INTEGRATOR.state_ws[10] = alloc(NUM_VARIABLES) ;
INTEGRATOR.state_ws[11] = alloc(NUM_VARIABLES) ;
INTEGRATOR.num_state = NUM_VARIABLES ;
INTEGRATOR.option = Runge_Kutta_2 ; /* 2nd order Runge Kutta */
INTEGRATOR.init = True ;
INTEGRATOR.first_step_deriv = Yes ;
#undef NUM_STEP
#undef NUM_VARIABLES

View File

@ -0,0 +1,33 @@
/********************************* TRICK HEADER *******************************
PURPOSE:
(Ball model EOM state parameter default initialization data.)
REFERENCE:
(((Bailey, R.W, and Paddock, E.J.)
(Trick Simulation Environment) (NASA:JSC #37943)
(JSC/Engineering Directorate/Automation, Robotics and Simulation Division)
(March 1997)))
ASSUMPTIONS AND LIMITATIONS:
((2-D Space)
(Translational EOM only))
PROGRAMMERS:
(((Your Name) (Company Name) (Date) (Trick tutorial)))
*******************************************************************************/
/*
* $Log: ball_state.d,v $
* Revision 5.1 2004-08-05 13:06:24-05 lin
* Bump
*
* Revision 4.1 2003/10/21 21:49:40 lin
* Bump version number for 04
*
* Revision 3.2 2002/10/07 15:15:59 lin
* Add rcs version info to all trick_models files
*
*/
BSTATE.input.mass {kg} = 10.0 ;
BSTATE.input.speed {m/s} = 3.5 ;
BSTATE.input.elevation {d} = 45.0 ;
BSTATE.input.position {m} = {5.0 , 5.0} ;

View File

@ -1,4 +0,0 @@
TRICK_CFLAGS += -I${TRICK_HOME}/trick_models
TRICK_CXXFLAGS += -I${TRICK_HOME}/trick_models