The Coupled Marine Engine Suite: Version 2.0 Technical Transition and Seawater Chemistry Calibration
The Coupled Marine Engine Suite (Version 2.0) Description This release marks the architectural transition of The Coupled Marine Engine Suite from disconnected physical and chemical prototypes into a unified, 17-state ordinary differential equation (ODE) integration engine. The suite is designed to expose and quantify systemic boundary accounting errors in global atmospheric trace gas inversion frameworks by dynamically modeling air-sea flux, boundary layer chemistry, and marine biological feedback loops. The core development of Version 2.0 resolves a significant physical-chemical discrepancy in aqueous halocarbon loss calculations by implementing a salinity-aware seawater thermodynamic calibration. The software engineering workflow utilized an asymmetric multi-agent AI framework (OpenAI Codex and Google Gemini Pro) to accelerate structural code scaffolding, dependency configuration, and syntax auditing, while the human principal investigator retained absolute scientific sovereignty, boundary constraint design, and environment validation. The verification below corresponds directly to the main branch at code snapshot 39a4fe7. Key Updates & Overhauls in v2.0 1. Thermodynamic Seawater Calibration (Commit 39a4fe7) Legacy Discrepancy Resolved: The legacy prototype calculated base-catalyzed bromoform (CHBr₃) hydrolysis using a naive, pure-water ion product (K_w(T)/[H⁺]), which omitted the massive chemical influence of ionic strength and salinity on apparent hydroxide ion activity ([OH⁻]). Millero Formulation Integration: Version 2.0 replaces the freshwater baseline with Millero’s empirical seawater ion-product formulation (K_w*) evaluated on the Total pH Scale (pH_total): ln(K_w*) = 148.9652 - (13847.26 / T) - 23.6521 ln(T) + [ (118.67 / T) - 5.977 + 1.0495 ln(T) ] × √S - 0.01615 S Volumetric Mass Corrections: Implements exact mass-to-volume conversions utilizing calculated local seawater density (ρ_sw) to align the apparent chemical sink directly with the physical transport dimensions. Acidification Sensitivity: Verified to reflect a precise 60.2% suppression in absolute bromoform hydrolysis when shifting the total pH from 8.1 down to 7.7 (bounded within 0.05 percentage points), confirming that the model's relative response to ocean acidification remains locked. 2. Multi-Application Directory Structure The suite is explicitly modularized into three turnkey Python packages with decoupled execution environments to prevent package dependency drift: CFC/ (The Physical Layer): A three-reservoir transport framework (troposphere, marine mixed-layer, and deep ocean) tracking physical air-sea flux sensitivities under historical 2016–2025 SST anomalies. Halogens/ (The Chemical Layer): A stiff, six-species marine boundary-layer gas-phase radical chemistry engine driven by implicit Radau solvers and constrained by a closed active bromine budget via a terminal HOBr deposition sink. Coupled_Engine/ (The Unified Engine): The integrated 17-state ODE system fusing physical transport, biological source modeling (chlorophyll-a-scaled biological CHBr₃ production), and haline stratification damping parameterizations. 3. Expanded Verification and Regression Infrastructure 29 Unit Tests Passed: Features a rigorous test suite spanning all three application environments (14 in Coupled_Engine/tests/, 11 in CFC/tests/, and 4 in Halogens/tests/) maintaining a 0% build failure rate. Physical Boundary Safeguards: Programmatic test blocks natively reject temperature and salinity values outside the empirical seawater equation domain. Deterministic Fallbacks: The engine logs fallback indicators in its final summary files when external data assets are missing, preventing silent data-driven assumptions during runtime. Operational Diagnostics & Outputs Running the unified model execution pipeline (coupled-run-model) executes matched-counterfactual scenarios and generates a reviewable research bundle inside the results/ directory: cfc_inversion_discrepancy_matrix.csv: Logs cumulative mass up-take discrepancies driven by dynamic haline stratification. methane_lifetime_distortion_matrix.csv: Quantifies local atmospheric hydroxyl radical drift and the associated methane-lifetime diagnostic. climate_accounting_error_matrix.csv: Joins the CFC inversion and methane-lifetime diagnostics directly into the definitive Paper 3 climate-accounting matrix. unified_state_trajectory.csv: Contains the high-resolution, timestamped evolution of all 17 states across the integration run. summary.md / parameters.csv: Details run parameters and explicit provenance, highlighting fallback deterministic forcing when external files are missing. Technical Specifications & Repository Metadata Language: Python 3.10+ Core Dependencies: scipy (Implicit Radau ODE Solver), numpy, matplotlib License: Open-Source Scientific Commons (MIT / Academic Permissive) Development State: Production-Ready, Peer-Review Calibrated Source Repository: github.com/BCaris-RN/in_your_dreams_2 (Branch: main | Snapshot: 39a4fe7)
Authors
- Brandon Caris (ORCID: https://orcid.org/0009-0007-5806-3548)
Institutions
- Open Source Drug Discovery (IN)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-07-18
- DOI
- https://doi.org/10.5281/zenodo.20804279
- Primary Topic
- Oil, Gas, and Environmental Issues
- Type
- preprint