forked from MPAS-Dev/MPAS-Model
-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
The current tendency terms are decomposed into various terms that arise from a range of physical processes, e.g.
MPAS-Model/src/core_ocean/shared/mpas_ocn_adcReconstruct.F
Lines 565 to 569 in 5dc8d6e
| w2tend1(k,iCell) = -wumd(k,iCell)**2.0_RKIND*( & | |
| Entrainment(k,iCell) + Detrainment(k,iCell)) | |
| w2tend2(k,iCell) = (McMid(k-1,iCell)*(1.0_RKIND - 2.0_RKIND* & | |
| areaFractionMid(k-1,iCell))*wumdMid(k-1,iCell)**2.0 - McMid(k,iCell)* & | |
| (1.0_RKIND - 2.0_RKIND*areaFractionMid(k,iCell))*wumdMid(k,iCell)**2.0) / dzmid |
Because these budgets involve several closure assumptions, the physical meaning of each of these tendency terms is not always obvious. We should comment the code to make it clear which physical processes are encompassed in different tendency terms. This will be based on @qingli411's commented code.
For future reference: changing the tendency terms, and adding them as save-able output variables requires the following steps:
- Add the new tendency term in main ADC code:
w2tend1(k,iCell) = -wumd(k,iCell)**2.0_RKIND*( & - Add the new term in the ADC registry in 2 places:
MPAS-Model/src/core_ocean/adc_mixing/Registry_adc_mixing_fields_opts.xml
Lines 269 to 270 in 103e68e
<var name="w2tend1" type="real" dimensions="nVertLevelsP1 nCells Time" units="m^2/s^3" description="entrainment production term -- similar to dissipation" <var name="w2tend2"/> - Add the new term to
mpas_ocn_turbulence.Fin various places. - Add the new term to
mpas_ocn_vmix_adc.Ffor deallocation:w2tend1, w2tend2, w2tend3, w2tend4, & - If the new term is an output variable, add it to the
streams.oceanfile of theforwardrun directory
Metadata
Metadata
Assignees
Labels
No labels