Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F77470412
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
Wed, Aug 14, 16:27
Size
563 B
Mime Type
text/x-c++
Expires
Fri, Aug 16, 16:27 (2 d)
Engine
blob
Format
Raw Data
Handle
19872636
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