Water Newtonian-noise models API reference¶
This page documents the analytical Newtonian noise models for water flow, water channels, waterfalls, and surface perturbations.
The functions are divided into two levels:
1. Low-level G-free transfer functions in gragra.analytic. These return pure geometric transfer coefficients without multiplying by Newton's gravitational constant \(G\).
2. High-level physical observables in gragra.observables. These multiply by \(G_{\mathrm{SI}}\) and evaluate physical amplitude spectral densities (ASD) and strain ASDs.
Analytic G-free transfer functions¶
Low-level G-free transfer functions from gragra.analytic.
gragra.analytic.water_channel_advection_transfer_g_free
¶
water_channel_advection_transfer_g_free(
frequency_hz: float | list | tuple | ndarray,
velocity_mps: float,
distance_m: float,
width_m: float,
density_kg_m3: float = 1000.0,
allow_dc: bool = False,
) -> tuple[np.ndarray, np.ndarray, np.ndarray]
Compute G-free transfer per unit displacement for advected water channel.
Model 2 (Nishizawa-Chen frozen advection).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
frequency_hz
|
float or array_like
|
Frequency f in Hz (f > 0 by default; f = 0 allowed only when allow_dc=True). |
required |
velocity_mps
|
float
|
Flow velocity v in m/s (non-zero). |
required |
distance_m
|
float
|
Perpendicular distance D from channel to mirror in meters (D > 0). |
required |
width_m
|
float
|
Channel width w in meters (w > 0). |
required |
density_kg_m3
|
float
|
Fluid density perturbation rho in kg/m^3 (rho > 0). |
1000.0
|
allow_dc
|
bool
|
Whether to allow f = 0 (DC). If True, potential at f = 0 is set to -inf
due to the logarithmic divergence of an infinite line mass. If False and
f = 0 is passed, raises ValueError. For finite DC acceleration and
gravity gradient without potential, use
|
False
|
Numerical domain
Positive-frequency samples require a representable dimensionless argument
0 < q <= 700 with representable float64 wavenumbers and coefficients.
Positive-frequency q underflow, q above 700, unrepresentable intermediate
coefficients, or non-finite transfer values raise ValueError.
Returns:
| Name | Type | Description |
|---|---|---|
potential_transfer |
ndarray
|
G-free potential transfer [Phi / (G * eta)], shape (F,) or (), complex128/float64. |
acceleration_transfer |
ndarray
|
G-free acceleration transfer [a / (G * eta)], shape (F, 3) or (3,), complex128. Components are (a_x, a_y, a_z). |
gradient_transfer |
ndarray
|
G-free gravity gradient transfer [Gamma / (G * eta)], shape (F, 3, 3) or (3, 3), complex128. Trace is identically zero for all frequencies. |
Compute G-free potential, acceleration, and gradient transfer functions for surface displacement advection along a narrow channel.
gragra.analytic.water_channel_advection_dc_limit_g_free
¶
water_channel_advection_dc_limit_g_free(
distance_m: float,
width_m: float,
density_kg_m3: float = 1000.0,
eta_m: float = 1.0,
) -> tuple[np.ndarray, np.ndarray]
Compute finite G-free DC limit (f -> 0) of acceleration and gradient.
For an infinite narrow water channel, the gravitational potential diverges logarithmically as -inf at DC. However, the acceleration and gravity gradient are strictly finite: - a_x = 0 - a_y = 0 - a_z = -2 * rho * w * eta / D (exact Newtonian line mass attraction) - Gamma_xx = 0 - Gamma_yy = -2 * rho * w * eta / D^2 - Gamma_zz = +2 * rho * w * eta / D^2 - Gamma_xz = 0 - Tr(Gamma) = 0
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
distance_m
|
float
|
Perpendicular distance D from channel to mirror in meters (D > 0). |
required |
width_m
|
float
|
Channel width w in meters (w > 0). |
required |
density_kg_m3
|
float
|
Fluid density rho in kg/m^3 (rho > 0). |
1000.0
|
eta_m
|
float
|
DC water surface displacement in meters (finite). |
1.0
|
Returns:
| Name | Type | Description |
|---|---|---|
acc_dc |
(ndarray, shape(3))
|
Acceleration in G-free units (kg / m^2). |
grad_dc |
(ndarray, shape(3, 3))
|
Gravity gradient tensor in G-free units (kg / m^3). |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the finite inputs produce a non-finite float64 DC result. |
Evaluate the exact non-oscillatory DC limit (\(f \to 0\)) of acceleration and gradient transfer functions for a static surface step.
gragra.analytic.water_channel_advection_observables_g_free
¶
water_channel_advection_observables_g_free(
frequency_hz: float | list | tuple | ndarray,
velocity_mps: float,
distance_m: float,
width_m: float,
density_kg_m3: float = 1000.0,
eta_m: complex | float | ndarray = 1.0,
) -> GFreeGravityValues
Compute G-free observables for advected channel with given amplitude.
Returns GFreeGravityValues containing potential, acceleration, and gradient.
Note: frequency_hz must be strictly positive (> 0) because GFreeGravityValues
requires finite potential values, whereas the potential of an infinite line
mass diverges logarithmically at DC (f = 0). For finite DC acceleration and
gravity gradient, use water_channel_advection_dc_limit_g_free.
Evaluate G-free potential, acceleration, and gradient values packaged in a GFreeGravityValues container.
gragra.analytic.water_waterfall_transfer_g_free
¶
water_waterfall_transfer_g_free(
frequency_hz: float | list | tuple | ndarray,
velocity_mps: float,
distance_m: float,
density_kg_m3: float = 1000.0,
allow_dc: bool = False,
) -> tuple[np.ndarray, np.ndarray, np.ndarray]
Compute G-free transfer per unit cross-sectional area for vertical waterfall.
Nishizawa (2021) waterfall model.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
frequency_hz
|
float or array_like
|
Frequency f in Hz (f > 0 by default; f = 0 allowed only when allow_dc=True). |
required |
velocity_mps
|
float
|
Fall velocity v in m/s (non-zero). |
required |
distance_m
|
float
|
Horizontal distance D from waterfall to mirror in meters (D > 0). |
required |
density_kg_m3
|
float
|
Fluid density rho in kg/m^3 (rho > 0). |
1000.0
|
allow_dc
|
bool
|
Whether to allow f = 0. |
False
|
Numerical domain
Positive-frequency samples require a representable dimensionless argument
0 < q <= 700 with representable float64 wavenumbers and coefficients.
Positive-frequency q underflow, q above 700, unrepresentable intermediate
coefficients, or non-finite transfer values raise ValueError.
Returns:
| Type | Description |
|---|---|
tuple[ndarray, ndarray, ndarray]
|
(potential_transfer, acceleration_transfer, gradient_transfer) |
Compute G-free acceleration transfer functions for vertical cross-sectional area perturbations in a free-falling waterfall.
gragra.analytic.water_channel_uncorrelated_cell_coupling_g_free
¶
water_channel_uncorrelated_cell_coupling_g_free(
distance_m: float,
width_m: float,
correlation_area_m2: float,
density_kg_m3: float = 1000.0,
) -> float
Compute G-free spatial coupling factor for uncorrelated surface cells.
Model 1 (narrow channel, Chen uncorrelated surface model). Integration of uncorrelated cells along x in [-inf, inf]: int_{-inf}^inf x^2 / (H^2 + x^2)^3 dx = pi / (8 * H^3)
Spatial coupling factor: C_{a_x} / G = rho * sqrt(A_cell * w) * sqrt(pi / (8 * H^3))
Dimensional derivation: [rho] = kg / m^3 [sqrt(A_cell * w)] = sqrt(m^2 * m) = m^1.5 [sqrt(pi / (8 * H^3))] = sqrt(m^-3) = m^-1.5 [C_{a_x} / G] = (kg / m^3) * m^1.5 * m^-1.5 = kg / m^3.
When multiplied by G [m^3 / (kg * s^2)], the transfer ratio has unit s^-2: [C_{a_x}] = [G] * [C_{a_x} / G] = (m^3 / (kg * s^2)) * (kg / m^3) = s^-2. Then ASD_a(f) = C_{a_x} * ASD_eta(f) has unit (s^-2) * (m / Hz^0.5) = m / (s^2 * Hz^0.5).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
distance_m
|
float
|
Perpendicular distance H from channel to mirror in meters (H > 0). |
required |
width_m
|
float
|
Channel width w in meters (w > 0). |
required |
correlation_area_m2
|
float
|
Correlation cell area A_cell in m^2 (A_cell > 0). |
required |
density_kg_m3
|
float
|
Fluid density rho in kg/m^3 (rho > 0). |
1000.0
|
Returns:
| Type | Description |
|---|---|
float
|
G-free spatial coupling factor C_{a_x} / G. Unit: kg / m^3. |
Compute the geometric coupling coefficient for narrow-channel uncorrelated surface cells.
Classified as INDEPENDENT_DERIVATION (independent first-principles derivation in gragra);
external draft presentation notes are designated ORIGINAL_SOURCE_UNVERIFIED.
gragra.analytic.water_edge_step_transfer_g_free
¶
water_edge_step_transfer_g_free(
x0_m: float,
distance_m: float,
volume_m3: float,
frequency_hz: float | list | tuple | ndarray,
density_kg_m3: float = 1000.0,
) -> np.ndarray
Compute G-free deterministic acceleration Fourier spectrum for edge step.
Evaluates the Fourier transform of gravitational acceleration induced by a single Heaviside step displacement of water volume Delta V at coordinate x0: Delta a_x(t) = G * rho * Delta V * (x0 / (D^2 + x0^2)^(3/2)) * Theta(t) with Fourier transform: Delta a_x(Omega) / G = rho * Delta V * (x0 / (D^2 + x0^2)^(3/2)) * (i / Omega).
Physical Dimension: The Fourier transform of a single transient event has units of acceleration * time = (m / s^2) * s = m / (s^2 * Hz) = m / s. In G-free units (divided by G [m^3 / (kg * s^2)]): [Delta a_x(Omega) / G] = (m / s) / (m^3 / (kg * s^2)) = kg * s / m^2. Note: This is a DETERMINISTIC transient Fourier spectrum per single event, NOT a stationary power/amplitude spectral density (ASD).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x0_m
|
float
|
Horizontal distance along channel to edge element in meters (finite). |
required |
distance_m
|
float
|
Perpendicular distance D from channel to mirror in meters (D > 0). |
required |
volume_m3
|
float
|
Displaced volume Delta V in m^3 (Delta V > 0). |
required |
frequency_hz
|
float or array_like
|
Frequency f in Hz (f > 0). |
required |
density_kg_m3
|
float
|
Fluid density rho in kg/m^3 (rho > 0). |
1000.0
|
Returns:
| Name | Type | Description |
|---|---|---|
acc_transfer |
ndarray
|
G-free acceleration Fourier transform, shape matching frequency_hz. |
Compute the G-free deterministic acceleration Fourier spectrum for a Heaviside step displacement at a channel inflow edge.
Physical observables and spectral densities¶
High-level SI observables and ASD estimators from gragra.observables.
gragra.observables.water_channel_advection_observables
¶
water_channel_advection_observables(
frequency_hz: float | list | tuple | ndarray,
velocity_mps: float,
distance_m: float,
width_m: float,
density_kg_m3: float = 1000.0,
eta_m: complex | float | ndarray = 1.0,
) -> GravityObservables
Compute physical SI gravity observables for advected water channel (Model 2).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
frequency_hz
|
float or array_like
|
Frequency f in Hz (f > 0). |
required |
velocity_mps
|
float
|
Flow velocity v in m/s (non-zero). |
required |
distance_m
|
float
|
Perpendicular distance D from channel to mirror in meters (D > 0). |
required |
width_m
|
float
|
Channel width w in meters (w > 0). |
required |
density_kg_m3
|
float
|
Fluid density rho in kg/m^3 (rho > 0). |
1000.0
|
eta_m
|
(complex, float or array_like)
|
Surface displacement amplitude eta in meters (finite). |
1.0
|
Returns:
| Type | Description |
|---|---|
GravityObservables
|
Potential [m^2/s^2], acceleration [m/s^2], and gradient [s^-2] in SI units. |
Compute physical SI gravity potential, acceleration, and gradient perturbations for channel surface displacement advection.
gragra.observables.water_channel_advection_dc_limit
¶
water_channel_advection_dc_limit(
distance_m: float,
width_m: float,
density_kg_m3: float = 1000.0,
eta_m: float = 1.0,
) -> tuple[np.ndarray, np.ndarray]
Compute exact finite physical DC limit (f -> 0) of acceleration and gradient.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
distance_m
|
float
|
Distance D in meters (D > 0). |
required |
width_m
|
float
|
Channel width w in meters (w > 0). |
required |
density_kg_m3
|
float
|
Fluid density in kg/m^3 (rho > 0). |
1000.0
|
eta_m
|
float
|
DC water surface displacement in meters (finite). |
1.0
|
Returns:
| Name | Type | Description |
|---|---|---|
acc_dc_si |
(ndarray, shape(3))
|
Acceleration in SI units [m / s^2]. a_x = 0, a_y = 0, a_z = -2 * G_SI * rho * w * eta / D. |
grad_dc_si |
(ndarray, shape(3, 3))
|
Gravity gradient tensor in SI units [s^-2]. Gamma_yy = -2 * G_SI * rho * w * eta / D^2, Gamma_zz = +2 * G_SI * rho * w * eta / D^2, others zero. |
Compute physical SI acceleration and gravity gradient perturbations at exact DC for water channel displacement.
gragra.observables.water_channel_advection_asd
¶
water_channel_advection_asd(
frequency_hz: float | list | tuple | ndarray,
velocity_mps: float,
distance_m: float,
width_m: float,
surface_asd_m_per_rt_hz: float | ndarray,
density_kg_m3: float = 1000.0,
component: str = "x",
) -> np.ndarray
Compute acceleration amplitude spectral density (ASD) for advected water channel.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
frequency_hz
|
float or array_like
|
Frequency f in Hz (f > 0). |
required |
velocity_mps
|
float
|
Flow velocity v in m/s (non-zero). |
required |
distance_m
|
float
|
Distance D in meters (D > 0). |
required |
width_m
|
float
|
Width w in meters (w > 0). |
required |
surface_asd_m_per_rt_hz
|
float or array_like
|
Water surface displacement ASD sqrt(S_eta(f)) in m / Hz^0.5 (non-negative). |
required |
density_kg_m3
|
float
|
Fluid density in kg/m^3 (rho > 0). |
1000.0
|
component
|
('x', 'z', 'all')
|
Acceleration component to return: along-flow ("x"), perpendicular ("z"), or both as shape (..., 2) or (..., 3) ("all"). |
"x"
|
Returns:
| Type | Description |
|---|---|
ndarray
|
Acceleration ASD in m / (s^2 * Hz^0.5). |
Compute the amplitude spectral density (ASD) of gravitational acceleration induced by water channel surface fluctuations.
gragra.observables.water_channel_advection_strain_asd
¶
water_channel_advection_strain_asd(
frequency_hz: float | list | tuple | ndarray,
velocity_mps: float,
distance_m: float,
width_m: float,
surface_asd_m_per_rt_hz: float | ndarray,
arm_length_m: float = 3000.0,
density_kg_m3: float = 1000.0,
) -> np.ndarray
Compute GW detector strain ASD for advected water channel (along-flow x).
h(f) = a_x(f) / (Omega^2 * L) = a_x(f) / ((2pif)^2 * L).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
frequency_hz
|
float or array_like
|
Frequency f in Hz (f > 0). |
required |
velocity_mps
|
float
|
Flow velocity v in m/s (non-zero). |
required |
distance_m
|
float
|
Distance D in meters (D > 0). |
required |
width_m
|
float
|
Width w in meters (w > 0). |
required |
surface_asd_m_per_rt_hz
|
float or array_like
|
Surface displacement ASD in m / Hz^0.5 (non-negative). |
required |
arm_length_m
|
float
|
Interferometer arm length L in meters (L > 0). |
3000.0
|
density_kg_m3
|
float
|
Fluid density in kg/m^3 (rho > 0). |
1000.0
|
Returns:
| Type | Description |
|---|---|
ndarray
|
Strain ASD in 1 / Hz^0.5. |
Compute the gravitational-wave strain equivalent ASD for water channel advection.
gragra.observables.water_channel_kolmogorov_surface_asd
¶
water_channel_kolmogorov_surface_asd(
frequency_hz: float | list | tuple | ndarray,
velocity_mps: float,
largest_turb_scale_m: float,
turb_velocity_fluc_mps: float,
) -> np.ndarray
Compute Kolmogorov water surface height ASD sqrt(S_b(f)).
Nishizawa (2021-03-31) Eq. (10): sqrt(S_b(Omega)) = delta_v_ell / (2*pi) * f^(-5/6) * (ell / v)^(2/3)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
frequency_hz
|
float or array_like
|
Frequency f in Hz (f > 0). |
required |
velocity_mps
|
float
|
Average flow velocity v in m/s (v > 0). |
required |
largest_turb_scale_m
|
float
|
Largest scale of turbulence ell in meters (ell > 0). |
required |
turb_velocity_fluc_mps
|
float
|
Velocity fluctuation delta_v_ell at largest scale in m/s (delta_v_ell > 0). |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
Surface height ASD in m / Hz^0.5. |
Evaluate Kolmogorov turbulent surface displacement ASD model for open water channels.
gragra.observables.water_waterfall_asd
¶
water_waterfall_asd(
frequency_hz: float | list | tuple | ndarray,
velocity_mps: float,
distance_m: float,
area_asd_m2_per_rt_hz: float | ndarray,
density_kg_m3: float = 1000.0,
) -> np.ndarray
Compute horizontal acceleration ASD for vertical waterfall.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
frequency_hz
|
float or array_like
|
Frequency f in Hz (f > 0). |
required |
velocity_mps
|
float
|
Fall velocity v in m/s (non-zero). |
required |
distance_m
|
float
|
Horizontal distance D in meters (D > 0). |
required |
area_asd_m2_per_rt_hz
|
float or array_like
|
Cross-sectional area perturbation ASD sqrt(S_A(f)) in m^2 / Hz^0.5 (non-negative). |
required |
density_kg_m3
|
float
|
Fluid density in kg/m^3 (rho > 0). |
1000.0
|
Returns:
| Type | Description |
|---|---|
ndarray
|
Horizontal acceleration ASD in m / (s^2 * Hz^0.5). |
Compute gravitational acceleration ASD for vertical waterfall cross-sectional area fluctuations.
gragra.observables.water_waterfall_strain_asd
¶
water_waterfall_strain_asd(
frequency_hz: float | list | tuple | ndarray,
velocity_mps: float,
distance_m: float,
area_asd_m2_per_rt_hz: float | ndarray,
arm_length_m: float = 3000.0,
density_kg_m3: float = 1000.0,
) -> np.ndarray
Compute GW detector strain ASD for vertical waterfall.
Nishizawa (2021) Eq. (18).
Compute strain equivalent ASD for vertical waterfall Newtonian noise.
gragra.observables.water_channel_uncorrelated_asd
¶
water_channel_uncorrelated_asd(
distance_m: float,
width_m: float,
correlation_area_m2: float,
surface_asd_m_per_rt_hz: float | ndarray,
density_kg_m3: float = 1000.0,
) -> np.ndarray
Compute acceleration ASD for Model 1 (narrow-channel uncorrelated surface).
ASD_a(f) = G_SI * (C_a / G) * ASD_eta(f) = G_SI * rho * sqrt(A_cell * w) * sqrt(pi / (8 * H^3)) * ASD_eta(f)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
distance_m
|
float
|
Distance H from channel to mirror in meters (H > 0). |
required |
width_m
|
float
|
Channel width w in meters (w > 0). |
required |
correlation_area_m2
|
float
|
Correlation cell area A_cell in m^2 (A_cell > 0). |
required |
surface_asd_m_per_rt_hz
|
float or array_like
|
Surface displacement ASD in m / Hz^0.5 (non-negative). |
required |
density_kg_m3
|
float
|
Fluid density in kg/m^3 (rho > 0). |
1000.0
|
Returns:
| Type | Description |
|---|---|
ndarray
|
Acceleration ASD in m / (s^2 * Hz^0.5). |
Compute acceleration ASD from spatially uncorrelated surface cells in a narrow water channel.
gragra.observables.water_edge_step_fourier_amplitude
¶
water_edge_step_fourier_amplitude(
x0_m: float,
distance_m: float,
volume_m3: float,
frequency_hz: float | list | tuple | ndarray,
density_kg_m3: float = 1000.0,
) -> np.ndarray
Compute single-event acceleration Fourier amplitude for edge step.
Nishizawa (2021) Eq. (6).
Physical Meaning and Units: This is the Fourier transform magnitude |Delta a_x(Omega)| of a SINGLE deterministic Heaviside volume step event Delta V at coordinate x0: |Delta a_x(Omega)| = (G_SI * rho * Delta V * |x0| / (D^2 + x0^2)^(3/2) * (1 / (2pif))). The physical unit is acceleration * time = m / (s^2 * Hz) = m / s. Note: This is NOT a stationary ASD (which would have units m / (s^2 * Hz^0.5)). A stationary noise ASD requires a separate, physically defined stationary event model; this API describes one deterministic step only.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x0_m
|
float
|
Horizontal distance along channel to edge in meters (finite). |
required |
distance_m
|
float
|
Perpendicular distance D from channel to mirror in meters (D > 0). |
required |
volume_m3
|
float
|
Displaced volume Delta V in m^3 (Delta V > 0). |
required |
frequency_hz
|
float or array_like
|
Frequency f in Hz (f > 0). |
required |
density_kg_m3
|
float
|
Fluid density rho in kg/m^3 (rho > 0). |
1000.0
|
Returns:
| Type | Description |
|---|---|
ndarray
|
Single-event Fourier amplitude |Delta a_x(Omega)| in m / (s^2 * Hz) [m / s]. |
Compute physical deterministic acceleration Fourier amplitude spectrum for an edge step displacement.
gragra.observables.water_edge_step_strain_fourier_amplitude
¶
water_edge_step_strain_fourier_amplitude(
x0_m: float,
distance_m: float,
volume_m3: float,
frequency_hz: float | list | tuple | ndarray,
arm_length_m: float = 3000.0,
density_kg_m3: float = 1000.0,
) -> np.ndarray
Compute single-event strain Fourier spectral amplitude for channel edge step.
Nishizawa (2021) Eq. (7). |h(Omega)| = |Delta a_x(Omega)| / (Omega^2 * L_arm). Physical unit: 1 / Hz [s].
Compute deterministic strain Fourier amplitude spectrum for an edge step displacement.