Skip to content

Commit

Permalink
correct postprocessing scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco Massimo committed Jan 17, 2025
1 parent 7fc37be commit 24bf916
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Postprocessing_Scripts/Compute_bunch_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def print_bunch_params(x,y,z,px,py,pz,E,weights,um):
#print("Read "+str(Nparticles)+" particles from the file")
print(" ")
total_weight = w.sum()
Q = total_weight* q * nc * (c_over_omega0*1e-6)**3 * 10**(12) # Total charge in pC
Q = total_weight* q * nc * (c_over_omega0)**3 * 10**(12) # Total charge in pC
print(" ")
print("Total charge = "+str(Q)+" pC")

Expand Down
2 changes: 1 addition & 1 deletion Postprocessing_Scripts/Follow_electron_bunch_evolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def print_bunch_params(x,y,z,px,py,pz,E,weights,conversion_factor):

# Nparticles = np.size(w) # Number of particles read
# total_weight = w.sum()
# Q = total_weight* q * nc * (S.namelist.c_over_omega0*1e-6)**3 * 10**(12) # Total charge in pC
# Q = total_weight* q * nc * (S.namelist.c_over_omega0)**3 * 10**(12) # Total charge in pC
# print(" ")
# print("Total charge = ",Q," pC")
# print(" ")
Expand Down

0 comments on commit 24bf916

Please sign in to comment.