Working Version with Population update and T+ interactions.
This commit is contained in:
@@ -9,16 +9,15 @@
|
||||
#ifndef kinematics_h
|
||||
#define kinematics_h
|
||||
|
||||
#include <sstream>
|
||||
#include <blitz/tinyvec2.h>
|
||||
|
||||
#include "constants.h"
|
||||
#include "error_types.h"
|
||||
|
||||
#include <blitz/tinyvec2.h>
|
||||
#include <sstream>
|
||||
|
||||
|
||||
typedef blitz::TinyVector<double,3> vec3;
|
||||
|
||||
|
||||
inline double vec3Abs(const vec3 &vec) {
|
||||
return( sqrt( pow(vec[0],2) + pow(vec[1],2) + pow(vec[2],2)) );
|
||||
}
|
||||
@@ -125,4 +124,5 @@ inline vec3 calc_newDirection(const vec3 &direction_old, const double &theta_cha
|
||||
return(vec3(sin(theta_new)*cos(phi_new) , sin(theta_new)*sin(phi_new) , cos(theta_new)));
|
||||
}
|
||||
|
||||
|
||||
#endif /* kinematics_h */
|
||||
|
||||
Reference in New Issue
Block a user