-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathParticleSystem.h
More file actions
26 lines (19 loc) · 779 Bytes
/
ParticleSystem.h
File metadata and controls
26 lines (19 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef __PARTICLESYSTEM_H__
#define __PARTICLESYSTEM_H__
#include <iostream>
#include "SimulationParameters.h"
class ParticleSystem
{
public:
SimulationParameters parameters;
ParticleSystem(const SimulationParameters p, const int n){}
virtual ~ParticleSystem(){};
virtual int getNumParticles() = 0;
virtual void update() = 0;
virtual void reset() = 0;
virtual float* getOutputBuffer() = 0;
void plummerModel(float *mass, float *x, float* y, float *x_vel, float *y_vel, float *x_acc, float *y_acc, int n);
void diskModel(float *mass, float *x, float* y, float *x_vel, float *y_vel, float *x_acc, float *y_acc, int n);
void collidingDiskModel(float *mass, float *x, float* y, float *x_vel, float *y_vel, float *x_acc, float *y_acc, int n);
};
#endif