Skip to content

Conversation

fs446
Copy link
Member

@fs446 fs446 commented Aug 24, 2025

@fs446
Copy link
Member Author

fs446 commented Aug 29, 2025

@fs446 fs446 force-pushed the add_wfs_point_25d_fd_examples branch from 5394090 to 4cdbb56 Compare September 1, 2025 20:02
@mgeier mgeier mentioned this pull request Sep 2, 2025
@fs446 fs446 force-pushed the add_wfs_point_25d_fd_examples branch from eae2b27 to 64e027b Compare September 3, 2025 19:18
@fs446
Copy link
Member Author

fs446 commented Sep 16, 2025

mgeier, thanks for the comments and suggestions, I added this and some more in 7d4f267 and commented directly via the commit message.

@fs446 fs446 force-pushed the add_wfs_point_25d_fd_examples branch from c24cd6c to 71415ba Compare September 16, 2025 19:37
"xref = [0, 0.1175, 0] # intentionally no stationary phase point\n",
"# we don't forget to normalize the point source's amplitude\n",
"# to this new reference point:\n",
"normalize_gain = 4 * np.pi * np.linalg.norm(xs - np.array(xref))\n",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"normalize_gain = 4 * np.pi * np.linalg.norm(xs - np.array(xref))\n",
"normalize_gain = 4 * np.pi * np.linalg.norm(xs - xref)\n",

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

"metadata": {},
"outputs": [],
"source": [
"xref = [0, 0.1175, 0] # intentionally no stationary phase point\n",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is of course a matter of taste, but I prefer it without brackets:

Suggested change
"xref = [0, 0.1175, 0] # intentionally no stationary phase point\n",
"xref = 0, 0.1175, 0 # intentionally no stationary phase point\n",

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

without brackets -> ok

as proposed by mgeier
mgeier suggested to improve np.array([[0, 0, 0]]*array.x.shape[0]) and np.array([xref]*array.x.shape[0]) by a handling in sound_field()
@fs446 fs446 merged commit ef49d81 into master Sep 24, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants