Skip to content

Commit 250d243

Browse files
committed
Pass kwargs to PPT
1 parent 27710aa commit 250d243

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ionization_rates.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,21 +228,21 @@ A_m(\omega,\gamma)
228228
```
229229
where ``\gamma`` is the Keldysh parameter, and ``n^*`` the [`effective_n`](@ref).
230230
"""
231-
function PPT(Iₚ, I, ω, ℓ, m, Z=1)
231+
function PPT(Iₚ, I, ω, ℓ, m, Z=1; kwargs...)
232232
γ = keldysh(Iₚ, I, ω)
233233
n⭑ = effective_n(Iₚ, Z)
234234

235235
pre = (3/2π)*C2(n⭑,n⭑-1)*f(ℓ,m)*Iₚ
236236
= Etilde((I), Iₚ)
237237

238-
Am = A(0, Iₚ, I, ω)
238+
Am = A(0, Iₚ, I, ω; kwargs...)
239239

240240
w = pre*^(-(2n⭑-abs(m)-3/2))*(1+γ^2)^(-n⭑+abs(m)/2+3/4)*Am*exp(-g(γ)/(3Ẽ))
241241

242242
isnan(w) ? zero(w) : w
243243
end
244244

245-
function ionization_yield(F::ElectricFields.LinearField, tmin::Number, tmax::Number, Iₚ, ℓ, m, Z; model=:ppt)
245+
function ionization_yield(F::ElectricFields.LinearField, tmin::Number, tmax::Number, Iₚ, ℓ, m, Z; model=:ppt, kwargs...)
246246
model == :ppt || throw(ArgumentError("Unknown ionization model $(model)"))
247247

248248
s = span(F)
@@ -251,7 +251,7 @@ function ionization_yield(F::ElectricFields.LinearField, tmin::Number, tmax::Num
251251

252252
ω = photon_energy(F)
253253

254-
f(t) = PPT(Iₚ, abs2(field_amplitude(F, t)), ω, ℓ, m, Z)
254+
f(t) = PPT(Iₚ, abs2(field_amplitude(F, t)), ω, ℓ, m, Z; kwargs...)
255255

256256
first(hquadrature(f, a, b))
257257
end

0 commit comments

Comments
 (0)