mirror of
https://github.com/BreizhHardware/py_CIPA3.git
synced 2026-01-18 16:37:30 +01:00
update electron trajectory simulation: increase number of steps and correct position_y_exact calculation
This commit is contained in:
@@ -17,7 +17,7 @@ temps = [0]
|
||||
position_x = [0]
|
||||
position_y = [0]
|
||||
|
||||
n = 30
|
||||
n = 50
|
||||
|
||||
# Calcul des vitesses et positions
|
||||
for j in range(1, n):
|
||||
@@ -37,7 +37,7 @@ for j in range(1, n):
|
||||
omega = q * B / m
|
||||
R = m * V0x / (q * B)
|
||||
position_x_exact = [R * np.sin(omega * t) for t in temps]
|
||||
position_y_exact = [R * (1 - np.cos(omega * t)) for t in temps]
|
||||
position_y_exact = [-R * (1 - np.cos(omega * t)) for t in temps]
|
||||
|
||||
# Tracé de la trajectoire
|
||||
plt.figure(figsize=(10, 6))
|
||||
|
||||
Reference in New Issue
Block a user