Based on the original Rocket Workbench on SourceForge in CVS at: https://sourceforge.net/projects/rocketworkbench
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
1.9 KiB

  1. /* cpropep.c - Calculation of Complex Chemical Equilibrium */
  2. /* Copyright (C) 2000 */
  3. /* Antoine Lefebvre <antoine.lefebvre@polymtl.ca> */
  4. /* This program is free software; you can redistribute it and/or modify*/
  5. /* it under the terms of the GNU General Public License as published by*/
  6. /* the Free Software Foundation; either version 2 of the License, or */
  7. /* (at your option) any later version. */
  8. /* This program is distributed in the hope that it will be useful, */
  9. /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
  10. /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
  11. /* GNU General Public License for more details. */
  12. /* You should have received a copy of the GNU General Public License */
  13. /* along with this program; if not, write to the Free Software */
  14. /* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
  15. #if !defined (simulation_h)
  16. #define simulation_h 1
  17. #include <iostream>
  18. #include "c++rocket.h"
  19. #include "rocket.h"
  20. #include "rk4.h"
  21. //extern int model_1(const int& neq, const double& time,
  22. // double* z, double* dy,
  23. // int& ierr);
  24. class simulation : public flight_program,
  25. public rocket,
  26. public planete,
  27. public rk4_solver
  28. //public lsode
  29. {
  30. public:
  31. char *sim_name;
  32. simulation(Model_t model);
  33. simulation(double* r, double* p, Model_t model ) :
  34. rocket(r), planete(p), rk4_solver(model) {
  35. cout << "Constructing simulation\n";
  36. }
  37. simulation(double* r, double* p, double* a, Model_t model) :
  38. rocket(r), planete(p, a), rk4_solver(model) {
  39. cout << "Constructing simulation\n";
  40. }
  41. ~simulation(void);
  42. //int model_1(const int& neq, const double& time,
  43. // double* z, double* dy,
  44. // int& ierr);
  45. };
  46. #endif