Skip to main content
. 2013 Jan 28;40(2):023301. doi: 10.1118/1.4774361

Table .

Algorithm IV. Implementation of kernel K_srt   ⟨⟨⟨ (Nv, Nt), (Nr, 1, 1) ⟩⟩⟩.

Input:D_g, T_α int
Output:D_g
 1: t¯=( blockIdx .y)c0Δt+c0t min ; θs=( threadIdx .x)Δθs+θ min s; ϕs=( blockIdx .x)Δϕs+ϕ min s
 2: θ max =arccos(((Rs)2+t¯2R2)/(2t¯Rs))
 3: Σ = 0; θ=θ max
 4: while θ > 0 do
 5:   z=t¯cosθ; r=t¯sinθ; ϕ = 0
 6:   while ϕ < 2π do
 7:      x = rcos ϕ; y = rsin ϕ
 8:      x = −xsin θ − (zRs)cos θ; y = y; z = xcos θ − (zRs)sin θ {Convert to global coordinate system}
 9:      xn = (xxmin)/Δs; yn = (yymin)/Δs; zn = (zzmin)/Δs
 10:      Σ + = tex3D(xn, yn, zn) {Tri-linear interpolation}
 11:      ϕ = ϕ + Δs/r
 12:   endwhile
 13:   θ=θΔs/t¯
 14: endwhile
 15: D_g[ threadIdx .x][ blockIdx .x][ blockIdx .y]=ΣΔs2