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

add BO equation #65

Open
wants to merge 9 commits into
base: development
Choose a base branch
from
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
examples/.ipynb_checkpoints/Manipulate SIEs-checkpoint.ipynb
examples/.ipynb_checkpoints/*.ipynb
src/CUDA/**/*.ptx
deps/**/*.o
deps/**/*.dll
Expand Down
20 changes: 20 additions & 0 deletions examples/Scatteraux.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,26 @@ if !isdefined(:scatteraux_loaded)
end


function logheatmap(A::AbstractMatrix,ϵ;kwds...)
ltϵ = log10(ϵ)
LGABSAt = [isinf(log10(abs(A[j,i]))) ? ltϵ : max(log10(abs(A[j,i])),ltϵ) for i=1:size(A,2),j=1:size(A,1)]
heatmap(flipdim(LGABSAt,1);kwds...)
end

function oscillate(u,T,glp)
push!(glp,u)
yield()
fps = 15
MLen = round(Int,T*fps)
t = inv(fps)
for k=1:MLen
u = u*exp(-im*2π*t)
push!(glp,u)
yield()
end
u
end

function makegif(x,y,u,L;plotfunction=Main.Plots.PyPlot.contourf,seconds=1,cmap="seismic",vert=1)
tm=string(time_ns())
dr = pwd()*"/"*tm*"mov"
Expand Down
Loading