Skip to content

Commit

Permalink
add reference_circle driving function for focused source
Browse files Browse the repository at this point in the history
  • Loading branch information
Fiete Winter authored and hagenw committed May 25, 2017
1 parent 4e87dd3 commit 9227f71
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,30 @@
.* vector_product(xs-x0,nx0,2) ./ r.^(3./2) ...
.* exp(+1i.*omega./c.*r);
%
case {'reference_circle'}
% Driving function with two stationary phase approximations,
% reference to circle around the focused source with radius |xref-xs|
%
% r = |x0-xs|
r = vector_norm(x0-xs,2);
%
% 2.5D correction factor
% _____________
% | r
% g0 = _ |1 + ---------
% \| |xref-xs|
%
g0 = sqrt( 1 + r./vector_norm(xref-xs,2) );
% ___ ___
% | 1 |-iw (xs-x0) nx0
% D_2.5D(x0,w) = g0 _ |--- _ |--- ------------- e^(i w/c |x0-xs|)
% \|2pi \| c |x0-xs|^(3/2)
%
% Driving signal
D = 1./sqrt(2.*pi) .* sqrt(-1i.*omega./c) .* g0 ...
.* vector_product(xs-x0,nx0,2) ./ r.^(3./2) ...
.* exp(+1i.*omega./c.*r);
%
case 'legacy'
% --- Old SFS Toolbox default ------------------------------------
% 2.5D correction factor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,30 @@
delay = -1./c .* r;
weight = g0 ./ sqrt(2.*pi) .* vector_product(xs-x0,nx0,2) ./ r.^(3./2);
%
case {'reference_circle'}
% Driving function with two stationary phase approximations,
% reference to circle around the focused source with radius |xref-xs|
%
% r = |x0-xs|
r = vector_norm(x0-xs,2);
%
% 2.5D correction factor
% _____________
% | r
% g0 = _ |1 + ---------
% \| |xref-xs|
%
g0 = sqrt( 1 + r./vector_norm(xref-xs,2) );
% ___
% | 1 (xs-x0) nx0
% d_2.5D(x0,t) = h_pre(-t) * g0 _ |--- ------------- delta(t+|x0-xs|/c)
% \|2pi |x0-xs|^(3/2)
%
%
% Delay and amplitude weight
delay = -1./c .* r;
weight = g0 ./ sqrt(2.*pi) .* vector_product(xs-x0,nx0,2) ./ r.^(3./2);
%
case 'legacy'
% --- SFS Toolbox ------------------------------------------------
% 2.5D correction factor
Expand Down

0 comments on commit 9227f71

Please sign in to comment.