Skip to content

Commit 287c074

Browse files
committed
Updated documentation
1 parent 74e7968 commit 287c074

File tree

2 files changed

+29
-7
lines changed

2 files changed

+29
-7
lines changed

docs/plots.jl

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,12 @@ function hhg_example()
6767

6868
# d will be a vector of scalars; by limiting the "memory" of the
6969
# integrals, we can include only the short trajectory.
70-
d = induced_dipole(Iₚ, F, ndt, memory=floor(Int, 0.65ndt));
70+
d = induced_dipole(Iₚ, F, ndt, window=flat_window(floor(Int, 0.65ndt)));
71+
# d_all includes all trajectories.
72+
d_all = induced_dipole(Iₚ, F, ndt);
7173

7274
# d2 will be a vector of 3d vectors
73-
d2 = induced_dipole(Iₚ, F2, ndt, memory=floor(Int, 0.65ndt));
75+
d2 = induced_dipole(Iₚ, F2, ndt, window=flat_window(floor(Int, 0.65ndt)));
7476
d2x = [e[1] for e in d2]
7577
d2y = [e[2] for e in d2]
7678
d2z = [e[3] for e in d2]
@@ -80,6 +82,7 @@ function hhg_example()
8082
q = fftshift(fftfreq(length(t), ndt))
8183
qsel = ind(q,0):ind(q,100)
8284
D = spectrum(d)
85+
D_all = spectrum(d_all)
8386
D2 = spectrum(d2)
8487
cutoff = 3.17austrip(ponderomotive_potential(F)) + Iₚ
8588

@@ -98,13 +101,15 @@ function hhg_example()
98101
plot(tplot, d2x, "--")
99102
plot(tplot, d2y, "--")
100103
plot(tplot, d2z, "--")
101-
legend(["1d", "3d x", "3d y", "3d z"])
104+
plot(tplot, d_all, ":")
105+
legend(["1d", "3d x", "3d y", "3d z", "1d all traj."], loc=1)
102106
ylabel(L"\langle\mathbf{r}\rangle(t)")
103107
end
104108
csubplot(313) do
105109
semilogy(q[qsel], abs2.(D[qsel]))
106110
semilogy(q[qsel], abs2.(D2[qsel,:]), "--")
107-
legend(["1d", "3d x", "3d y", "3d z"])
111+
semilogy(q[qsel], abs2.(D_all[qsel]), ":")
112+
legend(["1d", "3d x", "3d y", "3d z", "1d all traj."])
108113
axvline(cutoff/photon_energy(F), linestyle=":", color="black")
109114
xlabel(L"Harmonic order of 800 nm [$q$]")
110115
ylabel(L"|\mathbf{r}(q)|^2")

docs/src/index.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ throughout, unless otherwise specified.
1212

1313
At the moment, two kind of observables are supported: induced dipole
1414
moment and photoelectron spectra. Time integrals are performed
15-
numerically, with recursive time integrals limited by a `memory`,
15+
numerically, with recursive time integrals limited by a `window`,
1616
i.e. how many time steps are considered (default is from the beginning
1717
of the pulse). Integrals over intermediate photoelectron momenta are
1818
performed using the saddle-point method, i.e. given two times, the
@@ -75,7 +75,7 @@ julia> Iₚ = 0.5 # Hydrogen
7575
7676
julia> # d will be a vector of scalars; by limiting the "memory" of the
7777
# integrals, we can include only the short trajectory.
78-
d = induced_dipole(Iₚ, F, ndt, memory=floor(Int, 0.65ndt));
78+
d = induced_dipole(Iₚ, F, ndt, window=flat_window(floor(Int, 0.65ndt)));
7979
┌ Info: Induced dipole calculation
8080
│ system =
8181
│ 1-channel System:
@@ -91,8 +91,25 @@ julia> # d will be a vector of scalars; by limiting the "memory" of the
9191
9292
Progress: 100%|████████████████████████████████████████████████████████████████| Time: 0:00:00
9393
94+
julia> # d_all includes all trajectories.
95+
d_all = induced_dipole(Iₚ, F, ndt);
96+
┌ Info: Induced dipole calculation
97+
│ system =
98+
│ 1-channel SFA System:
99+
│ 1. IonizationChannel: Iₚ = 0.5 Ha = 13.6055 eV
100+
101+
│ diagram =
102+
│ Goldstone Diagram:
103+
│ |0⟩
104+
│ ╱ ╲⇜
105+
│ 1┃ │𝐩
106+
│ ╲ ╱⇝
107+
│ |0⟩
108+
109+
Progress: 100%|████████████████████████████████████████████████████████████████| Time: 0:00:08
110+
94111
julia> # d2 will be a vector of 3d vectors
95-
d2 = induced_dipole(Iₚ, F2, ndt, memory=floor(Int, 0.65ndt));
112+
d2 = induced_dipole(Iₚ, F2, ndt, window=flat_window(floor(Int, 0.65ndt)));
96113
┌ Info: Induced dipole calculation
97114
│ system =
98115
│ 1-channel System:

0 commit comments

Comments
 (0)