Skip to content

Commit

Permalink
Update analysis_laser_STC.py
Browse files Browse the repository at this point in the history
  • Loading branch information
huixingjian authored Feb 25, 2025
1 parent ece4062 commit 1a9f2c1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/laser_STC/analysis_laser_STC.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import argparse
import numpy as np
import scipy.constants as scc
from lasy.utils.laser_utils import get_phi2, get_zeta, get_beta
from lasy.utils.laser_utils import get_phi2, get_zeta, get_beta, get_duration
from lasy.laser import Laser
from lasy.profiles import FromOpenPMDProfile

Expand All @@ -35,9 +35,10 @@
)

Phi2,phi2 = get_phi2(laser.dim, laser.grid)
tau = get_duration(laser.dim, laser.grid)
[beta_x, beta_y] = get_beta(laser.dim, laser.grid, k0)
[zeta_x, zeta_y], [nu_x, nu_y] = get_zeta(laser.dim, laser.grid, k0)

print("tau is ",tau)
print("phi2 theory:", 2.4e-24, "measured:", phi2)
print("zeta_y theory:", 2.4e-22, "measured:", zeta_y)
print("beta_y theory:", 3e-18, "measured:", beta_y)
Expand Down

0 comments on commit 1a9f2c1

Please sign in to comment.