Example of a particle for COLA N-body simulations that is compatible with the make IC and N-body meth...
void set_id(long long int _id)
Set the ID of the particle.
double * get_vel()
Get a pointer to the velocity of the particle.
double D_3LPTa[NDIM]
3LPTa displacement vector
double * get_D_3LPTa()
Get a pointer to the initial 3LPTa displacement field at the particles initial position.
double * get_D_2LPT()
Get a pointer to the initial 2LPT displacement field at the particles initial position.
double * get_D_3LPTb()
Get a pointer to the initial 3LPTb displacement field at the particles initial position.
double * get_pos()
Get a pointer to the position of the particle.
double * get_D_1LPT()
Get a pointer to the initial 1LPT displacement field at the particles initial position.
constexpr int get_ndim() const
Get the dimension of the position.
long long int get_id() const
Get the ID of the particle.
double * get_q()
Get a pointer to the Lagrangian position of the particle.
double D_3LPTb[NDIM]
3LPTb displacement vector
Example of a simple particle with all the methods needed to be used with MPIParticles Some algorithms...
double Pos[NDIM]
Position of particle in [0,1)^NDIM.
constexpr int get_ndim() const
Get the dimension of the position.
double * get_pos()
Get a pointer to the position of the particle.
double Vel[NDIM]
Velocity of particle (in whatever units you want)
double * get_vel()
Get a pointer to the velocity of the particle.