1#ifndef COLLISION_HINCLUDED
2#define COLLISION_HINCLUDED
9 Vector3D<double> position;
10 Vector3D<double> velocity;
11 Vector3D<double> acceleration;
27 void pup(PUP::er &p) {
64 void AddParams(PRM prm);
65 void CheckParams(PRM prm,
struct parameters ¶m);
74 double LastKickTime(
int rung,
double baseTime,
double timeNow);
76 double baseStep,
double timeNow);
78 void mergeCalc(
double r,
double m, Vector3D<double> pos,
79 Vector3D<double> vel, Vector3D<double> acc,
80 Vector3D<double> w, Vector3D<double> *posNew,
81 Vector3D<double> *velNew, Vector3D<double> *wNew,
82 Vector3D<double> *aNew,
double *radNew,
const ColliderInfo &c);
83 void bounceCalc(
double r,
double m, Vector3D<double> pos,
84 Vector3D<double> vel, Vector3D<double> w,
85 Vector3D<double> *velNew, Vector3D<double> *wNew,
88 inline void pup(PUP::er &p);
91inline void Collision::pup(PUP::er &p) {
111#include "smoothparams.h"
117class CollisionSmoothParams :
public SmoothParams
123 double dTime, dDelta;
135 CollisionSmoothParams() {}
136 CollisionSmoothParams(
int _iType,
int am,
double _dTime,
double _dDelta,
137 int _bWall,
double _dWallPos,
int _iCollModel,
146 dWallPos = _dWallPos;
147 iCollModel = _iCollModel;
148 bNearCollSearch = _bNearCollSearch;
150 PUPable_decl(CollisionSmoothParams);
151 CollisionSmoothParams(CkMigrateMessage *m) : SmoothParams(m) {}
152 virtual void pup(PUP::er &p) {
Used to pass information about collision partners between processes.
Definition collision.h:7
virtual void pup(PUP::er &p)
required method for remote entry call.
Definition collision.h:152
Collision parameters and routines.
Definition collision.h:43
std::vector< std::string > collBuffer
Buffer to write collision events to log file.
Definition collision.h:62
Class for cross processor data needed for smooth operations.
Definition GravityParticle.h:649
Fundamental type for a particle.
Definition GravityParticle.h:364
int iType
Particle type to smooth over; "TreeActive".
Definition smoothparams.h:11
virtual void pup(PUP::er &p)
required method for remote entry call.
Definition smoothparams.h:45
int activeRung
Currently active rung.
Definition smoothparams.h:12
int bUseBallMax
Definition smoothparams.h:14
Object for priority queue entry.
Definition smooth.h:13
Hold parameters of the run.
Definition parameters.h:15