1 #ifndef SRC_NBODY_PARTICLES_HPP_
2 #define SRC_NBODY_PARTICLES_HPP_
10 #include <athena/athena.hpp>
69 void PackData(MeshBlock
const *pmb)
override;
70 bool UnpackData(MeshBlock
const *pmb)
override;
void WeightedAverage(Real ave_wghts[]) override
AthenaArray< ParticleData * > pd_in_cell_
void TimeIntegrate(Real time, Real dt) override
void PackData(MeshBlock const *pmb) override
Pack data to send buffer.
bool linked_flag_
linked flag
void SetVelocitiesFromHydro(Hydro const *phydro, Coordinates const *pcoord)
void LinkMesh()
particle-mesh
void DumpRestartData(char *pdst) const override
bool UnpackData(MeshBlock const *pmb) override
Unpack data from receive buffer.
AthenaArray< Real > charge
MeshBlock const * pmy_block_
pointer to parent MeshBlock
AthenaArray< Real > weight
mesh data container
bool ShouldMeshOutput(std::string variable_name) const override
size_t RestartDataSizeInBytes(Mesh const *pm) const override
size_t LoadRestartData(char *psrt) override
ParticleBase(MeshBlock *pmb, std::string name)
void LoadMeshOutputData(OutputType *pod, int *num_vars) const override
static AllParticles Create(MeshBlock *pmb, ParameterInput *pin)
bool particles_to_mesh(MeshBlock *pmb, int stage)
bool mesh_to_particles(MeshBlock *pmb, int stage)
bool integrate_particles(MeshBlock *pmb, int stage)
bool send_particles(MeshBlock *pmb, int stage)
bool recv_particles(MeshBlock *pmb, int stage)
bool launch_particles(MeshBlock *pmb, int stage)
bool attach_particles(MeshBlock *pmb, int stage)
ParticlePtr find_particle(AllParticles const &pts, std::string name)
std::vector< ParticleData > ParticleContainer
std::shared_ptr< ParticleBase > ParticlePtr
std::vector< ParticlePtr > AllParticles