Back to home page

MITgcm

 
 

    


Warning, /verification/advect_xz/input.linFS/notes.conserve_TS.txt is written in an unsupported language. File is not indexed.

view on githubraw file Latest commit 4013270f on 2026-11-20 17:40:17 UTC
4013270f16 Jean*0001 Notes related to this secondary set-up (input.linFS/, tr_run.linFS/):
                0002  - make the top-level grid-cell dry (for testing purpose) by using/setting:
                0003    | topoFile='top_boundary.bin',
                0004    which requires a second set of binary input files
                0005  - use a prescribed divergent flow field (Udiv.bin), similar to input.nlfs
                0006 
                0007 To generate input files, un-comment "zT" (top Z position) setting in input/gendata.m :
                0008 > cd advect_xz/input.linFS
                0009 > sed 's/^% zT=/  zT=/' ../input/gendata.m >  gendata.m
                0010 And generate second set of binary input files using this locally updated gendata.m
                0011   >> gendata
                0012 
                0013 To check tracer conservation in advect_xz/input.linFS set-up, and in general when
                0014 - using Linear FreeSurf
                0015 - using or not Adams-Bashforth (used here for Salinity)
                0016 - without temperature/salt/fresh-water forcing
                0017 
                0018 We use stats-diags output (file: dynStDiag) to get global mean T and S values
                0019 every 100 mn (negative stat_freq(1)= -6000., for snap-shot stats-diags); this allows
                0020 to derive the total tendency (increment between 2 snap-shot divided by time-interval).
                0021 To check the conservation, we need the time-averaged surface loss/gain of tracer
                0022 due to the linear free-surface formulation. We use a second stats-diags output
                0023 (file: flxStDiag, positive stat_freq(2)=  6000., for time-averaged stats-diags)
                0024 with diagnostics 'WTHMASS ' and 'WSLTMASS', to get this average surface flux, here
                0025 at k=2 (kSrf in grph_StD_ws.m).
                0026 
                0027 Instructions:
                0028   From a standard run with input.linFS parameter files:
                0029   > cd advect_xz/tr_run.linFS
                0030 
                0031   Get a local copy of 2 utility scripts:
                0032   > cp ../../../utils/scripts/extract_StD .
                0033   > cp ../../../utils/matlab/read_StD.m .
                0034 
                0035   Split multi-variable stats-diags file into variable specific files:
                0036   > ./extract_StD dynStDiag.0000000000.txt dynStD std
                0037   > ./extract_StD flxStDiag.0000000000.txt flxStD std
                0038 
                0039   Plot global stats evolution and derived tendency using matlab:
                0040   >> grph_StD_ws
                0041 
                0042 figure-3, top-panel: "Avr T" shows the evolution of global averaged (potential) Temperature.
                0043 
                0044 figure-4, top-panel: "Avr S" shows the evolution of global averaged Salinity.
                0045 
                0046 figure-9, shows derived Temp tendency: Total, from surface flux, and in bottom panel
                0047   the residual (Total + Surf-Flux)
                0048 figure-10, shows derived Salt tendency: Total, from surface flux, from Adams-Bashforth,
                0049   and in bottom panel the residual (Total + Surf-Flux - gAB)
                0050