@@ -46,34 +46,34 @@ def compute_and_plot_soundfield(title):
46
46
# linear array, secondary point sources, virtual monopole
47
47
array = sfs .array .linear (N , dx , center = acenter , orientation = anormal )
48
48
49
- d , selection , secondary_source = sfs .mono .drivingfunction . wfs_3d_point (
49
+ d , selection , secondary_source = sfs .mono .wfs . point_3d (
50
50
omega , array .x , array .n , xs )
51
51
compute_and_plot_soundfield ('linear_ps_wfs_3d_point' )
52
52
53
- d , selection , secondary_source = sfs .mono .drivingfunction . wfs_25d_point (
53
+ d , selection , secondary_source = sfs .mono .wfs . point_25d (
54
54
omega , array .x , array .n , xs , xref = xnorm )
55
55
compute_and_plot_soundfield ('linear_ps_wfs_25d_point' )
56
56
57
- d , selection , secondary_source = sfs .mono .drivingfunction . wfs_2d_point (
57
+ d , selection , secondary_source = sfs .mono .wfs . point_2d (
58
58
omega , array .x , array .n , xs )
59
59
compute_and_plot_soundfield ('linear_ps_wfs_2d_point' )
60
60
61
61
# linear array, secondary line sources, virtual line source
62
- d , selection , secondary_source = sfs .mono .drivingfunction . wfs_2d_line (
62
+ d , selection , secondary_source = sfs .mono .wfs . line_2d (
63
63
omega , array .x , array .n , xs )
64
64
compute_and_plot_soundfield ('linear_ls_wfs_2d_line' )
65
65
66
66
67
67
# linear array, secondary point sources, virtual plane wave
68
- d , selection , secondary_source = sfs .mono .drivingfunction . wfs_3d_plane (
68
+ d , selection , secondary_source = sfs .mono .wfs . plane_3d (
69
69
omega , array .x , array .n , npw )
70
70
compute_and_plot_soundfield ('linear_ps_wfs_3d_plane' )
71
71
72
- d , selection , secondary_source = sfs .mono .drivingfunction . wfs_25d_plane (
72
+ d , selection , secondary_source = sfs .mono .wfs . plane_25d (
73
73
omega , array .x , array .n , npw , xref = xnorm )
74
74
compute_and_plot_soundfield ('linear_ps_wfs_25d_plane' )
75
75
76
- d , selection , secondary_source = sfs .mono .drivingfunction . wfs_2d_plane (
76
+ d , selection , secondary_source = sfs .mono .wfs . plane_2d (
77
77
omega , array .x , array .n , npw )
78
78
compute_and_plot_soundfield ('linear_ps_wfs_2d_plane' )
79
79
@@ -82,11 +82,11 @@ def compute_and_plot_soundfield(title):
82
82
array = sfs .array .linear_diff (N // 3 * [dx ] + N // 3 * [dx / 2 ] + N // 3 * [dx ],
83
83
center = acenter , orientation = anormal )
84
84
85
- d , selection , secondary_source = sfs .mono .drivingfunction . wfs_25d_point (
85
+ d , selection , secondary_source = sfs .mono .wfs . point_25d (
86
86
omega , array .x , array .n , xs , xref = xnorm )
87
87
compute_and_plot_soundfield ('linear_nested_ps_wfs_25d_point' )
88
88
89
- d , selection , secondary_source = sfs .mono .drivingfunction . wfs_25d_plane (
89
+ d , selection , secondary_source = sfs .mono .wfs . plane_25d (
90
90
omega , array .x , array .n , npw , xref = xnorm )
91
91
compute_and_plot_soundfield ('linear_nested_ps_wfs_25d_plane' )
92
92
@@ -95,34 +95,34 @@ def compute_and_plot_soundfield(title):
95
95
array = sfs .array .linear_random (N , dx / 2 , 1.5 * dx , center = acenter ,
96
96
orientation = anormal )
97
97
98
- d , selection , secondary_source = sfs .mono .drivingfunction . wfs_25d_point (
98
+ d , selection , secondary_source = sfs .mono .wfs . point_25d (
99
99
omega , array .x , array .n , xs , xref = xnorm )
100
100
compute_and_plot_soundfield ('linear_random_ps_wfs_25d_point' )
101
101
102
- d , selection , secondary_source = sfs .mono .drivingfunction . wfs_25d_plane (
102
+ d , selection , secondary_source = sfs .mono .wfs . plane_25d (
103
103
omega , array .x , array .n , npw , xref = xnorm )
104
104
compute_and_plot_soundfield ('linear_random_ps_wfs_25d_plane' )
105
105
106
106
107
107
# rectangular array, secondary point sources
108
108
array = sfs .array .rectangular ((N , N // 2 ), dx , center = acenter , orientation = anormal )
109
- d , selection , secondary_source = sfs .mono .drivingfunction . wfs_25d_point (
109
+ d , selection , secondary_source = sfs .mono .wfs . point_25d (
110
110
omega , array .x , array .n , xs , xref = xnorm )
111
111
compute_and_plot_soundfield ('rectangular_ps_wfs_25d_point' )
112
112
113
- d , selection , secondary_source = sfs .mono .drivingfunction . wfs_25d_plane (
113
+ d , selection , secondary_source = sfs .mono .wfs . plane_25d (
114
114
omega , array .x , array .n , npw , xref = xnorm )
115
115
compute_and_plot_soundfield ('rectangular_ps_wfs_25d_plane' )
116
116
117
117
118
118
# circular array, secondary point sources
119
119
N = 60
120
120
array = sfs .array .circular (N , 1 , center = acenter )
121
- d , selection , secondary_source = sfs .mono .drivingfunction . wfs_25d_point (
121
+ d , selection , secondary_source = sfs .mono .wfs . point_25d (
122
122
omega , array .x , array .n , xs , xref = xnorm )
123
123
compute_and_plot_soundfield ('circular_ps_wfs_25d_point' )
124
124
125
- d , selection , secondary_source = sfs .mono .drivingfunction . wfs_25d_plane (
125
+ d , selection , secondary_source = sfs .mono .wfs . plane_25d (
126
126
omega , array .x , array .n , npw , xref = xnorm )
127
127
compute_and_plot_soundfield ('circular_ps_wfs_25d_plane' )
128
128
@@ -132,7 +132,7 @@ def compute_and_plot_soundfield(title):
132
132
xnorm = [0 , 0 , 0 ]
133
133
talpha = 0 # switches off tapering
134
134
135
- d , selection , secondary_source = sfs .mono .drivingfunction . nfchoa_2d_plane (
135
+ d , selection , secondary_source = sfs .mono .nfchoa . plane_2d (
136
136
omega , array .x , 1 , npw )
137
137
compute_and_plot_soundfield ('circular_ls_nfchoa_2d_plane' )
138
138
@@ -142,10 +142,10 @@ def compute_and_plot_soundfield(title):
142
142
xnorm = [0 , 0 , 0 ]
143
143
talpha = 0 # switches off tapering
144
144
145
- d , selection , secondary_source = sfs .mono .drivingfunction . nfchoa_25d_point (
145
+ d , selection , secondary_source = sfs .mono .nfchoa . point_25d (
146
146
omega , array .x , 1 , xs )
147
147
compute_and_plot_soundfield ('circular_ps_nfchoa_25d_point' )
148
148
149
- d , selection , secondary_source = sfs .mono .drivingfunction . nfchoa_25d_plane (
149
+ d , selection , secondary_source = sfs .mono .nfchoa . plane_25d (
150
150
omega , array .x , 1 , npw )
151
151
compute_and_plot_soundfield ('circular_ps_nfchoa_25d_plane' )
0 commit comments