Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F83486318
particle.hh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Sep 17, 10:01
Size
708 B
Mime Type
text/x-c++
Expires
Thu, Sep 19, 10:01 (2 d)
Engine
blob
Format
Raw Data
Handle
20846321
Attached To
rDLMA Diffusion limited mixed aggregation
particle.hh
View Options
#include "constituent.hh"
#ifndef PARTICLE_H
#define PARTICLE_H
namespace simulation{
template <typename type>
class particle: public constituent<type>{
public:
particle(const int dim, simulation_box *system_box);
void move(type *delta_x);
double get_mass();
void set_mass(const double constituent_mass);
type pos(const int axis) const;
type& pos(const int axis);
void add_constituent_to_cell();
void remove_constituent_from_cell();
private:
int D;
int id;
double mass_;
simulation_box *box;
type *pos_;
};
}
#endif
Event Timeline
Log In to Comment