Skip to content

Commit a9de4a2

Browse files
committed
Update links to match correct equation
1 parent 3ee12c5 commit a9de4a2

20 files changed

+43
-55
lines changed

SFS_general/secondary_source_selection.m

+4-4
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
% a = <
9999
% \ 0, else
100100
%
101-
% See https://sfs.rtfd.io/en/3.2/#equation-wfs.pw.selection
101+
% https://sfs.rtfd.io/en/3.2/d_wfs/#equation-wfs-secondary-source-selection-plane
102102
%
103103
% Direction of plane wave (nk) is set above
104104
idx = nx0*nk(:) >= eps;
@@ -111,7 +111,7 @@
111111
% a = <
112112
% \ 0, else
113113
%
114-
% See https://sfs.rtfd.io/en/3.2/#equation-wfs.ps.selection
114+
% https://sfs.rtfd.io/en/3.2/d_wfs/#equation-wfs-secondary-source-selection-point
115115
%
116116
idx = sum(nx0.*x0,2) - nx0*xs(1:3).' >= -2*eps;
117117

@@ -126,7 +126,7 @@
126126
% where v = x0-xs - <x0-xs,nxs > nxs,
127127
% and |nxs| = 1.
128128
%
129-
% See https://sfs.rtfd.io/en/3.2/#equation-wfs.ls.selection
129+
% https://sfs.rtfd.io/en/3.2/d_wfs/#equation-wfs-secondary-source-selection-line
130130
%
131131
%NOTE: We don't check if we are in a 2D or 3D scenario and use xs(4:6)
132132
% whenever it is present. This can only provide problems if you use the
@@ -152,7 +152,7 @@
152152
% a = <
153153
% \ 0, else
154154
%
155-
% See https://sfs.rtfd.io/en/3.2/#equation-wfs.fs.selection
155+
% https://sfs.rtfd.io/en/3.2/d_wfs/#equation-wfs-secondary-source-selection-focused
156156
%
157157
nxs = xs(4:6); % vector for orientation of focused source
158158
xs = xs(1:3); % vector for position of focused source

SFS_monochromatic/driving_functions_mono/driving_function_mono_nfchoa_ls.m

+1-5
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
% 2pi r0 m=-N (2)
9898
% Hm(w/c r0)
9999
%
100-
% See https://sfs.rtfd.io/en/3.2/#equation-D.nfchoa.ls.2D
100+
% https://sfs.rtfd.io/en/3.2/d_nfchoa/#equation-fd-nfchoa-line-2d
101101
%
102102
for m=-N:N
103103
D = D + 1 ./ (2.*pi.*r0) ...
@@ -126,8 +126,6 @@
126126
% 2r0 m=-N (2)
127127
% w/c h|m|(w/c r0)
128128
%
129-
% See https://sfs.rtfd.io/en/3.2/#equation-D.nfchoa.ls.2.5D
130-
%
131129
for m=-N:N
132130
D = D + 1 ./ (2.*r0) ...
133131
.* win(abs(m)+1) ...
@@ -166,8 +164,6 @@
166164
% m
167165
% x Yn(beta0,alpha0)
168166
%
169-
% See https://sfs.rtfd.io/en/3.2/#equation-D.nfchoa.ls.3D
170-
%
171167
for n=-N:N
172168
for m=-n:n
173169
D = D + 1 ./ (2.*r0.^2) ...

SFS_monochromatic/driving_functions_mono/driving_function_mono_nfchoa_ps.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
% 2pi r0 m=-N (2)
114114
% h|m|(w/c r0)
115115
%
116-
% See https://sfs.rtfd.io/en/3.2/#equation-D.nfchoa.ps.2.5D
116+
% https://sfs.rtfd.io/en/3.2/d_nfchoa/#equation-fd-nfchoa-point-25d
117117
for m=-N:N
118118
D = D + 1 ./ (2.*pi.*r0) ...
119119
.* win(abs(m)+1) ...
@@ -144,7 +144,7 @@
144144
% m
145145
% x Yn(theta0,phi0)
146146
%
147-
% See https://sfs.rtfd.io/en/3.2/#equation-D.nfchoa.ps.3D
147+
% https://sfs.rtfd.io/en/3.2/d_nfchoa/#equation-fd-nfchoa-point-3d
148148
%
149149
for n=0:N
150150
for m=-n:n

SFS_monochromatic/driving_functions_mono/driving_function_mono_nfchoa_pw.m

+3-3
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
% pi r0 m=-N (2)
9494
% Hm(w/c r0)
9595
%
96-
% See https://sfs.rtfd.io/en/3.2/#equation-D.nfchoa.pw.2D
96+
% https://sfs.rtfd.io/en/3.2/d_nfchoa/#equation-fd-nfchoa-plane-2d
9797
%
9898
for m=-N:N
9999
D = D - 2.*1i ./ (pi.*r0) ...
@@ -122,7 +122,7 @@
122122
% r0 m=-N (2)
123123
% i w/c h|m|(w/c r0)
124124
%
125-
% See https://sfs.rtfd.io/en/3.2/#equation-D.nfchoa.pw.2.5D
125+
% https://sfs.rtfd.io/en/3.2/d_nfchoa/#equation-fd-nfchoa-plane-25d
126126
%
127127
for m=-N:N
128128
D = D - 2./r0 ...
@@ -154,7 +154,7 @@
154154
% m
155155
% x Yn(theta0,phi0)
156156
%
157-
% See https://sfs.rtfd.io/en/3.2/#equation-D.nfchoa.pw.3D
157+
% https://sfs.rtfd.io/en/3.2/d_nfchoa/#equation-fd-nfchoa-plane-3d
158158
%
159159
for n=0:N
160160
for m=-n:n

SFS_monochromatic/driving_functions_mono/driving_function_mono_sdm_kx_ps.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
% \ ----------_-_-_-_-_-_---------, |kx|>|w/c|
109109
% K1( \|kx^2-(w/c)^2 yref )
110110
%
111-
% See https://sfs.rtfd.io/en/3.2/#equation-D.sdm.ps.2.5D
111+
% https://sfs.rtfd.io/en/3.2/d_nfchoa/#equation-fd-sdm-point-25d
112112
%
113113
D(idxpr) = exp(1i*kx(idxpr)*xs(1)) .* ...
114114
besselh(1,2,sqrt( (omega/c)^2 - kx(idxpr).^2 )*abs(xref(2)-xs(2))) ./ ...

SFS_monochromatic/driving_functions_mono/driving_function_mono_sdm_kx_pw.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
% H0 | - nky*xrefy |
101101
% \c /
102102
%
103-
% See https://sfs.rtfd.io/en/3.2/#equation-D.sdm.pw.2.5D
103+
% https://sfs.rtfd.io/en/3.2/d_nfchoa/#equation-fd-sdm-plane-25d
104104
%
105105
idx = find(kx>=omega/c*nk(:,1),1,'first');
106106
D(idx) = 4*1i*exp(-1i*omega/c*nk(2).*xref(2)) / ...

SFS_monochromatic/driving_functions_mono/driving_function_mono_sdm_pw.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
% H0 | - nky*xrefy |
104104
% \c /
105105
%
106-
% See https://sfs.rtfd.io/en/3.2/#equation-D.sdm.pw.2.5D
106+
% https://sfs.rtfd.io/en/3.2/d_nfchoa/#equation-fd-sdm-plane-25d
107107
%
108108
D = 4*1i.*exp(-1i*omega/c.*nk(:,2).*xref(:,2)) ./ ...
109109
besselh(0,2,omega/c.*nk(:,2).*xref(:,2)) .* ...

SFS_monochromatic/driving_functions_mono/driving_function_mono_wfs_fs.m

+2-4
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
% D(x0,w) = --- --- ----------- e^(i w/c |x0-xs|)
108108
% 2pi c |x0-xs|^2
109109
%
110-
% See https://sfs.rtfd.io/en/3.2/#equation-D.wfs.fs
110+
% https://sfs.rtfd.io/en/3.2/d_wfs/#equation-fd-wfs-focused-3d
111111
%
112112
% r = |x0-xs|
113113
r = vector_norm(x0-xs,2);
@@ -141,8 +141,6 @@
141141
% D(x0,w) = - -- --------- H1 | - |x0-xs| |
142142
% 2c |x0-xs| \ c /
143143
%
144-
% See https://sfs.rtfd.io/en/3.2/#equation-D.wfs.fs.ls
145-
%
146144
% r = |x0-xs|
147145
r = vector_norm(x0-xs,2);
148146
% Driving signal
@@ -199,7 +197,7 @@
199197
% D_2.5D(x0,w) = g0 _ |--- _ |--- ------------- e^(i w/c |x0-xs|)
200198
% \|2pi \| c |x0-xs|^(3/2)
201199
%
202-
% See https://sfs.rtfd.io/en/3.2/en/update_wfs_ps/#equation-D.wfs.fs.2.5D
200+
% https://sfs.rtfd.io/en/3.2/d_wfs/#equation-fd-wfs-focused-25d
203201
%
204202
% Driving signal
205203
D = 1./sqrt(2.*pi) .* sqrt(-1i.*omega./c) .* g0 ...

SFS_monochromatic/driving_functions_mono/driving_function_mono_wfs_ls.m

+3-4
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
% D(x0,w) = - -- ----------- H1 | - |x0-xs| |
8686
% 2c |x0-xs| \ c /
8787
%
88-
% See https://sfs.rtfd.io/en/3.2/#equation-D.wfs.ls
88+
% https://sfs.rtfd.io/en/3.2/d_wfs/#equation-fd-wfs-line
8989
%
9090
% r = |x0-xs|
9191
r = vector_norm(x0-xs,2);
@@ -122,7 +122,7 @@
122122
% D_2.5D(x0,w) = - -- _ |--- ----------- H1 | - |x0-xs| |
123123
% 2 \| c |x0-xs| \ c /
124124
%
125-
% See https://sfs.rtfd.io/en/3.2/#equation-D.wfs.ls.2.5D
125+
% https://sfs.rtfd.io/en/3.2/d_wfs/#equation-fd-wfs-line-25d
126126
%
127127
% r = |x0-xs|
128128
r = vector_norm(x0-xs,2);
@@ -152,8 +152,7 @@
152152
% where v = x0-xs - <x0-xs,nxs > nxs,
153153
% and |nxs| = 1.
154154
%
155-
% See https://sfs.rtfd.io/en/3.2/#equation-d.wfs.ls
156-
% and https://sfs.rtfd.io/en/3.2/#equation-v.ls
155+
% https://sfs.rtfd.io/en/3.2/d_wfs/#equation-fd-wfs-line
157156
%
158157
% v = (I - nxs'nxs)(x0-xs)
159158
% r = |v|

SFS_monochromatic/driving_functions_mono/driving_function_mono_wfs_ps.m

+4-4
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
% D(x0,w) = --- --- ----------- e^(-i w/c |x0-xs|)
9595
% 2pi c |x0-xs|^2
9696
%
97-
% See https://sfs.rtfd.io/en/3.2/#equation-D.wfs.ps
97+
% https://sfs.rtfd.io/en/3.2/d_wfs/#equation-fd-wfs-point
9898
%
9999
% r = |x0-xs|
100100
r = vector_norm(x0-xs,2);
@@ -110,7 +110,7 @@
110110
% D(x0,w) = --- | --- - ------- | ----------- e^(-i w/c |x0-xs|)
111111
% 2pi \ c |x0-xs| / |x0-xs|^2
112112
%
113-
% See https://sfs.rtfd.io/en/3.2/#equation-D.wfs.ps.woapprox
113+
% https://sfs.rtfd.io/en/3.2/d_wfs/#equation-fd-wfs-point-woapprox
114114
%
115115
% r = |x0-xs|
116116
r = vector_norm(x0-xs,2);
@@ -186,7 +186,7 @@
186186
% g0 _ |--- _ |--- ------------- e^(-i w/c |x0-xs|)
187187
% \|2pi \| c |x0-xs|^(3/2)
188188
%
189-
% See https://sfs.rtfd.io/en/3.2/#equation-D.wfs.ps.2.5D
189+
% https://sfs.rtfd.io/en/3.2/d_wfs/#equation-fd-wfs-point-25d
190190
%
191191
% Driving signal
192192
D = 1./sqrt(2*pi) .* sqrt(1i.*omega./c) .* g0 ...
@@ -214,7 +214,7 @@
214214
% g0 _ |--- _ |--- ------------- e^(-i w/c |x0-xs|)
215215
% \|2pi \| c |x0-xs|^(3/2)
216216
%
217-
% See https://sfs.rtfd.io/en/3.2/#equation-D.wfs.ps.2.5D.refline
217+
% https://sfs.rtfd.io/en/3.2/d_wfs/#equation-fd-wfs-point-25d-refline
218218
%
219219
% r = |x0-xs|
220220
r = vector_norm(x0-xs,2);

SFS_monochromatic/driving_functions_mono/driving_function_mono_wfs_pw.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
% D(x0,w) = 2 --- nk nx0 e^(-i w/c nk x0)
8787
% c
8888
%
89-
% See https://sfs.rtfd.io/en/3.2/#equation-D.wfs.pw
89+
% https://sfs.rtfd.io/en/3.2/d_wfs/#equation-fd-wfs-plane
9090
%
9191
D = 2.*1i.*omega./c .* vector_product(nk,nx0,2) ...
9292
.* exp(-1i.*omega./c.*vector_product(nk,x0,2));
@@ -119,7 +119,7 @@
119119
% D_2.5D(x0,w) = 2g0 nk nx0 _ |--- e^(-i w/c nk x0)
120120
% \| c
121121
%
122-
% See https://sfs.rtfd.io/en/3.2/#equation-D.wfs.pw.2.5D
122+
% https://sfs.rtfd.io/en/3.2/d_wfs/#equation-fd-wfs-plane-25d
123123
%
124124
D = 2.*g0 .* vector_product(nk,nx0,2) .* sqrt(1i.*omega./c) ...
125125
.* exp(-1i.*omega./c.*vector_product(nk,x0,2));

SFS_monochromatic/greens_function_mono.m

+3-5
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
% G(x-xs,w) = --- -----------------
7575
% 4pi |x-xs|
7676
%
77-
% See https://sfs.rtfd.io/en/3.2/#equation-S.ps
77+
% https://sfs.rtfd.io/en/3.2/sources/#equation-fd-point
7878
%
7979
G = 1/(4*pi) * exp(-1i*omega/c .* sqrt((x-xs(1)).^2+(y-xs(2)).^2+(z-xs(3)).^2)) ./ ...
8080
sqrt((x-xs(1)).^2+(y-xs(2)).^2+(z-xs(3)).^2);
@@ -86,8 +86,6 @@
8686
% ---- G(x-xs,w) = --- | ----- + ------- | ----------- e^(-i w/c |x-xs|)
8787
% d ns 4pi \ c |x-xs| / |x-xs|^2
8888
%
89-
% See https://sfs.rtfd.io/en/3.2/#equation-S.dps
90-
%
9189
% r = |x-xs|
9290
r = sqrt((x-xs(1)).^2+(y-xs(2)).^2+(z-xs(3)).^2);
9391
% scalar = (x-xs) nxs
@@ -102,7 +100,7 @@
102100
% G(x-xs,w) = - - H0 | - |x-xs| |
103101
% 4 \ c /
104102
%
105-
% See https://sfs.rtfd.io/en/3.2/#equation-S.ls
103+
% https://sfs.rtfd.io/en/3.2/sources/#equation-fd-line
106104
%
107105
G = -1i/4 * besselh(0,2,omega/c* ...
108106
sqrt( (x-xs(1)).^2 + (y-xs(2)).^2 + (z-xs(3)).^2 ));
@@ -112,7 +110,7 @@
112110
%
113111
% G(x,w) = e^(-i w/c n x)
114112
%
115-
% See: https://sfs.rtfd.io/en/3.2/#equation-S.pw
113+
% https://sfs.rtfd.io/en/3.2/sources/#equation-fd-plane
116114
%
117115
% Direction of plane wave
118116
nxs = xs(:,1:3) / norm(xs(:,1:3));

SFS_monochromatic/sound_field_mono.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
% P(x,omega) = | D(x0,omega) G(x-x0,omega) dx0
131131
% /
132132
%
133-
% See https://sfs.rtfd.io/en/3.2/#equation-single-layer
133+
% https://sfs.rtfd.io/en/3.2/problem/#equation-single-layer
134134
%
135135
% x0(ii,7) is a weight for the single secondary sources which includes for
136136
% example a tapering window for WFS or a weighting of the sources for

SFS_time_domain/driving_functions_imp/driving_function_imp_wfs_fs.m

+3-3
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
% d(x0,t) = h(t) * --- ----------- delta(t+|x0-xs|/c)
9696
% 2pi |x0-xs|^2
9797
%
98-
% See https://sfs.rtfd.io/en/3.2/#equation-d.wfs.fs
98+
% https://sfs.rtfd.io/en/3.2/d_wfs/#equation-td-wfs-focused-3d
9999
%
100100
% r = |x0-xs|
101101
r = vector_norm(x0-xs,2);
@@ -110,7 +110,7 @@
110110
% d(x0,t) = h(t) * _ |--- ------------- delta(t+|x0-xs|/c)
111111
% \|2pi |x0-xs|^(3/2)
112112
%
113-
% See https://sfs.rtfd.io/en/3.2/#equation-d.wfs.fs.ls
113+
% https://sfs.rtfd.io/en/3.2/d_wfs/#equation-td-wfs-focused-2d
114114
%
115115
% r = |x0-xs|
116116
r = vector_norm(x0-xs,2);
@@ -167,7 +167,7 @@
167167
% d_2.5D(x0,t) = h_pre(-t) * g0 _ |--- ------------- delta(t+|x0-xs|/c)
168168
% \|2pi |x0-xs|^(3/2)
169169
%
170-
% See https://sfs.rtfd.io/en/3.2/#equation-d.wfs.fs.2.5D
170+
% https://sfs.rtfd.io/en/3.2/d_wfs/#equation-td-wfs-focused-25d
171171
%
172172
% Delay and amplitude weight
173173
delay = -1./c .* r;

SFS_time_domain/driving_functions_imp/driving_function_imp_wfs_ls.m

+2-3
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
% d(x0,t) = h(t) * _ |--- ------------- delta(t-|x0-xs|/c)
8989
% \|2pi |x0-xs|^(3/2)
9090
%
91-
% See https://sfs.rtfd.io/en/3.2/#equation-d.wfs.ls
91+
% https://sfs.rtfd.io/en/3.2/d_wfs/#equation-td-wfs-line
9292
%
9393
% r = |x0-xs|
9494
r = vector_norm(x0-xs,2);
@@ -134,8 +134,7 @@
134134
% where v = x0-xs - <x0-xs,nxs > nxs,
135135
% and |nxs| = 1.
136136
%
137-
% See https://sfs.rtfd.io/en/3.2/#equation-d.wfs.ls
138-
% and https://sfs.rtfd.io/en/3.2/#equation-v.ls
137+
% https://sfs.rtfd.io/en/3.2/d_wfs/#equation-td-wfs-line
139138
%
140139
% v = (I - nxs'nxs)(x0-xs)
141140
% r = |v|

SFS_time_domain/driving_functions_imp/driving_function_imp_wfs_ps.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
% d(x0,t) = h(t) * --- ----------- delta(t-|x0-xs|/c)
8686
% 2pi |x0-xs|^2
8787
%
88-
% See https://sfs.rtfd.io/en/3.2/#equation-d.wfs.ps
88+
% https://sfs.rtfd.io/en/3.2/d_wfs/#equation-td-wfs-point
8989
%
9090
% r = |x0-xs|
9191
r = vector_norm(x0-xs,2);
@@ -142,7 +142,7 @@
142142
% d_2.5D(x0,t) = h_pre(t) * g0 _ |--- ------------- delta(t-|x0-xs|/c)
143143
% \|2pi |x0-xs|^(3/2)
144144
%
145-
% See https://sfs.rtfd.io/en/3.2/#equation-d.wfs.ps.2.5D
145+
% https://sfs.rtfd.io/en/3.2/d_wfs/#equation-td-wfs-point-25d
146146
%
147147
% Delay and amplitude weight
148148
delay = 1./c .* r;

SFS_time_domain/driving_functions_imp/driving_function_imp_wfs_pw.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
%
8181
% d_2D(x0,t) = h(t) * 2 nk nx0 delta(t - 1/c nk x0)
8282
%
83-
% See https://sfs.rtfd.io/en/3.2/#equation-d.wfs.pw
83+
% https://sfs.rtfd.io/en/3.2/d_wfs/#equation-td-wfs-plane
8484
%
8585
% Delay and amplitude weight
8686
delay = 1./c .* vector_product(nk,x0,2);
@@ -111,7 +111,7 @@
111111
%
112112
% d_2.5D(x0,t) = h(t) * 2 g0 nk nx0 delta(t - 1/c nk x0)
113113
%
114-
% See https://sfs.rtfd.io/en/3.2/en/update_wfs_ps/#equation-d.wfs.pw.2.5D
114+
% https://sfs.rtfd.io/en/3.2/d_wfs/#equation-td-wfs-plane-25d
115115
%
116116
% Delay and amplitude weight
117117
delay = 1./c .* vector_product(nk,x0,2);

0 commit comments

Comments
 (0)