1This file has been depricated and still exists only to recycle code.
13#include "simpleTree.h"
14#include "lens_halos.h"
41 TreeForce(PosType **xp,IndexType Npoints,
float *
masses,
float *
rsph,
bool Multimass,
bool Multisize
42 ,PosType my_kappa_background = 0,
int bucket = 5,
int dimensions = 2,
bool median =
false,PosType theta = 0.1
46 ,
bool Multisize =
true,PosType my_kappa_bk=0.0,
int bucket = 5,
int dimensions = 2
47 ,
bool median =
false,PosType theta = 0.1
55 void force2D(PosType
const *ray,PosType *alpha,KappaType *kappa,KappaType *gamma
92 inline virtual PosType alpha_h(PosType r2s2,PosType sigma){
93 return (sigma > 0.0 ) ? ( exp(-0.5*r2s2) - 1.0 ) : -1.0;
95 inline virtual PosType kappa_h(PosType r2s2,PosType sigma){
96 return 0.5*r2s2*exp(-0.5*r2s2);
98 inline virtual PosType gamma_h(PosType r2s2,PosType sigma){
99 return (sigma > 0.0 ) ? (-2.0 + (2.0 + r2s2)*exp(-0.5*r2s2) ) : -2.0;
101 inline virtual PosType phi_o(PosType r2,PosType sigma){
103 std::cout <<
"time delay has not been fixed fot this profile yet." << std::endl;
A base class for all types of lensing "halos" which are any mass distribution that cause lensing.
Definition lens_halos.h:56
Object used to calculate the force or deflection caused by a collection of "particles" by the tree me...
Definition forceTree.h:39
void force2D(PosType const *ray, PosType *alpha, KappaType *kappa, KappaType *gamma, KappaType *phi)
calculate the deflection and lensing propertie
Definition forceTree.cpp:182
void rotate_coordinates(PosType **coord)
simple rotates the coordinates in the xp array
Definition forceTree.cpp:137
bool MultiMass
true if particles have different masses.
Definition forceTree.h:67
float * rsph
Array of particle sizes.
Definition forceTree.h:73
float * masses
Array of particle masses.
Definition forceTree.h:71
PosType kappa_background
Definition forceTree.h:76
bool MultiRadius
true if particles have different sizes.
Definition forceTree.h:69
TreeForce(PosType **xp, IndexType Npoints, float *masses, float *rsph, bool Multimass, bool Multisize, PosType my_kappa_background=0, int bucket=5, int dimensions=2, bool median=false, PosType theta=0.1)
Definition forceTree.cpp:10
bool init
provides a way to change the profiles of the particles, by default Gaussian
Definition forceTree.h:64
float * CalculateSPHsmoothing(int N)
calculated sph smoothing and store them in the tree, also provide pointer to them
Definition forceTree.cpp:156
A C++ class wrapper for the bianary treeNB used in the Nbody force calculation, but also useful for g...
Definition simpleTree.h:86