Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Felix Uhl
Slide 2
System of point like particles Coordinates: {r (t )}, momenta: p(t ) Newtons equations of motion: m d 2r i = dt 2 Ekin,i = i V (r )
i
Etot = Ekin + V ,
V = V (r )
Felix Uhl
Slide 4
Solving equations of motion numerically via discretization Starting positions and velocities are given at time t = 0
1 2 3
Mitglied der Helmholtz-Gemeinschaft
r (t + t ) = r (t ) + v (t )t + v (t + t ) = v (t ) +
1 2m
1 2 2m F (t )t
Felix Uhl
Slide 5
Felix Uhl
Thermostats
Why Thermostats?
3 KB T 2 1 N
N i =1
1 mi v 2 i 2
3 1 KB T = 2 N
N i =1
1 mi v 2 i 2
Boltzmann Distribution
Mitglied der Helmholtz-Gemeinschaft
0.0002 0.00015 0.0001 5e-05 0 0 300 600 900 1200 1500 1800 Speed / (m/s)
Felix Uhl
Slide 7
Thermostats
Why Thermostats? NVE-Simulation
Felix Uhl
Slide 8
Thermostats
Why Thermostats? NVE-Simulation
6 Temperature
2
Mitglied der Helmholtz-Gemeinschaft
100
200 Timesteps
300
400
Felix Uhl
Slide 8
Thermostats
Why Thermostats? NVE-Simulation
6 Temperature
2
Mitglied der Helmholtz-Gemeinschaft
100
200 Timesteps
300
400
1 2
Optimize geometry with respect to the energy Add/subtract kinetic energy from the system
Felix Uhl Slide 8
Thermostats
The Andersen Thermostat
Simulation Cell with a Real and a Bath System y
Real system (grey) Bath system(red) Bath has xed temperature Collisions between real particles and bath particles adjust temperature in real system
0 0 x
Implementation
Randomly select particles up to a certain frequency. The velocity is replaced by a random velocity according to the Boltzmann distribution.
September 25, 2012 Felix Uhl Slide 9
Thermostats
The Lowe-Andersen Thermostat
v1 v2 1 2
Felix Uhl
Slide 10
Thermostats
The Lowe-Andersen Thermostat
v1 v2 1 v12,proj 2
Felix Uhl
Slide 10
Thermostats
The Lowe-Andersen Thermostat
v1 v2 1 v12,proj vnew 2
Project v 1 v 2 on the connecting unit vector Pick random new velocity from Boltzmann distribution
Felix Uhl
Slide 10
Thermostats
The Lowe-Andersen Thermostat
v1 v2 2 v2,new
Project v 1 v 2 on the connecting unit vector Pick random new velocity from Boltzmann distribution Add/subtract difference of projected and chosen velocity to obtain new velocities
Felix Uhl
Slide 10
Thermostats
The Lowe-Andersen Thermostat
v1 v2 2 v2,new
Project v 1 v 2 on the connecting unit vector Pick random new velocity from Boltzmann distribution Add/subtract difference of projected and chosen velocity to obtain new velocities
Advantage
Conserves linear and angular momentum due to pairwise correction
September 25, 2012 Felix Uhl Slide 10
Thermostats
How to Correct the Velocities?
Lowe-Andersen-1
Take already corrected velocity
Evolution of Temperature using LA1 10 8 Temperature
Mitglied der Helmholtz-Gemeinschaft
Lowe-Andersen-2
Take original velocity and add up changes
Evolution of Temperature using LA2 10 Temperature Freq = 0.1 Freq = 5.0 Freq = 50.0 Freq = 100.0
6 4 2 5000
8 6 4 2
8000
5000
8000
Felix Uhl
Slide 11
IBIsCO
Code for coarse graining simulations Time propagation with Leap-Frog-Algorithm (Verlet-Family)
Mitglied der Helmholtz-Gemeinschaft
Felix Uhl
Slide 14
Prepare data for sending(velocities, coordinates, neighbourlist) Send data to master processor
Felix Uhl
Slide 14
Prepare data for sending(velocities, coordinates, neighbourlist) Send data to master processor Correct velocities on master processor
3
Mitglied der Helmholtz-Gemeinschaft
Felix Uhl
Slide 14
Prepare data for sending(velocities, coordinates, neighbourlist) Send data to master processor Correct velocities on master processor Send back velocities
3
Mitglied der Helmholtz-Gemeinschaft
Felix Uhl
Slide 14
Temperature / K
Prepare data for sending(velocities, coordinates, neighbourlist) Send data to master processor Correct velocities on master processor Send back velocities
Evolution of Temperature using the old Implementation 500 490 480 470 460 450 440 0 250 500 Timesteps 750 1000
3
Mitglied der Helmholtz-Gemeinschaft
Felix Uhl
Slide 14
Felix Uhl
Slide 15
Felix Uhl
Slide 15
Correct velocity of pairs resident on processor Send remaining pairs to master processor
Felix Uhl
Slide 15
Correct velocity of pairs resident on processor Send remaining pairs to master processor Correct velocities over boundaries on master processor
Felix Uhl
Slide 15
Correct velocity of pairs resident on processor Send remaining pairs to master processor Correct velocities over boundaries on master processor Send back velocities
Felix Uhl
Slide 15
Correct velocity of pairs resident on processor Send remaining pairs to master processor Correct velocities over boundaries on master processor Send back velocities
Temperature / K
Evolution of Temperature using the new Implementation(red) 500 490 480 470 460 450 440 0 250 500 Timesteps 750 1000
Felix Uhl
Slide 15
1600
200
1550
150
1500
100 8 27 # Processors 64
#proc . 8 27 64
September 25, 2012
time(old)/s
time(new)/s
Felix Uhl
Slide 17
One processor has 26 neighbours Send data to 13 neighbour cells Receive data from other 13 neighbour cells
Felix Uhl
Slide 17
One processor has 26 neighbours Send data to 13 neighbour cells Receive data from other 13 neighbour cells Partially LA2 method
4
Mitglied der Helmholtz-Gemeinschaft
Felix Uhl
Slide 17
One processor has 26 neighbours Send data to 13 neighbour cells Receive data from other 13 neighbour cells Partially LA2 method Equivalent to LA1, if sending and receiving to the 13 neighbours is performed step by step
Felix Uhl Slide 17
4
Mitglied der Helmholtz-Gemeinschaft
Felix Uhl
Slide 18