laserfields
Fortran95 library to describe time-dependent laser pulses
Loading...
Searching...
No Matches
test_laserfields.f90
Go to the documentation of this file.
1! Copyright (c) 2012, Johannes Feist
2! licensed under the MIT open source license, see LICENSE file
3
4program main
6 implicit none
7 real(dp) :: tt, dt
8
9 call laserfields_read_parameters('laserfields.in')
10
11 ! make_laserfield(form,intensity_Wcm2,lambda_nm,peak_time_as,duration_as,rampon_as,form_exponent,phase_pi,is_vecpot,group,linear_chirp_rate_w0as)
12 call add_laserfield(make_laserfield('sin2',1.d15,20.d0,100.d0,200.d0))
13 call add_laserfield(make_laserfield('weirdfield.dat'))
14
15 dt = laserfields_smallest_tx() / 50.
16 tt = laserfields_starttime() - dt
17 do while (tt<=laserfields_endtime())
18 tt = tt + dt
19 write(6,*) tt, get_el(tt)
20 end do
21
22end program main
program main