Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F120280809
brownian_movement.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
Thu, Jul 3, 05:46
Size
563 B
Mime Type
text/x-c++
Expires
Sat, Jul 5, 05:46 (1 d, 16 h)
Engine
blob
Format
Raw Data
Handle
27166138
Attached To
rDLMA Diffusion limited mixed aggregation
brownian_movement.hh
View Options
#include <particle_movement.hh>
#ifndef BROWNIAN_MOVEMENT_H
#define BROWNIAN_MOVEMENT_H
namespace simulation{
template <typename type>
class brownian_movement: public particle_movement<type>{
public:
brownian_movement(int dim, int rng_seed);
~brownian_movement();
type* delta_x();
double get_rand();
private:
std::mt19937 generator;
std::uniform_real_distribution<double> dis;
int D;
type *dr;
int axis_rand;
int sign_rand;
double temp;
};
}
#endif
Event Timeline
Log In to Comment