Skip to content

Spherical cavity and finite spherical shell

Model overview

Level: 4.

Physical domain: seismic elastic
Geometry: cavity, shell

Elastic displacement response, cavity wall and finite-shell boundary contributions

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

Spherical cavity and spherical shell schematic

Concentric spherical cavity of radius a and outer shell boundary b with host medium density ρ.

  • center-only helper targets cavity center. high-level models accept geometry frame/phase origin and target fields; physical boundaries have exclusions per model.

Analytic formulation, sources, and scope

Equations

For a finite spherical shell of inner radius \(a\), outer radius \(R\), and uniform mass density \(\rho\) under an incident plane harmonic compressional P-wave displacement \(\mathbf u(\mathbf x, t) = \mathbf\xi e^{i(\mathbf k\cdot\mathbf x - \omega t)}\), the center acceleration decomposes into bulk and boundary contributions (ANNA v4, arXiv:2603.15157v4, Section 4.1):

\[ \begin{aligned} \mathbf a_{\mathrm{bulk}} &= 4\pi G\rho \left[ j_0(ka) - j_0(kR) \right] \mathbf\xi, \\ \mathbf a_{\mathrm{inner\_wall}} &= 4\pi G\rho \left[ \frac{2 j_1(ka)}{ka} - j_0(ka) \right] \mathbf\xi, \\ \mathbf a_{\mathrm{outer\_boundary}} &= 4\pi G\rho \left[ j_0(kR) - \frac{2 j_1(kR)}{kR} \right] \mathbf\xi. \end{aligned} \]

The total center acceleration is:

\[ \mathbf a_{\mathrm{total}} = \mathbf a_{\mathrm{bulk}} + \mathbf a_{\mathrm{inner\_wall}} + \mathbf a_{\mathrm{outer\_boundary}} = 8\pi G\rho \left[ \frac{j_1(ka)}{ka} - \frac{j_1(kR)}{kR} \right] \mathbf\xi \]

where \(j_0(x) = \sin(x)/x\) and \(j_1(x) = \sin(x)/x^2 - \cos(x)/x\) are spherical Bessel functions of the first kind.

The difference relative to an infinite homogeneous medium is:

\[ \Delta\mathbf a = \mathbf a_{\mathrm{infinite}} - \mathbf a_{\mathrm{total}} = 8\pi G\rho \left[ \frac{j_1(kR)}{kR} \right] \mathbf\xi \qquad (k > 0). \]

Derivation

Finite shell general-point harmonic coefficient derivations are documented; exact CAS residuals are claimed in saved validation record. Cavity-series local derivation/implementation record exists.

References

Existing public documentation and original formulation context:

Bibliographic inventory: located.

Applicability and scope

Prescribed plane-wave displacement and finite first-order perturbation; finite shell response does not satisfy elastic scattering conditions. Center-only helper is P-wave acceleration only; high-level shell supports distinct P/S and contribution path.

  • U10 validation explicitly claims no comparison with an elastically scattered field. General spherical cavity series is no-scattering; physical wall excluded. Do not infer static response or PSD/time-series outputs.

STEP 1 — Setup

Primary path: Spherical shell / cavity factories + literature observables

Primary path: Spherical shell / cavity factories + literature observables

Build inputs consistent with Detailed reference:

inner_radius = 1.0
outer_radius = 10.0
wavenumber = 0.01
density = 2500.0
displacement = 1e-6
direction = [0.0, 0.0, 1.0]

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 finite spherical shell of inner radius \(a\), outer radius \(R\), and uniform mass density \(\rho\) under an incident plane harmonic compressional P-wave displacement \(\mathbf u(\mathbf x, t) = \mathbf\xi e^{i(\mathbf k\cdot\mathbf x - \omega t)}\), the center acceleration decomposes into bulk and boundary contributions (ANNA v4, arXiv:2603.15157v4, Section 4.1):

\[ \begin{aligned} \mathbf a_{\mathrm{bulk}} &= 4\pi G\rho \left[ j_0(ka) - j_0(kR) \right] \mathbf\xi, \\ \mathbf a_{\mathrm{inner\_wall}} &= 4\pi G\rho \left[ \frac{2 j_1(ka)}{ka} - j_0(ka) \right] \mathbf\xi, \\ \mathbf a_{\mathrm{outer\_boundary}} &= 4\pi G\rho \left[ j_0(kR) - \frac{2 j_1(kR)}{kR} \right] \mathbf\xi. \end{aligned} \]

The total center acceleration is:

\[ \mathbf a_{\mathrm{total}} = \mathbf a_{\mathrm{bulk}} + \mathbf a_{\mathrm{inner\_wall}} + \mathbf a_{\mathrm{outer\_boundary}} = 8\pi G\rho \left[ \frac{j_1(ka)}{ka} - \frac{j_1(kR)}{kR} \right] \mathbf\xi \]

where \(j_0(x) = \sin(x)/x\) and \(j_1(x) = \sin(x)/x^2 - \cos(x)/x\) are spherical Bessel functions of the first kind.

The difference relative to an infinite homogeneous medium is:

\[ \Delta\mathbf a = \mathbf a_{\mathrm{infinite}} - \mathbf a_{\mathrm{total}} = 8\pi G\rho \left[ \frac{j_1(kR)}{kR} \right] \mathbf\xi \qquad (k > 0). \]

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

For direct observable evaluation, parameters and display equations are verified above (tutorial-display).

try:
    from IPython.display import display
except ImportError:
    display = print
# Direct observable evaluation: parameters verified against catalogue specification
print('Input configuration verified.')

STEP 3 — Calculate

Evaluate the model (api-output):

from gragra.observables import spherical_shell_p_acceleration_components

res = spherical_shell_p_acceleration_components(
    inner_radius_m=inner_radius, outer_radius_m=outer_radius, wavenumber_rad_m=wavenumber,
    density_kg_m3=density, displacement_m=displacement, direction=direction,
)
print('total acceleration:', res.total)
print('bulk contribution:', res.bulk)
print('inner wall contribution:', res.inner_wall)
print('outer boundary contribution:', res.outer_boundary)

STEP 4 — Results / Comparison

The code below computes the result for each case and plots it. Each case is named on the x-axis or in the legend (api-output).

import matplotlib.pyplot as plt
import numpy as np
from gragra.observables import spherical_shell_p_acceleration_components

radii = np.array([0.5, 1.0, 1.5, 2.0, 2.5])
az = [
    spherical_shell_p_acceleration_components(
        inner_radius_m=float(a),
        outer_radius_m=10.0,
        wavenumber_rad_m=0.01,
        density_kg_m3=2500.0,
        displacement_m=1e-6,
        direction=[0.0, 0.0, 1.0],
    ).total[0, 2]
    for a in radii
]

fig, ax = plt.subplots(figsize=(8.0, 4.8))
ax.plot(radii, az, "o-", color="#316aa5", label=r"Total $a_z$")
ax.set_xlabel(r"Inner cavity radius $a$ [m]")
ax.set_ylabel(r"$a_z$ [m/s$^2$]")
ax.set_title(r"Spherical shell with P-wave: total acceleration vs cavity radius ($b=10\,\mathrm{m}$)")
ax.grid(True, linestyle="--", alpha=0.45)
ax.legend()
fig.tight_layout()
plt.show()

STEP 4 comparison (_spherical_cavity_and_finite_spherical_shell_step4_comparison.svg_)

Figure 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
spherical_cavity geometry Sphere required Sphere geometry defining cavity radius and center
spherical_cavity density u.Quantity (density) required Surrounding medium mass density
spherical_cavity phase_speed u.Quantity | FrequencySeries required Compressional or shear phase speed
spherical_cavity displacement FrequencySeries required Incident displacement amplitude FrequencySeries
spherical_cavity wave_type str required Incident wave type ('P' or 'S')
spherical_cavity propagation_direction array-like (3,) required Incident wave propagation direction vector
spherical_shell geometry SphericalShell required SphericalShell geometry (inner radius a, outer radius R)
spherical_shell_p_acceleration_components inner_radius_m float required Inner cavity radius a in meters
spherical_shell_p_acceleration_components outer_radius_m float required Outer shell radius R in meters (R > a)
spherical_shell_p_acceleration_components wavenumber_rad_m float | array-like required Incident compressional wavenumber k in rad/m
spherical_shell_p_acceleration_components density_kg_m3 float required Shell medium density in kg/m³
spherical_shell_p_acceleration_components displacement_m float | complex required Incident displacement phasor amplitude in meters
spherical_shell_p_acceleration_components direction array-like (3,) required Wave propagation unit direction vector

API return values

Function / Path Return type Representation Quantity & Unit Shape / Structure Description
spherical_cavity SphericalCavityModel Phasor Φ: m²/s², a: m/s², Γ: s⁻² EvaluationResult with complex Astropy Quantities High-level seismic spherical cavity model evaluated via .at(targets).run()
spherical_shell SphericalShellModel Phasor Φ: m²/s², a: m/s², Γ: s⁻² EvaluationResult with complex Astropy Quantities High-level finite spherical shell model evaluated via .at(targets).run()
spherical_shell_p_acceleration_components SphericalShellPComponents Phasor a: m/s² total: (1, 3), bulk: (1, 3), inner_wall: (1, 3), outer_boundary: (1, 3) Component decomposition of P-wave cavity acceleration (bulk, inner wall, outer boundary)

Mathematical symbols and notation

Symbol Meaning SI unit Definition / Relation
\(a\) Inner cavity radius m Inner boundary radius of cavity
\(R\) Outer shell radius m Outer boundary radius of shell (\(R > a\))
\(k\) Wavenumber rad/m Compressional or shear wavenumber \(k = 2\pi f / v\)
\(\rho\) Medium density kg/m³ Mass density of shell medium
\(\xi\) Displacement phasor m Incident wave displacement phasor amplitude
\(\hat{\mathbf n}\) Propagation vector dimensionless Incident wave direction unit vector
\(v_P, v_S\) Elastic wave speeds m/s Compressional and shear wave speeds

Usage notes

  • High-level models evaluate to SphericalCavityModel or _SphericalShellModel via .at(targets).run().
  • Center helper spherical_shell_p_acceleration_components calculates the 4 individual contributions at the cavity center: bulk compression, inner wall, outer wall, and total acceleration.

Calculation paths

high-level spherical cavity phasor model

  • gragra.analytic.seismic.spherical_cavity

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

high-level finite spherical shell P/S phasor model

  • gragra.analytic.seismic.spherical_shell

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

center-only finite-shell P-wave four-component acceleration

  • gragra.observables.spherical_shell_p_acceleration_components

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

Derivation and source notes

  • U10 document says 35 exact CAS residuals and general-point finite-interval harmonic coefficients/Cartesian jets are additional derivations. Formula ledger documents adopted fixed spherical cavity series and exact CAS/axis oracle scripts.

  • ANNA v4 Section 4.1 Eqs.47–53 for finite-shell center P formulas. U10 validation says Harms 2019 continuity/bulk/surface definitions and Reumers v4 P/S center formulas were checked against actual PDFs in that recorded work.

  • arXiv:2603.15157v4

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:

Existing tests/docs/results are evidence records only; none rerun. Shell validation records a fixed 24-case matrix and tolerances, but those runs were before candidate and raw artifacts external to repo.

  • U10 cases: b=10m, a/b=.2,.8,.99,.9999; kb=.01,.8,5; P/S; rho=2300 kg/m³; ξ=1e-9(1+.4i)m; center/offaxis/inner/material/external targets. Acceptance=1e-12 \(Q_{\mathrm{scale}} + r_Q\) norm(reference), \(r_Q\)=(1e-10,1e-10,1e-9); ratios recorded, reference <=0.1. No elastic scattering comparison. P center formula test implementation tests/test_u10_spherical_shell_general.py. Separate legacy P helper documented ANNA formula. Historical numerical artifacts are stored outside the public repository and were not reproduced or inspected for this catalogue update.

Applicability and limitations

  • U10 validation explicitly claims no comparison with an elastically scattered field. General spherical cavity series is no-scattering; physical wall excluded. Do not infer static response or PSD/time-series outputs.

Scope note: Prescribed plane-wave displacement and finite first-order perturbation; finite shell response does not satisfy elastic scattering conditions. Center-only helper is P-wave acceleration only; high-level shell supports distinct P/S and contribution path.

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

Information not yet confirmed

  • catalogue output_contracts empty; no runnable representative probe specified in ledger.
  • Saved artifact root external and historical; not re-run or inspected here.
  • No ANNA execution or elastically scattered field comparison claimed.

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