1 /* 2 *_________________________________________________________________________* 3 * POEMS: PARALLELIZABLE OPEN SOURCE EFFICIENT MULTIBODY SOFTWARE * 4 * DESCRIPTION: SEE READ-ME * 5 * FILE NAME: onsolver.h * 6 * AUTHORS: See Author List * 7 * GRANTS: See Grants List * 8 * COPYRIGHT: (C) 2005 by Authors as listed in Author's List * 9 * LICENSE: Please see License Agreement * 10 * DOWNLOAD: Free at www.rpi.edu/~anderk5 * 11 * ADMINISTRATOR: Prof. Kurt Anderson * 12 * Computational Dynamics Lab * 13 * Rensselaer Polytechnic Institute * 14 * 110 8th St. Troy NY 12180 * 15 * CONTACT: anderk5@rpi.edu * 16 *_________________________________________________________________________*/ 17 18 19 #ifndef ONSOLVER_H 20 #define ONSOLVER_H 21 22 #include "solver.h" 23 #include "onbody.h" 24 #include <fstream> 25 26 27 28 class OnSolver : public Solver { 29 OnBody inertialframe; 30 int numbodies; 31 OnBody** bodyarray; 32 ColMatrix** q; 33 ColMatrix** qdot; 34 ColMatrix** qdotdot; 35 ColMatrix** u; 36 ColMatrix** udot; 37 38 39 40 void DeleteModel(); 41 int CreateTopologyArray(int i, OnBody* body); 42 void CreateStateMatrixMaps(); 43 void GetType(); 44 public: 45 OnSolver(); 46 ~OnSolver(); 47 void CreateModel(); 48 void Solve(double time, Matrix& FF); 49 }; 50 51 #endif 52