Temperature
- IceTemperatureColumn
model
cryosphere
cism
Stage-2 implementation of the CISM prognostic ice temperature step (stage 2 of the EqESM project; CISM = cismwrap_3_00_002 / cism_main_3.00.002 as built in CESM cesm3.0-alphabranch, reference run T1850Gg/f09_g17_gris20, whichtemp = TEMP_PROGNOSTIC): the vertical heat equation rhoi*shci*dT/dt = d/dz(coni*dT/dz) + rhoi*shci*Phi on CISM's sigma grid, lowered by the EarthSciDiscretizations rule varcoeff_face_laplacian_lev_value_bc (${ESD_ROOT}/grids/column_nonuniform_1d/rules/, the exact dups stencil of glissade_temperature_matrix_elements, glissade_therm.F90:1324-1507, contributed to ESD from this file; the CISM sigma column maps onto the ESD column grid positionally - the CISM layer faces are the grid interfaces ze in metres, zc[l] = thck*sigma_node[l+1] and dz[l] = thck*dsigma_cv[l+1], z_sfc = 0 at the ice surface and z_top = thck at the bed, and the boundary values u_sfc/u_top are the surface/bed algebraic nodes, so no array reversal is needed; the scalar coni enters as the interface broadcast coni_face). State: temp on the UPN-1 INTERIOR temperature nodes (index set lev = the CISM layer midpoints, the dump's temp_001..010 columns) with d(temp)/dt = dTdt. The surface and bed nodes are ALGEBRAIC in CISM, not diffusion rows: the matrix rows 1 and upn+1 are the surface Dirichlet pin temp(0) = min(0, artm) (F90:843, 1405-1408) and the basal flux-balance / pressure-melting-point row (frozen: temp(upn) - temp(upn-1) = (bfricflx + bhydroflx - bheatflx)*dsigbot*thck/coni, F90:1473-1476; thawed: temp(upn) = bpmp, F90:1497-1504). They are carried as the algebraic unknowns u_sfc and u_top, and enter the interior stencil as the boundary values through the rule's free-name contract - so the boundary laws FEED BACK into the interior operator (the stencil at the nodes adjacent to the boundaries reads u_sfc/u_top, not state rows). The pointwise laws of the step: u_sfc = min(0, artm) (F90:843); the pressure melting point bpmp/pmptemp = -rhoi*grav*pmlt*depth (the standard Clapeyron law, imported by reference from EqIce as pressure_melting_temperature applied to overburden_pressure with the CISM constants T_melting = 0 degC and beta_Clausius_Clapeyron = pmlt bound at the call sites, F90:2163-2174, 2178-2192); the basal temperature and melt of the frozen/thawed bed rows and of glissade_basal_melting_ground (cism_basal_melt_rate / cism_basal_freeze_on / cism_basal_melt_cap, F90:1930-2012), with the flux balance bflx_mlt and the source flux bflx_src named once and shared between the melt rate and the frozen-row law; and the internal melt cap of glissade_basal_melting_internal (melt_internal = the whole-column integral of the layer melt-energy density rhoi*shci*max(0, temp - pmptemp) over the CISM layer thickness measure, divided by rhoi*lhci*dttem, F90:2127-2155; the paired temperature reset temp -> pmptemp is a post-solve state mutation, documented in README.md, not transcribed). The thin-ice bypass (ice_mask = 0 where thck <= thklim_temp = 1 m; the dump's ice_mask column): the column skips the solve and is set to min(0, artm) on all nodes, and the basal outputs are not computed (F90:1205) - the pmp and the basal laws are gated by ice_mask == 1. The operator is pinned INSTANTANEOUSLY at the exit state: since the CISM step is one backward-Euler solve of the tridiagonal system, the exact identity (T_exit - T_entry)/dttem = L*T_exit + Phi holds for the interior rows (the dump round-trips at 1e-13..6e-9 relative; the harness integrators cannot reproduce one exact backward-Euler step of this stiff relaxation, so the entry->exit map itself is documented in README.md, not integrated), and dTdt at the exit state is asserted against (T_exit - T_entry)/dttem with the ICs set to the exit profile and the dumped dissip.