예제 #1
0
XM855   = Cartridge(name, mass, caliber, mv, bc)

name    = "0.338 Lapua Mag no. 4 PL 8013 300 grain"
mass    = 300
mv      = ft_to_m(2723)
caliber = 0.338
bc      = 0.736
lapua   = Cartridge(name, mass, caliber, mv, bc)

name    = ".338 Win. Mag. PRC338WA 225 grain bullet"
mass    = 225
mv      = ft_to_m(2780)
caliber = 0.338
bc      = 0.456
winMag  = Cartridge(name, mass, caliber, mv, bc)

# array of cartridges :
carts   = array([mauser, threeO, fifty, XM855, lapua, winMag])

# Ballistics model for round 
# (cart, intMethod, t0, tf, dt, intDt) :
ball    = Ballistics(carts, 'Predictor', 0.0, 1.0, 0.001, 0.001)

# Zero the rifle :
ball.hit_target(300)

# Plot the results :
ball.plot_all(units='i')


예제 #2
0
파일: test.py 프로젝트: pf4d/bullet_drag
                   mass, 
                   s_traj2,
                   s_x, 
                   caliber,
                   vel[0],
                   bc,
                   units = 'i',
                   velocity = vel, 
                   vel_x = vel_x,
                   long_traj = l_traj, 
                   l_x = l_x)



# Ballistics model for round :
ball1 = Ballistics(XM193, 'Predictor', 0.0, 2.2121, 0.001, 0.001, 
                   traj='l', model='g')
ball2 = Ballistics(lapua, 'Predictor', 0.0, 1.5, 0.001, 0.001, 
                   traj='l', model='g')
ball3 = Ballistics(winMag, 'Predictor', 0.0, 1.5, 0.001, 0.001, 
                   traj='l', model='g')

# Set the deisred model :
ball1.set_g(model.G1)
ball2.set_g(model.G1)
ball3.set_g(model.G1)

# Zero the rifle :
ball1.hit_target(yards_to_m(200))
ball2.hit_target(yards_to_m(300))
ball3.hit_target(yards_to_m(200))
예제 #3
0
           -6.11,
           -10.09,
           -14.77]
traj    = inches_to_m(array(traj))
caliber = 0.224
bc      = 0.307
XM855   = Cartridge(name, mass, caliber, mv, bc, traj=traj, x=x)

# array of cartridges :
carts   = array([XM855])
#carts   = array([XM855, XM193])
#carts   = array([XM193, Gold22, tula])

# Ballistics model for round 
# (cart, intMethod, t0, tf, dt, intDt) :
ball    = Ballistics(carts, 'Predictor', t0=0.0, tf=0.18, 
                     dt=0.001, intDt=0.001)

# Zero the rifle :
#ball.hit_target(yards_to_m(100))
ball.hit_target(300)

# Fire the 556 round at the same angle as the .22 to find range adjustment:
#ball.fire_round(XM193, 0.00399388307618) 

# Plot the results :
ball.plot_all(units='i')



예제 #4
0
                   s_traj2,
                   s_x,
                   caliber,
                   vel[0],
                   bc,
                   units='i',
                   velocity=vel,
                   vel_x=vel_x,
                   long_traj=l_traj,
                   l_x=l_x)

# Ballistics model for round :
ball1 = Ballistics(XM193,
                   'Predictor',
                   0.0,
                   2.2121,
                   0.001,
                   0.001,
                   traj='l',
                   model='g')
ball2 = Ballistics(lapua,
                   'Predictor',
                   0.0,
                   1.5,
                   0.001,
                   0.001,
                   traj='l',
                   model='g')
ball3 = Ballistics(winMag,
                   'Predictor',
                   0.0,
                   1.5,
예제 #5
0
caliber = 0.224
bc = 0.307
XM855 = Cartridge(name, mass, caliber, mv, bc)

name = "0.338 Lapua Mag no. 4 PL 8013 300 grain"
mass = 300
mv = ft_to_m(2723)
caliber = 0.338
bc = 0.736
lapua = Cartridge(name, mass, caliber, mv, bc)

name = ".338 Win. Mag. PRC338WA 225 grain bullet"
mass = 225
mv = ft_to_m(2780)
caliber = 0.338
bc = 0.456
winMag = Cartridge(name, mass, caliber, mv, bc)

# array of cartridges :
carts = array([mauser, threeO, fifty, XM855, lapua, winMag])

# Ballistics model for round
# (cart, intMethod, t0, tf, dt, intDt) :
ball = Ballistics(carts, 'Predictor', 0.0, 1.0, 0.001, 0.001)

# Zero the rifle :
ball.hit_target(300)

# Plot the results :
ball.plot_all(units='i')