diff --git a/wake_t/physics_models/laser/envelope_solver.py b/wake_t/physics_models/laser/envelope_solver.py index d460e48..1bc4ab8 100644 --- a/wake_t/physics_models/laser/envelope_solver.py +++ b/wake_t/physics_models/laser/envelope_solver.py @@ -102,16 +102,6 @@ def evolve_envelope( d_theta1 = phases[j + 1] - phases[j] d_theta2 = phases[j + 2] - phases[j + 1] - # Prevent phase jumps bigger than 1.5*pi. - if d_theta1 < -1.5 * np.pi: - d_theta1 += 2 * np.pi - if d_theta2 < -1.5 * np.pi: - d_theta2 += 2 * np.pi - if d_theta1 > 1.5 * np.pi: - d_theta1 -= 2 * np.pi - if d_theta2 > 1.5 * np.pi: - d_theta2 -= 2 * np.pi - # Calculate D factor [Eq. (6)]. D_jkn = (1.5 * d_theta1 - 0.5 * d_theta2) * inv_dz diff --git a/wake_t/physics_models/laser/envelope_solver_non_centered.py b/wake_t/physics_models/laser/envelope_solver_non_centered.py index 5940190..d1892a3 100644 --- a/wake_t/physics_models/laser/envelope_solver_non_centered.py +++ b/wake_t/physics_models/laser/envelope_solver_non_centered.py @@ -102,16 +102,6 @@ def evolve_envelope_non_centered( d_theta1 = phases[j + 1] - phases[j] d_theta2 = phases[j + 2] - phases[j + 1] - # Prevent phase jumps bigger than 1.5*pi. - if d_theta1 < -1.5 * np.pi: - d_theta1 += 2 * np.pi - if d_theta2 < -1.5 * np.pi: - d_theta2 += 2 * np.pi - if d_theta1 > 1.5 * np.pi: - d_theta1 -= 2 * np.pi - if d_theta2 > 1.5 * np.pi: - d_theta2 -= 2 * np.pi - # Calculate D factor [Eq. (6)]. D_jkn = (1.5 * d_theta1 - 0.5 * d_theta2) * inv_dz