Class Body
In: leap.rb
mnbody.rb
rkbody.rb
rknbody1.rb
rknbody2.rb
rknbody3.rb
rknbody3a.rb
rknbody4.rb
rknbody5.rb
rknbody6.rb
rknbody7.rb
rknbody8.rb
rknbody9.rb
Parent: Object

extends Body class to implement the leapfrog algorithm

Methods
acc    acc    acc    acc    acc    acc    acc    acc    acc    acc    acc    acc    acc_by    calc    calc    calc    calc    calc    calculate_acc    calculate_timestep    clear_acc    collision_time_by    correct_step    e_init    ekin    ekin    ekin    ekin    ekin    ekin    ekin    ekin    ekin    ekin    ekin    ekin    epot    epot    epot    epot    epot    epot    epot    epot    epot    epot    epot    epot    evolve    finish_init    forward    forward    free_fall_time_by    integrate    leapfrog    leapfrog    leapfrog_pp    leapfrog_to_s    new    new    new    new    new    new    new    new    new    new    new    new    new    pairwise_acc    pairwise_pot    pos    pot_from    pp    pp    pp    pp    pp    pp    pp    pp    pp    pp    pp    pp    ppx    ppx    predict_step    print_history    propagate    read    read    rk2    rk4    rndot    set_last_acc    set_last_pos    set_last_vel    simple_print    simple_print    simple_print    simple_print    simple_print    simple_print    simple_print    simple_print    simple_print    simple_print    simple_read    simple_read    simple_read    simple_read    simple_read    simple_read    simple_read    simple_read    simple_read    simple_read    single_kin    to_s    to_s    to_s    to_s    to_s    to_s    to_s    to_s    to_s    to_s    to_s    to_s    vel    write    write    write_diagnostics   
Attributes
a0  [RW] 
a1  [RW] 
a2  [RW] 
acc  [RW] 
ekin_init  [RW] 
epot_init  [RW] 
half_vel  [RW] 
mass  [RW] 
mass  [RW] 
mass  [RW] 
mass  [RW] 
mass  [RW] 
mass  [RW] 
mass  [RW] 
mass  [RW] 
mass  [RW] 
mass  [RW] 
mass  [RW] 
mass  [RW] 
mass  [RW] 
nb  [RW] 
nb  [RW] 
nb  [RW] 
old_pos  [RW] 
pos  [RW] 
pos  [RW] 
pos  [RW] 
pos  [RW] 
pos  [RW] 
pos  [RW] 
pos  [RW] 
pos  [RW] 
pos  [RW] 
pos  [RW] 
pos  [RW] 
pos  [RW] 
pot  [RW] 
vel  [RW] 
vel  [RW] 
vel  [RW] 
vel  [RW] 
vel  [RW] 
vel  [RW] 
vel  [RW] 
vel  [RW] 
vel  [RW] 
vel  [RW] 
vel  [RW] 
vel  [RW] 
Included modules
Math
Public Class methods
new(mass = 0, pos = [0,0,0], vel = [0,0,0])
new(time = 0, mass = 0, pos = Vector[], vel = Vector[])
new(mass = 0, pos = Vector[0,0,0], vel = Vector[0,0,0])
new(mass = 0, pos = Vector[0,0,0], vel = Vector[0,0,0])
new(mass = 0, pos = Vector[0,0,0], vel = Vector[0,0,0])
new(mass = 0, pos = Vector[0,0,0], vel = Vector[0,0,0])
new(mass = 0, pos = Vector[0,0,0], vel = Vector[0,0,0])
new(mass = 0, pos = Vector[0,0,0], vel = Vector[0,0,0])
new(mass = 0, pos = Vector[0,0,0], vel = Vector[0,0,0])
new(mass = 0, pos = Vector[0,0,0], vel = Vector[0,0,0])
new(mass = 0, pos = Vector[0,0,0], vel = Vector[0,0,0])
new(mass = 0, pos = Vector[0,0,0], vel = Vector[0,0,0])
new(mass = 0, pos = Vector[0,0,0], vel = Vector[0,0,0])
Public Instance methods
to_s()

end :segment end:

pp()
write()
read()
single_kin()
pairwise_pot(other, eps)
clear_acc()
leapfrog_to_s()
leapfrog_pp()
predict_step(dt)
correct_step(dt)
pairwise_acc(other, eps)
rndot(n, time)
finish_init()
pos(time)
vel(time)
acc(time)
set_last_pos(x)
set_last_vel(x)
set_last_acc(x)
integrate()
calculate_acc(time)
acc_by(other, time)
calculate_timestep(time)
ekin(time)
pot_from(other, time)
epot(time)
collision_time_by(other, time)
free_fall_time_by(other, time)
propagate()
forward(t, dt)
leapfrog(t, dt)
print_history()
to_s()
pp()
write(time)
read()
evolve(integration_method, dt, dt_dia, dt_out, dt_end)
acc()
forward(dt)
leapfrog(dt)
rk2(dt)
rk4(dt)
ekin()
epot()
e_init()
write_diagnostics(nsteps, time)
acc()
ekin()
epot()
to_s()
pp()
simple_print()
simple_read()
acc()
ekin()
epot()
to_s()
pp()
simple_print()
simple_read()
acc(body_array)
ekin()
epot(body_array)
to_s()
pp()
simple_print()
simple_read()
acc(body_array)
ekin()
epot(body_array)
to_s()
pp()
simple_print()
simple_read()
acc(body_array)
ekin()
epot(body_array)
to_s()
pp()
simple_print()
simple_read()
calc(body_array, time_step, s)
acc(body_array)
ekin()
epot(body_array)
to_s()
pp()
simple_print()
simple_read()
calc(body_array, time_step, s)
acc(body_array)
ekin()
epot(body_array)
to_s()
pp()
simple_print()
simple_read()
calc(body_array, time_step, s)
acc(body_array)
ekin()
epot(body_array)
to_s()
pp()
simple_print()
simple_read()
calc(body_array, time_step, s)
acc(body_array)
ekin()
epot(body_array)
to_s()
pp()
ppx(body_array)
simple_print()
simple_read()
calc(softening_parameter, body_array, time_step, s)
acc(body_array, eps)
ekin()
epot(body_array, eps)
to_s()
pp()
ppx(body_array, eps)
simple_print()
simple_read()