orsa_interaction.h File Reference

#include <vector>
#include <string>
#include "orsa_coord.h"
#include "orsa_common.h"
#include "orsa_body.h"
#include "orsa_error.h"
#include "orsa_frame.h"

Include dependency graph for orsa_interaction.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  InteractionType {
  NEWTON = 1, ARMONICOSCILLATOR = 2, GALACTIC_POTENTIAL_ALLEN = 3, GALACTIC_POTENTIAL_ALLEN_PLUS_NEWTON = 4,
  JPL_PLANETS_NEWTON = 5, GRAVITATIONALTREE = 6, NEWTON_MPI = 7, RELATIVISTIC = 8
}

Functions

void convert (InteractionType &it, const unsigned int i)
void make_new_interaction (Interaction **, const InteractionType)


Enumeration Type Documentation

enum InteractionType
 

Enumeration values:
NEWTON 
ARMONICOSCILLATOR 
GALACTIC_POTENTIAL_ALLEN 
GALACTIC_POTENTIAL_ALLEN_PLUS_NEWTON 
JPL_PLANETS_NEWTON 
GRAVITATIONALTREE 
NEWTON_MPI 
RELATIVISTIC 

Definition at line 46 of file orsa_interaction.h.

00046                        {
00047     NEWTON=1,
00048     ARMONICOSCILLATOR=2,
00049     GALACTIC_POTENTIAL_ALLEN=3,
00050     GALACTIC_POTENTIAL_ALLEN_PLUS_NEWTON=4,
00051     JPL_PLANETS_NEWTON=5,
00052     GRAVITATIONALTREE=6,
00053     NEWTON_MPI=7,
00054     RELATIVISTIC=8
00055   };


Function Documentation

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

Definition at line 57 of file orsa_interaction.h.

References orsa::ARMONICOSCILLATOR, orsa::GALACTIC_POTENTIAL_ALLEN, orsa::GALACTIC_POTENTIAL_ALLEN_PLUS_NEWTON, orsa::GRAVITATIONALTREE, orsa::JPL_PLANETS_NEWTON, orsa::NEWTON, orsa::NEWTON_MPI, ORSA_ERROR, and orsa::RELATIVISTIC.

00057                                                                   {
00058     switch(i) {
00059     case 1: it = NEWTON;                               break;
00060     case 2: it = ARMONICOSCILLATOR;                    break;
00061     case 3: it = GALACTIC_POTENTIAL_ALLEN;             break;
00062     case 4: it = GALACTIC_POTENTIAL_ALLEN_PLUS_NEWTON; break;
00063     case 5: it = JPL_PLANETS_NEWTON;                   break;
00064     case 6: it = GRAVITATIONALTREE;                    break;
00065     case 7: it = NEWTON_MPI;                           break;
00066     case 8: it = RELATIVISTIC;                         break;
00067       //
00068     default:
00069       ORSA_ERROR("conversion problem: i = %i",i);
00070       break;       
00071     }
00072   }

void make_new_interaction Interaction **  ,
const   InteractionType
 


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