physbound
v0.3.0Physical Layer Linter: validates RF and radar calculations against hard physical limits.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
rf_link_budget
Calculate a complete RF link budget using the Friis transmission equation. Computes free-space path loss (FSPL), received power, and validates antenna gains against the physical gain limit. The hard bound is G_max = max((pi*D/lambda)^2, (ka)^2 + 2ka) with k = 2*pi/lambda and a = D/2, i.e. the larger of the eta = 1 aperture value and Harrington's bound for an antenna enclosed in a sphere of diameter D (numerically the Harrington value, which converges to the aperture value for D >> lambda and matters for electrically small antennas, D < lambda); a claimed gain above it is rejected. A claimed g…
| Parameter | Type | Description |
|---|---|---|
distance_m * | number | Link distance in meters (must be > 0) |
frequency_hz * | number | Carrier frequency in Hz (must be > 0) |
rx_antenna_gain_dbi * | number | Receive antenna gain in dBi |
tx_antenna_gain_dbi * | number | Transmit antenna gain in dBi |
tx_power_dbm * | number | Transmit power in dBm |
aperture_efficiency | number | Efficiency for the typical-gain warning threshold (default: 0.55 for a parabolic dish; the hard limit is max(eta = 1 aperture value, Harrington bound)) |
rx_antenna_diameter_m | RX antenna diameter in meters (enables aperture check) | |
rx_losses_db | number | RX-side miscellaneous losses in dB (default: 0) |
tx_antenna_diameter_m | TX antenna diameter in meters (enables aperture check) | |
tx_losses_db | number | TX-side miscellaneous losses in dB (default: 0) |
shannon_hartley
Calculate Shannon-Hartley channel capacity and validate throughput claims. Computes the theoretical maximum data rate C = B * log2(1 + SNR) for an AWGN channel. If a claimed throughput is provided, validates it against this limit. Any claim exceeding the Shannon limit is a physical impossibility. Use this tool when you need to: - Calculate maximum achievable throughput for a given bandwidth and SNR - Validate whether a throughput claim is physically possible - Determine spectral efficiency limits - Check if a modulation/coding scheme claim is realistic Returns a PhysicalViolationError dict…
| Parameter | Type | Description |
|---|---|---|
bandwidth_hz * | number | Channel bandwidth in Hz (must be > 0) |
claimed_throughput_bps | Optional throughput claim to validate in bits/sec | |
snr_db | Signal-to-noise ratio in dB. Provide this OR snr_linear. | |
snr_linear | Signal-to-noise ratio (linear, not dB). Provide this OR snr_db. |
noise_floor
Calculate thermal noise power (kTB), cascaded noise figure, and receiver sensitivity. Computes the fundamental thermal noise floor N = k_B * T * B, which is -174 dBm/Hz at the IEEE standard temperature of 290K. Optionally cascades multiple amplifier/filter stages using the Friis noise figure formula F_total = F_1 + (F_2-1)/G_1 + (F_3-1)/(G_1*G_2) + ..., the receiver's effective input noise temperature T_e = T_0*(F-1) with T_0 = 290 K (the IEEE reference at which noise figure is defined, independent of temperature_k), and receiver sensitivity S_min = k_B*(T_A + T_e)*B*SNR_required, which reduc…
| Parameter | Type | Description |
|---|---|---|
bandwidth_hz * | number | Receiver bandwidth in Hz (must be > 0) |
required_snr_db | Required SNR in dB for sensitivity calculation | |
stages | Optional list of stages, each with 'gain_db' and 'noise_figure_db' keys | |
temperature_k | number | Source/antenna noise temperature T_A in Kelvin used for the kTB floor (default: 290K, must be >= 0) |
radar_range
Calculate maximum monostatic radar detection range and validate range claims. Computes the radar range equation R_max = [P_t * G^2 * lambda^2 * sigma / ((4*pi)^3 * S_min * L)]^(1/4) for a monostatic radar (same antenna for transmit and receive). Validates that claimed detection ranges do not exceed the theoretical maximum. Catches the common fourth-root fallacy where LLMs incorrectly state that doubling transmit power doubles radar range (it only increases range by a factor of 2^(1/4) = 1.19x). Use this tool when you need to: - Calculate the maximum detection range of a radar system - Valida…
| Parameter | Type | Description |
|---|---|---|
antenna_gain_dbi * | number | Antenna gain in dBi (same antenna for TX and RX) |
frequency_hz * | number | Operating frequency in Hz (must be > 0) |
peak_power_w * | number | Peak transmit power in watts (must be > 0) |
rcs_m2 * | number | Radar cross section of the target in m^2 (must be > 0) |
claimed_range_m | Optional claimed detection range to validate against R_max (meters) | |
losses_db | number | Total system losses in dB (default: 0) |
min_snr_db | number | Minimum required SNR in dB for detection (default: 13 dB, Swerling I) |
noise_bandwidth_hz | number | Receiver noise bandwidth in Hz (default: 1 MHz) |
num_pulses | integer | Number of integrated pulses for integration gain (default: 1) |
system_noise_temp_k | number | System noise temperature in Kelvin (default: 290K) |
antenna_gain
Calculate antenna aperture gain limits, beamwidth, far-field distance; validate gain claims. For a circular aperture of diameter D (or an aperture of area A, converted to the equivalent circular diameter D = sqrt(4A/pi)) computes the planar-aperture directivity D_0 = 4*pi*A/lambda^2 = (pi*D/lambda)^2 (aperture efficiency eta = 1), Harrington's bound D_max = (ka)^2 + 2ka (k = 2*pi/lambda, a = D/2) for any antenna enclosed in a sphere of diameter D, the hard physical gain limit max(D_0, D_max) (numerically D_max; equal to D_0 to within 0.1 dB for D >> lambda, but several dB higher for electrica…
| Parameter | Type | Description |
|---|---|---|
frequency_hz * | number | Operating frequency in Hz (must be > 0) |
aperture_area_m2 | Physical aperture area in m^2. Provide this OR diameter_m. | |
aperture_efficiency | number | Efficiency for the typical gain / warning threshold (default: 0.55 for a parabolic dish; the hard limit is max(eta = 1 aperture value, Harrington bound)) |
claimed_gain_dbi | Optional antenna gain claim to validate in dBi | |
diameter_m | Circular aperture diameter in meters. Provide this OR aperture_area_m2. |
radar_ambiguity
Calculate pulse-Doppler radar ambiguity limits and validate range/velocity claims. Computes the maximum unambiguous range R_ua = c / (2 * PRF), the first blind speed lambda * PRF / 2, the unambiguous velocity v_ua = +/- lambda * PRF / 4 (Doppler within +/- PRF/2), the Doppler shift f_d = 2 * v_r / lambda of a target (closing velocity positive) and whether it aliases, and — when a pulse width is given — the duty cycle, eclipsing minimum range c * tau / 2 and the range resolution c * tau / 2 (or c / (2 B) when a compressed bandwidth is supplied). Reports the range-Doppler dilemma invariant…
| Parameter | Type | Description |
|---|---|---|
frequency_hz * | number | Carrier frequency in Hz (must be > 0) |
prf_hz * | number | Pulse repetition frequency in Hz (must be > 0) |
bandwidth_hz | Optional compressed bandwidth in Hz; sets the resolution limit to c/(2B) | |
claimed_range_resolution_m | Optional claimed range resolution to validate (m) | |
claimed_unambiguous_range_m | Optional claimed unambiguous range to validate (m) | |
claimed_unambiguous_velocity_m_s | Optional claimed unambiguous velocity to validate (m/s) | |
pulse_width_s | Optional transmitted pulse width tau in seconds (must be > 0) | |
target_velocity_m_s | Optional target radial velocity in m/s (closing positive) |