8000 Hyperlinks in rst · sfstoolbox/sfs-python@0a29ddb · GitHub
[go: up one dir, main page]

Skip to content

Commit 0a29ddb

Browse files
committed
Hyperlinks in rst
1 parent fc1d255 commit 0a29ddb

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

doc/examples/animations-pulsating-sphere.ipynb

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,18 @@
2828
"particle velocity, and particle displacement, are simulated.\n",
2929
"The first two quantities are computed with\n",
3030
"\n",
31-
"- `sfs.mono.source.pulsating_sphere()` and\n",
32-
"- `sfs.mono.source.pulsating_sphere_velocity()`,\n",
31+
"- [sfs.mono.source.pulsating_sphere()](../sfs.mono.source.rst#sfs.mono.source.pulsating_sphere) and \n",
32+
"- [sfs.mono.source.pulsating_sphere_velocity()](../sfs.mono.source.rst#sfs.mono.source.pulsating_sphere_velocity)\n",
33+
"\n",
34+
"while the last one can be obtained by using\n",
35+
"\n",
36+
"- [sfs.util.displacement()](../sfs.util.rst#sfs.util.displacement)\n",
3337
"\n",
34-
"while the last one can be obtained by using `sfs.util.displacement()`\n",
3538
"which converts the particle velocity into displacement.\n",
3639
"\n",
3740
"A couple of additional functions are implemented in\n",
3841
"\n",
39-
"[`animations_pulsating_sphere.py`](animations_pulsating_sphere.py)\n",
42+
"- [animations_pulsating_sphere.py](animations_pulsating_sphere.py)\n",
4043
"\n",
4144
"in order to help creating animating pictures, which is fun!"
4245
]
@@ -261,12 +264,12 @@
261264
"Notice that the sound pressure exceeds\n",
262265
"the atmospheric pressure ($\\approx 10^5$ Pa), which of course makes no sense.\n",
263266
"This is due to the large amplitude (50 mm) of the pulsating motion.\n",
264-
"Although quite unrealistic, it makes easier to observe the particle movements\n",
267+
"It was chosen to better visualize the particle movements\n",
265268
"in the earlier animations.\n",
266269
"\n",
267270
"For 1 kHz, the amplitude corresponding to a moderate sound pressure,\n",
268-
"let say 1 Pa, is in order of micrometer.\n",
269-
"Since it is very small compared to the corresponding wavelength (0.343 m),\n",
271+
"let say 1 Pa, is in the order of micrometer.\n",
272+
"As it is very small compared to the corresponding wavelength (0.343 m),\n",
270273
"the movement of the particles and the spatial structure of the sound field\n",
271274
"cannot be observed simultaneously.\n",
272275
"Furthermore, at high frequencies, the sound pressure\n",

doc/examples/animations_pulsating_sphere.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
def particle_displacement(omega, center, radius, amplitude, grid, frames,
99
figsize=(8, 8), interval=80, blit=True, **kwargs):
1010
"""Generate sound particle animation."""
11-
1211
velocity = sfs.mono.source.pulsating_sphere_velocity(
1312
omega, center, radius, amplitude, grid)
1413
displacement = sfs.util.displacement(velocity, omega)
@@ -33,7 +32,6 @@ def update_frame_displacement(i):
3332
def particle_velocity(omega, center, radius, amplitude, grid, frames,
3433
figsize=(8, 8), interval=80, blit=True, **kwargs):
3534
"""Generate particle velocity animation."""
36-
3735
velocity = sfs.mono.source.pulsating_sphere_velocity(
3836
omega, center, radius, amplitude, grid)
3937
phasor = np.exp(1j * 2 * np.pi / frames)
@@ -56,7 +54,6 @@ def sound_pressure(omega, center, radius, amplitude, grid, frames,
5654
pulsate=False, figsize=(8, 8), interval=80, blit=True,
5755
**kwargs):
5856
"""Generate sound pressure animation."""
59-
6057
pressure = sfs.mono.source.pulsating_sphere(
6158
omega, center, radius, amplitude, grid, inside=pulsate)
6259
phasor = np.exp(1j * 2 * np.pi / frames)

0 commit comments

Comments
 (0)
0