Skip to content

Rayleigh wave at an elastic halfspace

Model overview

Level: 4.

Physical domain: seismic elastic
Geometry: halfspace

Surface-wave gravity, depth response and coherent phasors

Source-declared observable / representation pairs:

  • Φ a Γ — Phasor

These pairs are a union over the listed calculation paths. They do not imply every API exposes every combination.

Back to model catalogue

Geometry

Rayleigh wave at an elastic halfspace schematic

Free surface \(z = 0\) and subsurface \(z < 0\) with horizontal wavenumber \(k_R\), elliptical retrograde orbit, and exponential depth decay.

  • High-level HalfSpace phasor APIs and separate all-space literature wrapper; coefficient response differs from amplitude-bearing field.

Analytic formulation, sources, and scope

Equations

For a harmonic Rayleigh wave propagating along the planar traction-free surface (\(z = 0\)) of a homogeneous isotropic elastic halfspace (\(z \le 0\)) with Rayleigh speed \(c_R\), angular frequency \(\omega = 2\pi f\), and horizontal wavenumber \(k_R = \omega / c_R\):

With medium P-wave speed \(v_P\) and S-wave speed \(v_S\), the dimensionless vertical wave decay parameters are:

\[ q = \sqrt{1 - \left(\frac{c_R}{v_P}\right)^2}, \qquad s = \sqrt{1 - \left(\frac{c_R}{v_S}\right)^2}, \qquad \zeta = \sqrt{\frac{q}{s}} = \sqrt{\frac{q_P}{q_S}} \]

where \(q_P = k_R q = \sqrt{k_R^2 - \omega^2 / v_P^2}\) and \(q_S = k_R s = \sqrt{k_R^2 - \omega^2 / v_S^2}\).

For surface vertical displacement amplitude \(\xi_z(0)\) at reference origin \(\mathbf x_0\), the modal amplitude constant is (Harms 2019 Eq. 98):

\[ A = \frac{\xi_z(0)}{q_P - k_R \zeta}. \]

Above ground (\(z > 0\)), the combined surface-mass and bulk-dilatation gravitational potential evaluates as (Harms 2019 Eq. 96):

\[ \Phi_+(\mathbf x, t) = -2\pi G \rho A (1 - \zeta) e^{-k_R z} e^{i(\mathbf k_R \cdot (\mathbf x_\perp - \mathbf x_{0,\perp}) - \omega t)}. \]

Below ground (\(z < 0\)), the gravitational potential combines the bulk compressional dilatation perturbation with surface mass displacement (Harms 2019 Eq. 97):

\[ \Phi_-(\mathbf x, t) = 2\pi G \rho A \left[ -2 e^{q_P z} + (1 + \zeta) e^{k_R z} \right] e^{i(\mathbf k_R \cdot (\mathbf x_\perp - \mathbf x_{0,\perp}) - \omega t)}. \]

At the free surface (\(z = 0\)), \(\Phi_+(0) = \Phi_-(0) = -2\pi G \rho A (1 - \zeta) e^{i(\mathbf k_R \cdot (\mathbf x_\perp - \mathbf x_{0,\perp}) - \omega t)}\), strictly satisfying potential continuity across the boundary. Across \(z = 0\), the normal derivative jump satisfies the surface mass-sheet condition \(\left. (\partial_z \Phi_+ - \partial_z \Phi_-) \right|_{z=0} = 4\pi G \rho \xi_z(0) e^{i(\mathbf k_R \cdot (\mathbf x_\perp - \mathbf x_{0,\perp}) - \omega t)}\). Evaluation targets on the surface boundary (\(z = 0\)) are rejected with a ValueError.

Derivation

Committed design and validation records describe the local independent derivation/verification approach; they remain documentary evidence and were not rerun here.

References

Existing public documentation and original formulation context:

Bibliographic inventory: partial.

Applicability and scope

Applicability limits recorded.

  • Literature API uses z-up and free surface z=0; z==0 targets rejected. Underground formula z<0; ground formula z>0. Potential continuous at interface, normal acceleration jumps, gradient generally discontinuous.
  • Model APIs require HalfSpace geometry and explicit frame/phase origin; response coefficients omit amplitude/reference time.

STEP 1 — Setup

Build the elastic half-space, surface phasor input, and targets in the world frame (api). The HalfSpace surface is at local \(z=0\); material occupies local \(z<0\). Tutorial targets below the free surface use negative world \(z\) (same sign convention as the catalogue low-level sample targets_m=[[0,0,-10]]).

import astropy.units as u
import numpy as np
from gwexpy.frequencyseries import FrequencySeries
from gragra.analytic.seismic import rayleigh_halfspace
from gragra.geometry import Frame, HalfSpace
from gragra.results import PhasorRepresentation
from gragra.targets import TargetPoints

world = Frame('world')
surface = Frame('surface', parent=world)
frequency_hz = 1.0
model = rayleigh_halfspace(
    HalfSpace(surface),
    2500.0 * u.kg / u.m**3,
    4000.0 * u.m / u.s,
    2000.0 * u.m / u.s,
    FrequencySeries(
        np.array([1e-6 + 0.0j]),
        frequencies=[frequency_hz] * u.Hz,
        unit=u.m,
    ),
    PhasorRepresentation(),
    (1_000_000_000, 0),
    [0.0, 0.0, 0.0] * u.m,
    (1.0, 0.0, 0.0),
)
depth_m = -16.0
targets = TargetPoints(
    [[0.0, 0.0, depth_m], [5.0, 0.0, depth_m], [0.0, 5.0, depth_m]] * u.m,
    ('on_axis', 'offset_x', 'offset_y'),
    world,
)
request = model.at(targets)

Setup-figure code (request.plot_setup(view='xz')):

import matplotlib.pyplot as plt

fig_setup = request.plot_setup(view='xz')
plt.show()

Rayleigh half-space setup

Figure generated by executing the setup-figure code above.

STEP 2 — Validate / Inspect

STEP 2 items are tagged by information source:

  • api: read from a gragra evaluation object: validate() is a method; parameters, formulas, and references are @property objects (not callable).
  • tutorial-display: assembled for this page from documented inputs or catalogue-verified display equations (not a separate gragra registry lookup).
  • api-output: taken from executed result payloads (units, shapes, GWexpy axes).

Display equations (tutorial-display)

Catalogue-registered analytic formulation (same as Analytic formulation, sources, and scope above):

For a harmonic Rayleigh wave propagating along the planar traction-free surface (\(z = 0\)) of a homogeneous isotropic elastic halfspace (\(z \le 0\)) with Rayleigh speed \(c_R\), angular frequency \(\omega = 2\pi f\), and horizontal wavenumber \(k_R = \omega / c_R\):

With medium P-wave speed \(v_P\) and S-wave speed \(v_S\), the dimensionless vertical wave decay parameters are:

\[ q = \sqrt{1 - \left(\frac{c_R}{v_P}\right)^2}, \qquad s = \sqrt{1 - \left(\frac{c_R}{v_S}\right)^2}, \qquad \zeta = \sqrt{\frac{q}{s}} = \sqrt{\frac{q_P}{q_S}} \]

where \(q_P = k_R q = \sqrt{k_R^2 - \omega^2 / v_P^2}\) and \(q_S = k_R s = \sqrt{k_R^2 - \omega^2 / v_S^2}\).

For surface vertical displacement amplitude \(\xi_z(0)\) at reference origin \(\mathbf x_0\), the modal amplitude constant is (Harms 2019 Eq. 98):

\[ A = \frac{\xi_z(0)}{q_P - k_R \zeta}. \]

Above ground (\(z > 0\)), the combined surface-mass and bulk-dilatation gravitational potential evaluates as (Harms 2019 Eq. 96):

\[ \Phi_+(\mathbf x, t) = -2\pi G \rho A (1 - \zeta) e^{-k_R z} e^{i(\mathbf k_R \cdot (\mathbf x_\perp - \mathbf x_{0,\perp}) - \omega t)}. \]

Below ground (\(z < 0\)), the gravitational potential combines the bulk compressional dilatation perturbation with surface mass displacement (Harms 2019 Eq. 97):

\[ \Phi_-(\mathbf x, t) = 2\pi G \rho A \left[ -2 e^{q_P z} + (1 + \zeta) e^{k_R z} \right] e^{i(\mathbf k_R \cdot (\mathbf x_\perp - \mathbf x_{0,\perp}) - \omega t)}. \]

At the free surface (\(z = 0\)), \(\Phi_+(0) = \Phi_-(0) = -2\pi G \rho A (1 - \zeta) e^{i(\mathbf k_R \cdot (\mathbf x_\perp - \mathbf x_{0,\perp}) - \omega t)}\), strictly satisfying potential continuity across the boundary. Across \(z = 0\), the normal derivative jump satisfies the surface mass-sheet condition \(\left. (\partial_z \Phi_+ - \partial_z \Phi_-) \right|_{z=0} = 4\pi G \rho \xi_z(0) e^{i(\mathbf k_R \cdot (\mathbf x_\perp - \mathbf x_{0,\perp}) - \omega t)}\). Evaluation targets on the surface boundary (\(z = 0\)) are rejected with a ValueError.

request.formulas lists implementation routing (api), which may differ from these display equations.

try:
    from IPython.display import display
except ImportError:
    display = print
report = request.validate()
if report is not None:
    print(report)
else:
    print('Configuration valid.')
display(request.parameters)
display(request.formulas)
display(request.references)

STEP 3 — Calculate

import numpy as np

result = request.run()
acc = result.acceleration
print('acceleration shape:', acc.shape)
print('frequencies:', acc.frequencies)
print('az phasor:', np.asarray(acc)[:, 2, 0])

acceleration is a complex phasor. STEP 4 plots \(|a_z|\) and \(\arg(a_z)\) separately; do not pass raw complex arrays to plot as reals.

Low-level cross-check (api SI observable used in CI samples):

from gragra.observables import rayleigh_halfspace_allspace_observables

res = rayleigh_halfspace_allspace_observables(
    targets_m=[[0.0, 0.0, -10.0]], density_kg_m3=2500.0, v_p_m_s=4000.0, v_s_m_s=2000.0,
    frequency_hz=1.0, vertical_surface_amplitude_m=1e-6
)
print('potential:', res.potential)
print('acceleration:', res.acceleration)
print('gradient:', res.gradient)

STEP 4 — Results / Comparison

Five burial depths at fixed material and \(f=1\,\mathrm{Hz}\): for each depth, three targets share the same world \(z\) with horizontal offsets (on_axis, offset_x, offset_y). Each plotted curve is one depth; the abscissa is target id (not depth). STEP 4 plots \(|a_z|\) and \(\arg(a_z)\) on separate figures.

\(|a_z|\) does not depend on the horizontal offset because the model is an infinite plane wave; the depth dependence appears between the curves. The phase of offset_x differs from on_axis by about 0.017 rad, which is too small to read on this scale.

Optional routing check at one depth (same kernel as rayleigh_halfspace_allspace_observables; not an independent physics oracle):

import numpy as np
from gragra.observables.rayleigh_literature import (
    rayleigh_halfspace_allspace_observables,
)
z_check = -16.0
hl = np.asarray(model.at(targets).run().acceleration)[:, 2, 0]
low = rayleigh_halfspace_allspace_observables(
    targets_m=[[0, 0, z_check], [5, 0, z_check], [0, 5, z_check]],
    density_kg_m3=2500, v_p_m_s=4000, v_s_m_s=2000,
    frequency_hz=1.0, vertical_surface_amplitude_m=1e-6,
).acceleration[:, 2]
print('max |hl-low|', np.max(np.abs(hl - low)))
import matplotlib.pyplot as plt
import numpy as np

depths_m = (-8.0, -12.0, -16.0, -20.0, -24.0)
colors = ('#316aa5', '#27864b', '#b97132', '#7a5fa8', '#c44e52')
target_ids = ('on_axis', 'offset_x', 'offset_y')

fig_mag, ax_mag = plt.subplots(figsize=(8.0, 4.5))
fig_phase, ax_phase = plt.subplots(figsize=(8.0, 4.0))
for depth, color in zip(depths_m, colors, strict=True):
    case_targets = TargetPoints(
        [[0.0, 0.0, depth], [5.0, 0.0, depth], [0.0, 5.0, depth]] * u.m,
        target_ids,
        world,
    )
    az = np.asarray(model.at(case_targets).run().acceleration)[:, 2, 0]
    ax_mag.plot(range(3), np.abs(az), 'o-', color=color, label=f'z={depth:.0f} m')
    ax_phase.plot(range(3), np.angle(az), 's--', color=color, label=f'z={depth:.0f} m')
for ax in (ax_mag, ax_phase):
    ax.set_xticks(range(3))
    ax.set_xticklabels(target_ids)
    ax.set_xlabel('Target ID')
    ax.legend(title='Burial depth (world z)', fontsize=7)
    ax.grid(True, linestyle='--', alpha=0.5)
ax_mag.set_ylabel(r'$|a_z|$ [m/s$^2$]')
ax_mag.set_title(r'Each curve: one burial depth; $f=1\,\mathrm{Hz}$, fixed $\rho$, $v_P$, $v_S$, $\xi_z(0)$')
ax_phase.set_ylabel(r'$\arg(a_z)$ [rad]')
ax_phase.set_title(r'Phasor phase ($f=1\,\mathrm{Hz}$)')
fig_mag.tight_layout()
fig_phase.tight_layout()
plt.show()

Rayleigh \(|a_z|\) depth sweep

Rayleigh \(\arg(a_z)\) depth sweep

Figures generated by executing the STEP 4 comparison code above.

Saved with fig.savefig(path, bbox_inches='tight', metadata={'Date': None}) and svg.hashsalt='gragra' under Matplotlib 3.11.2. SVG byte reproducibility was verified with Matplotlib 3.11.2 under these save conditions. Other versions may produce different SVG bytes or layouts.

Detailed reference and verification

Parameters and units

API parameters

Function / Path Parameter Type / Format Default Description
rayleigh_halfspace geometry HalfSpace required Elastic halfspace geometry instance (z <= 0)
rayleigh_halfspace density u.Quantity (density) required Medium background mass density
rayleigh_halfspace vp u.Quantity (speed) required Medium compressional P-wave speed
rayleigh_halfspace vs u.Quantity (speed) required Medium shear S-wave speed (\(0 < v_S < v_P\))
rayleigh_halfspace vertical_displacement FrequencySeries required Vertical surface displacement amplitude series
rayleigh_halfspace_allspace_observables targets_m array-like (M, 3) required Target evaluation coordinates in meters
rayleigh_halfspace_allspace_observables density_kg_m3 float required (kw-only) Medium density in kg/m³
rayleigh_halfspace_allspace_observables v_p_m_s float required (kw-only) P-wave speed in m/s
rayleigh_halfspace_allspace_observables v_s_m_s float required (kw-only) S-wave speed in m/s
rayleigh_halfspace_allspace_observables frequency_hz float | array-like required (kw-only) Wave frequency in Hz
rayleigh_halfspace_allspace_observables vertical_surface_amplitude_m float | complex | array-like required (kw-only) Vertical surface displacement amplitude in meters
rayleigh_halfspace_allspace_observables direction array-like (3,) (1.0, 0.0, 0.0) Horizontal propagation unit direction vector
rayleigh_halfspace_allspace_observables phase_origin_m array-like (3,) (0.0, 0.0, 0.0) Phase reference origin coordinate
rayleigh_response geometry HalfSpace required Elastic halfspace geometry instance (z <= 0) and surface frame
rayleigh_response density u.Quantity (density) required (kw-only) Medium background mass density convertible to kg/m³
rayleigh_response vp u.Quantity (speed) required (kw-only) Medium compressional P-wave speed convertible to m/s
rayleigh_response vs u.Quantity (speed) required (kw-only) Medium shear S-wave speed convertible to m/s
rayleigh_response frequencies u.Quantity (frequency) required (kw-only) Positive frequency bins convertible to Hz
rayleigh_response direction object required (kw-only) Nonzero horizontal propagation direction in surface frame
rayleigh_response phase_origin u.Quantity (length) required (kw-only) Surface reference location defining the complex displacement phasor

API return values

Function / Path Return type Representation Quantity & Unit Shape / Structure Description
rayleigh_response _RayleighResponseModel Phasor Φ: (m²/s²)/m, a: (m/s²)/m, Γ: s⁻²/m EvaluationModel; evaluate via .at(targets).run() to yield GravityResponse Linear transfer response model mapping unit vertical surface displacement to gravity perturbations
rayleigh_halfspace RayleighHalfspaceModel Phasor Φ: m²/s², a: m/s², Γ: s⁻² EvaluationResult with complex Astropy Quantities High-level Rayleigh halfspace model evaluated via .at(targets).run()
rayleigh_halfspace_allspace_observables GravityObservables Phasor Φ: m²/s², a: m/s², Γ: s⁻² potential: (M,), acceleration: (M, 3), gradient: (M, 3, 3) Complex SI observables for Rayleigh waves evaluated both above (z > 0) and below (z < 0) ground

Mathematical symbols and notation

Symbol Meaning SI unit Definition / Relation
\(\rho\) Medium density kg/m³ Background elastic medium density (\(\rho > 0\))
\(v_P\) Compressional wave speed m/s P-wave propagation speed
\(v_S\) Shear wave speed m/s S-wave propagation speed (\(0 < v_S < v_P\))
\(f\) Wave frequency Hz Linear oscillation frequency
\(k_R\) Rayleigh wavenumber rad/m Secular equation root \(k_R = 2\pi f / v_R\)
\(\lambda_R\) Rayleigh wavelength m \(\lambda_R = 2\pi / k_R\)
\(q_P, q_S\) Vertical decay rates rad/m \(q_P = \sqrt{k_R^2 - \omega^2/v_P^2}\), \(q_S = \sqrt{k_R^2 - \omega^2/v_S^2}\)
\(\xi_z(0)\) Surface vertical displacement m Vertical displacement phasor at \(z = 0\)
\(\hat{\mathbf k}\) Propagation vector dimensionless Surface propagation unit direction

Usage notes

  • Wave speeds must satisfy Poisson stability conditions: \(v_P > v_S > 0\) and \(v_P^2 > \frac{4}{3}v_S^2\).
  • Coordinate convention: \(z = 0\) is the planar traction-free boundary; ground occupies \(z \ge 0\) in observable function targets.

Calculation paths

Explicit displacement-bearing Rayleigh field

  • gragra.analytic.seismic.rayleigh_halfspace

Path-level source-declared output union: Φ a Γ — Phasor

Amplitude-free Rayleigh response coefficients

  • gragra.analytic.seismic.rayleigh_response

Path-level source-declared output union: Φ a Γ — Phasor

Literature all-space Rayleigh observables

  • gragra.observables.rayleigh_halfspace_allspace_observables

Path-level source-declared output union: Φ a Γ — Phasor

Derivation and source notes

  • Inventory fact: Internal design records map Harms (2019) Eqs. 96/97 to potential and acceleration observables and verify Eq. 92 algebraic cross-checks.
  • Literature assertion: Surface and underground Rayleigh wave gravitational fields correspond to Harms (2019) Eqs. 96–99.
  • Proof assertion: Independent Poisson and Green-function numerical checks confirm potential continuity and normal acceleration jump across the free surface.

  • Harms, Living Reviews Relativity 22, 6 (2019), DOI 10.1007/s41114-019-0022-2, Eq.96-98.

  • DOI 10.1007/s41114-019-0022-2

Verification

Evidence classes are distinct: source declarations, catalogue output-contract probes, existing test code, documentary validation claims, and saved numerical results.

  • Representative catalogue output-contract entries: 0.
  • Catalogue probe state: Not assessed (no catalogue output probe registered).
  • Registered output-contract probes run during catalogue validation check selected API outputs only; they do not measure scientific accuracy.
  • Scientific accuracy tests are not part of documentation generation; Level 4 is assigned based on archived scientific validation records (established closed form / verified reference comparisons in the development repository) within the stated scope conditions.

Existing verification inventory:

Verification method, tolerances, and artifact status recorded; tests were not run in this task.

Applicability and limitations

  • Literature API uses z-up and free surface z=0; z==0 targets rejected. Underground formula z<0; ground formula z>0. Potential continuous at interface, normal acceleration jumps, gradient generally discontinuous.
  • Model APIs require HalfSpace geometry and explicit frame/phase origin; response coefficients omit amplitude/reference time.
  • Cavity-wall corrections are outside the cited literature API scope.

Scope note: Applicability limits recorded.

See the public verification and limitations guidance for test-specific conditions and interpretation:

Information not yet confirmed

  • Catalogue output_contracts are empty; this is a missing representative probe, not evidence of absent science.
  • No additional committed plot asset identified in these assigned API sources.

Publication scope: narrative summaries and links, not private derivation records, internal test artifacts or inventory JSON.