GADGET-4
particle_data Struct Reference

#include <particle_data.h>

Public Member Functions

 particle_data ()
 
 particle_data (particle_data &other)
 
particle_dataoperator= (particle_data &other)
 
unsigned char getType (void)
 
unsigned char getTimeBinHydro (void)
 
void setTimeBinHydro (unsigned char bin)
 
void setType (unsigned char type)
 
float getOldAcc (void)
 
int getGravCost (void)
 
MyDouble getMass (void)
 
void setMass (MyDouble mass)
 
integertime get_Ti_Current (void)
 
signed char getTimeBinGrav (void)
 
unsigned char getSofteningClass (void)
 
void setSofteningClass (unsigned char softclass)
 
double getAscale (void)
 

Public Attributes

MyIntPosType IntPos [3]
 
MyFloat Vel [3]
 
vector< MyFloatGravAccel
 
std::atomic< integertimeTi_Current
 
float OldAcc
 
int GravCost
 
MyIDStorage ID
 
signed char TimeBinGrav
 
signed char TimeBinHydro
 
std::atomic_flag access
 

Detailed Description

This structure holds all the information that is stored for each particle of the simulation.

Definition at line 34 of file particle_data.h.

Constructor & Destructor Documentation

◆ particle_data() [1/2]

particle_data ( )
inline

Definition at line 41 of file particle_data.h.

◆ particle_data() [2/2]

particle_data ( particle_data other)
inline

Definition at line 44 of file particle_data.h.

Member Function Documentation

◆ get_Ti_Current()

integertime get_Ti_Current ( void  )
inline

Definition at line 192 of file particle_data.h.

◆ getAscale()

double getAscale ( void  )
inline

Definition at line 212 of file particle_data.h.

◆ getGravCost()

int getGravCost ( void  )
inline

Definition at line 174 of file particle_data.h.

◆ getMass()

MyDouble getMass ( void  )
inline

Definition at line 176 of file particle_data.h.

◆ getOldAcc()

float getOldAcc ( void  )
inline

Definition at line 172 of file particle_data.h.

◆ getSofteningClass()

unsigned char getSofteningClass ( void  )
inline

Definition at line 196 of file particle_data.h.

◆ getTimeBinGrav()

signed char getTimeBinGrav ( void  )
inline

Definition at line 194 of file particle_data.h.

◆ getTimeBinHydro()

unsigned char getTimeBinHydro ( void  )
inline

Definition at line 149 of file particle_data.h.

◆ getType()

unsigned char getType ( void  )
inline

Definition at line 140 of file particle_data.h.

◆ operator=()

particle_data & operator= ( particle_data other)
inline

Definition at line 47 of file particle_data.h.

◆ setMass()

void setMass ( MyDouble  mass)
inline

Definition at line 185 of file particle_data.h.

◆ setSofteningClass()

void setSofteningClass ( unsigned char  softclass)
inline

Definition at line 205 of file particle_data.h.

◆ setTimeBinHydro()

void setTimeBinHydro ( unsigned char  bin)
inline

Definition at line 158 of file particle_data.h.

◆ setType()

void setType ( unsigned char  type)
inline

Definition at line 165 of file particle_data.h.

Member Data Documentation

◆ access

std::atomic_flag access

Definition at line 88 of file particle_data.h.

◆ GravAccel

vector<MyFloat> GravAccel

particle acceleration due to gravity

Definition at line 55 of file particle_data.h.

◆ GravCost

int GravCost

weight factors used for balancing the work-load

Definition at line 62 of file particle_data.h.

◆ ID

Definition at line 70 of file particle_data.h.

◆ IntPos

MyIntPosType IntPos[3]

particle position at its current time, stored as an integer type

Definition at line 53 of file particle_data.h.

◆ OldAcc

float OldAcc

magnitude of old gravitational force. Used in relative opening criterion

Definition at line 61 of file particle_data.h.

◆ Ti_Current

std::atomic<integertime> Ti_Current

current time on integer timeline

Definition at line 60 of file particle_data.h.

◆ TimeBinGrav

signed char TimeBinGrav

Definition at line 71 of file particle_data.h.

◆ TimeBinHydro

signed char TimeBinHydro

Definition at line 73 of file particle_data.h.

◆ Vel

MyFloat Vel[3]

particle velocity at its current time

Definition at line 54 of file particle_data.h.


The documentation for this struct was generated from the following file: