Skip to content

Commit 6116a5e

Browse files
committed
Secondary source selection for line source
1 parent d33a5eb commit 6116a5e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

sfs/mono/drivingfunction.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,16 @@ def source_selection_point(n0, x0, xs):
155155
ds = x0 - xs
156156
return inner1d(ds, n0) >= defs.selection_tolerance
157157

158+
def source_selection_line(n0, x0, xs):
159+
"""Secondary source selection for a line source.
158160
159-
def source_selection_all(N):
161+
compare Eq.(15) from [Spors et al, 2008]
162+
163+
"""
164+
return source_selection_point(n0, x0, xs)
165+
166+
167+
def source_selection_focused(ns, xdef source_selection_all(N):
160168
"""Select all secondary sources."""
161169
return np.ones(N) >= 0
162170

0 commit comments

Comments
 (0)