The current tendency terms are decomposed into various terms that arise from a range of physical processes, e.g.
|
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:
|
<var name="w2tend1" type="real" dimensions="nVertLevelsP1 nCells Time" units="m^2/s^3" |
|
description="entrainment production term -- similar to dissipation" |
- Add the new term to
mpas_ocn_turbulence.F in various places.
- Add the new term to
mpas_ocn_vmix_adc.F for deallocation:
|
w2tend1, w2tend2, w2tend3, w2tend4, & |
- If the new term is an output variable, add it to the
streams.ocean file of the forward run directory
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
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:
MPAS-Model/src/core_ocean/shared/mpas_ocn_adcReconstruct.F
Line 566 in 103e68e
MPAS-Model/src/core_ocean/adc_mixing/Registry_adc_mixing_fields_opts.xml
Lines 269 to 270 in 103e68e
MPAS-Model/src/core_ocean/adc_mixing/Registry_adc_mixing_fields_opts.xml
Line 576 in 103e68e
mpas_ocn_turbulence.Fin various places.mpas_ocn_vmix_adc.Ffor deallocation:MPAS-Model/src/core_ocean/shared/mpas_ocn_vmix_adc.F
Line 531 in 103e68e
streams.oceanfile of theforwardrun directory