Skip to content

Commit 412e9ef

Browse files
committed
Adjust sfs.mono to new sfs.fd
Done by the following command: grep -rli "mono" * | xargs -i@ sed -i "s/\.mono\./\.fd\./" @
1 parent 79e61a3 commit 412e9ef

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

d_nfchoa/index.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ Plane Wave
3232
array = sfs.array.circular(200, R0)
3333
grid = sfs.util.xyz_grid([-1.75, 1.75], [-1.75, 1.75], 0, spacing=0.02)
3434
d, selection, secondary_source = \
35-
sfs.mono.nfchoa.plane_25d(omega, array.x, R0, nk)
35+
sfs.fd.nfchoa.plane_25d(omega, array.x, R0, nk)
3636
twin = sfs.tapering.none(selection)
37-
p = sfs.mono.synthesize(d, twin, array, secondary_source, grid=grid)
37+
p = sfs.fd.synthesize(d, twin, array, secondary_source, grid=grid)
3838
sfs.plot.soundfield(p, grid)
3939
sfs.plot.secondarysource_2d(array.x, array.n, grid)
4040

@@ -150,9 +150,9 @@ Point Source
150150
array = sfs.array.circular(200, R0)
151151
grid = sfs.util.xyz_grid([-1.75, 1.75], [-1.75, 1.75], 0, spacing=0.02)
152152
d, selection, secondary_source = \
153-
sfs.mono.nfchoa.point_25d(omega, array.x, R0, xs)
153+
sfs.fd.nfchoa.point_25d(omega, array.x, R0, xs)
154154
twin = sfs.tapering.none(selection)
155-
p = sfs.mono.synthesize(d, twin, array, secondary_source, grid=grid)
155+
p = sfs.fd.synthesize(d, twin, array, secondary_source, grid=grid)
156156
normalization = 20
157157
sfs.plot.soundfield(normalization * p, grid)
158158
sfs.plot.secondarysource_2d(array.x, array.n, grid)

d_wfs/index.rst

+8-8
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ Plane Wave
2727
array = sfs.array.circular(200, 1.5)
2828
grid = sfs.util.xyz_grid([-1.75, 1.75], [-1.75, 1.75], 0, spacing=0.02)
2929
d, selection, secondary_source = \
30-
sfs.mono.wfs.plane_25d(omega, array.x, array.n, npw, xref)
30+
sfs.fd.wfs.plane_25d(omega, array.x, array.n, npw, xref)
3131
twin = sfs.tapering.tukey(selection, .3)
32-
p = sfs.mono.synthesize(d, twin, array, secondary_source, grid=grid)
32+
p = sfs.fd.synthesize(d, twin, array, secondary_source, grid=grid)
3333
sfs.plot.soundfield(p, grid, xref)
3434
sfs.plot.secondarysource_2d(array.x, array.n, grid)
3535

@@ -132,9 +132,9 @@ Point Source
132132
array = sfs.array.circular(200, 1.5)
133133
grid = sfs.util.xyz_grid([-1.75, 1.75], [-1.75, 1.75], 0, spacing=0.02)
134134
d, selection, secondary_source = \
135-
sfs.mono.wfs.point_25d(omega, array.x, array.n, xs, xref)
135+
sfs.fd.wfs.point_25d(omega, array.x, array.n, xs, xref)
136136
twin = sfs.tapering.tukey(selection, .3)
137-
p = sfs.mono.synthesize(d, twin, array, secondary_source, grid=grid)
137+
p = sfs.fd.synthesize(d, twin, array, secondary_source, grid=grid)
138138
sfs.plot.soundfield(p, grid)
139139
sfs.plot.secondarysource_2d(array.x, array.n, grid)
140140

@@ -285,9 +285,9 @@ Line Source
285285
array = sfs.array.circular(200, 1.5)
286286
grid = sfs.util.xyz_grid([-1.75, 1.75], [-1.75, 1.75], 0, spacing=0.02)
287287
d, selection, secondary_source = \
288-
sfs.mono.wfs.line_2d(omega, array.x, array.n, xs)
288+
sfs.fd.wfs.line_2d(omega, array.x, array.n, xs)
289289
twin = sfs.tapering.tukey(selection, .3)
290-
p = sfs.mono.synthesize(d, twin, array, secondary_source, grid=grid)
290+
p = sfs.fd.synthesize(d, twin, array, secondary_source, grid=grid)
291291
normalization = 7
292292
sfs.plot.soundfield(normalization * p, grid)
293293
sfs.plot.secondarysource_2d(array.x, array.n, grid)
@@ -394,9 +394,9 @@ Focused Source
394394
array= sfs.array.circular(200, 1.5)
395395
grid = sfs.util.xyz_grid([-1.75, 1.75], [-1.75, 1.75], 0, spacing=0.02)
396396
d, selection, secondary_source = \
397-
sfs.mono.wfs.focused_25d(omega, array.x, array.n, xs, ns, xref)
397+
sfs.fd.wfs.focused_25d(omega, array.x, array.n, xs, ns, xref)
398398
twin = sfs.tapering.tukey(selection, .3)
399-
p = sfs.mono.synthesize(d, twin, array, secondary_source, grid=grid)
399+
p = sfs.fd.synthesize(d, twin, array, secondary_source, grid=grid)
400400
sfs.plot.soundfield(p, grid)
401401
sfs.plot.secondarysource_2d(array.x, array.n, grid)
402402

sources/index.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Plane Wave
3030
xs = 0, 0, 0 # center of plane wave
3131
omega = 2 * np.pi * 800 # frequency
3232
grid = sfs.util.xyz_grid([-1.75, 1.75], [-1.75, 1.75], 0, spacing=0.02)
33-
p = sfs.mono.source.plane(omega, xs, nk, grid)
33+
p = sfs.fd.source.plane(omega, xs, nk, grid)
3434
sfs.plot.soundfield(p, grid)
3535

3636
.. plot::
@@ -115,7 +115,7 @@ Point Source
115115
xs = 0, 0, 0 # position of source
116116
omega = 2 * np.pi * 800 # frequency
117117
grid = sfs.util.xyz_grid([-1.75, 1.75], [-1.75, 1.75], 0, spacing=0.02)
118-
p = sfs.mono.source.point(omega, xs, grid)
118+
p = sfs.fd.source.point(omega, xs, grid)
119119
normalization = 4 * np.pi
120120
sfs.plot.soundfield(normalization * p, grid)
121121

@@ -196,7 +196,7 @@ Dipole Point Source
196196
ns = sfs.util.direction_vector(0) # direction of source
197197
omega = 2 * np.pi * 800 # frequency
198198
grid = sfs.util.xyz_grid([-1.75, 1.75], [-1.75, 1.75], 0, spacing=0.02)
199-
p = sfs.mono.source.point_dipole(omega, xs, ns, grid)
199+
p = sfs.fd.source.point_dipole(omega, xs, ns, grid)
200200
sfs.plot.soundfield(p, grid)
201201

202202
.. plot::
@@ -258,7 +258,7 @@ Line Source
258258
xs = 0, 0, 0 # position of source
259259
omega = 2 * np.pi * 800 # frequency
260260
grid = sfs.util.xyz_grid([-1.75, 1.75], [-1.75, 1.75], 0, spacing=0.02)
261-
p = sfs.mono.source.line(omega, xs, grid)
261+
p = sfs.fd.source.line(omega, xs, grid)
262262
normalization = (np.sqrt(8 * np.pi * omega / sfs.default.c)
263263
* np.exp(1j * np.pi / 4))
264264
sfs.plot.soundfield(normalization * p, grid)

0 commit comments

Comments
 (0)