orsa_integrator.h File Reference

#include "orsa_frame.h"
#include "orsa_error.h"
#include "orsa_interaction.h"
#include <string>

Include dependency graph for orsa_integrator.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  orsa

Enumerations

enum  IntegratorType {
  STOER = 1, BULIRSCHSTOER = 2, RUNGEKUTTA = 3, DISSIPATIVERUNGEKUTTA = 4,
  RA15 = 5, LEAPFROG = 6
}

Functions

void convert (IntegratorType &it, const unsigned int i)
std::string label (const IntegratorType it)
void make_new_integrator (Integrator **, const IntegratorType)


Enumeration Type Documentation

enum IntegratorType
 

Enumeration values:
STOER 
BULIRSCHSTOER 
RUNGEKUTTA 
DISSIPATIVERUNGEKUTTA 
RA15 
LEAPFROG 

Definition at line 36 of file orsa_integrator.h.

00036                       {
00037     STOER=1,
00038     BULIRSCHSTOER=2,
00039     RUNGEKUTTA=3,
00040     DISSIPATIVERUNGEKUTTA=4,
00041     RA15=5,
00042     LEAPFROG=6
00043   };


Function Documentation

void convert IntegratorType it,
const unsigned int  i
[inline]
 

Definition at line 45 of file orsa_integrator.h.

References orsa::BULIRSCHSTOER, orsa::DISSIPATIVERUNGEKUTTA, orsa::LEAPFROG, ORSA_ERROR, orsa::RA15, orsa::RUNGEKUTTA, and orsa::STOER.

00045                                                                  {
00046     switch(i) {
00047     case 1: it = STOER;                 break;
00048     case 2: it = BULIRSCHSTOER;         break;
00049     case 3: it = RUNGEKUTTA;            break;
00050     case 4: it = DISSIPATIVERUNGEKUTTA; break;
00051     case 5: it = RA15;                  break;
00052     case 6: it = LEAPFROG;              break;
00053       //
00054     default:
00055       ORSA_ERROR("conversion problem: i = %i",i);
00056       break;       
00057     }
00058   }

std::string label const IntegratorType  it  )  [inline]
 

Definition at line 60 of file orsa_integrator.h.

References orsa::BULIRSCHSTOER, orsa::DISSIPATIVERUNGEKUTTA, orsa::LEAPFROG, orsa::RA15, orsa::RUNGEKUTTA, and orsa::STOER.

Referenced by orsa::Label(), Mercury5IntegrationFile::Read(), and SWIFTFile::Read().

00060                                                   {
00061     std::string s;
00062     switch (it) {
00063     case STOER:                  s="Stoer";                              break;
00064     case BULIRSCHSTOER:          s="Bulirsch-Stoer";                     break;
00065     case RUNGEKUTTA:             s="Runge-Kutta 4th order";              break;
00066     case DISSIPATIVERUNGEKUTTA:  s="Dissipative Runge-Kutta 4th order";  break;
00067     case RA15:                   s="Everhart's RADAU 15th order";        break;
00068     case LEAPFROG:               s="Leapfrog 2nd order";                 break;
00069     }   
00070     return s;
00071   }

void make_new_integrator Integrator **  ,
const   IntegratorType
 


Generated on Tue Jan 11 15:27:00 2005 for liborsa by  doxygen 1.4.0