Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

laser.show() display strange behavior on time-axis #365

Open
dmargarone opened this issue Feb 24, 2025 · 1 comment
Open

laser.show() display strange behavior on time-axis #365

dmargarone opened this issue Feb 24, 2025 · 1 comment

Comments

@dmargarone
Copy link

Hi,

I am testing the flying focus example FF.

When I used laser.show() , I noticed a strange behavior of the time-axis. Please could you see the code and figure below.

wavelength = 0.8e-6       # Laser wavelength in meters
polarization = (1, 0)     # Linearly polarized in the x direction
energy = 1.5              # Energy of the laser pulse in joules
spot_size = 5.0e-2       # Spot size in the near-field: millimeter-scale
pulse_duration = 30.0e-15   # Pulse duration of the laser in seconds
t_peak = 0.0              # Location of the peak of the laser pulse in time

laser_profile = CombinedLongitudinalTransverseProfile(
    wavelength,
    polarization,
    energy,
    GaussianLongitudinalProfile(wavelength, pulse_duration, t_peak),
    SuperGaussianTransverseProfile(spot_size, n_order=16),
)

dimensions = "rt"  # Use cylindrical geometry
lo = (0, -2.5 * pulse_duration)  # Lower bounds of the simulation box
hi = (1.1 * spot_size, 2.5 * pulse_duration)  # Upper bounds of the simulation box
num_points = (5000, 1000)  # Number of points in each dimension

laser = Laser(dimensions, lo, hi, num_points, laser_profile)

laser.show()
plt.show()

# now focus the pulse using axiparabola

f0 = 50.0e-2      # Focal distance
delta = 1.0e-2    # Focal range
R = spot_size     # Radius

axiparabola = Axiparabola(f0, delta, R)

laser.apply_optics(axiparabola)
laser.propagate(f0)

laser.show()
plt.ylim(-0.25e-3, 0.25e-3)

plt.show()

Image
@dmargarone
Copy link
Author

dmargarone commented Feb 24, 2025

Hi,

do you think normalizing the time -axis (x-axis) is helpful in avoiding such strange value format ?

Let us say, normalizing the time axis by picosecond in laser.show() ?

I am trying to access laser.show() but not found yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant