Surface-Forcing

  • BoundaryFluxes model ocean mom6

    Stage-2 implementation of the MOM6 surface boundary fluxes applied in the diabatic column (applyBoundaryFluxesInOut, MOM_diabatic_aux.F90:702-1483 of the instrumented fork stage1/EqESM-cesm-mom6; run configuration C_JRA_t62_mom6_inst: AGGREGATE_FW_FORCING=True so netMassIn == 0 (the net mass change of the column is netMassOut alone), all unit rescale factors 1.0, dt = 3600 s). The component applies the net surface mass, heat and salt fluxes of a step to the surface layer (step A, F90:1039-1071 with netMassIn = 0, and step B, F90:1109-1146 with fractionOfForcing = 1 in the surface layer and the running remainders vanishing exactly -- every traced row has h_1 ~ 2.5 m well above minimum_forcing_depth, so all forcing is consumed by layer 1, verified on all 156 rows: h, T and S change only in layer 1, and only by the fluxes), with the heat content of the mass exchange added via dThickness*T*EnthalpyConst (F90:1141); the reference run has EnthalpyConst = 0 (F90:845-846) because the CESM coupler provides heat_content_evap. The penetrating shortwave is applied by absorbRemainingSW (step C, F90:1355-1362, MOM_opacity.F90:602-885): the component consumes the per-layer SW heating dT and the bottom leftover of the ShortwaveAbsorption component (mom6_shortwave.esm; here sourced from the mom6_sw_abs.csv dump columns dT_k and pen_sw_rem_n(75)). The column budgets are the plain per-layer sums dMass_col = sum_k (h_after_k - h_before_k) == netMassIn + netMassOut, dSalt_col = sum_k (h_after_k*S_after_k - h_before_k*S_before_k) == netSalt, and dHeat_col = sum_k (h_after_k*T_after_k - h_before_k*T_before_k) == netHeat + sum_n penSW_bnd(n) - leftover (netHeat already contains the non-penetrating SW and excludes the heat content of the outgoing mass; the dump rows satisfy these to rel 1e-9, the tolerance of the stage-1 validator stage1/analysis/validate_mom6_w2.py, because the guarded per-layer updates below the surface layer round T/S by ~1 ulp on ~10 of 74 layers per row). The heat_residual variable pins the consistency of the two dumps against the EnthalpyConst = 0 configuration: with EnthalpyConst = 0 it reduces to sum_k h_after_k*dT_k - (penSW_total - leftover) == 0, i.e. the shortwave dump's per-layer heating dT (mom6_sw_abs.csv) must reproduce the bflux dump's per-band totals penSW_bnd and leftover (mom6_bflux.csv) once the layer-1 flux law holds; the dThickness*T_before_1*EnthalpyConst term it also carries (F90:1141) pins EnthalpyConst = 0. The general multi-layer distribution of the fluxes (fractionOfForcing = min(1, h_k/max(H_subroundoff, minimum_forcing_depth - netMassOut_rem)), the evap_CFL_limit branch and the dSalt_frac_max floor, F90:1117-1132) is a sequential data-dependent scan that no traced row exercises (fractionOfForcing = 1 in layer 1, 0 below) and that is not expressible as an algebraic law; it is listed as a gap in README.md, as are the brine-plume insertion (DO_BRINE_PLUME=False in this run) and the heat-content-of-rain/runoff terms of extractFluxes1d (MOM_forcing_type.F90:464-961), which is not part of this component (its outputs netMassIn/netMassOut/netHeat/netSalt/penSW_bnd are the component's inputs).