Skip to content

Commit

Permalink
MOM6: +Refactor MOM_opacity to replace hard-coded params
Browse files Browse the repository at this point in the history
- NOAA-GFDL/MOM6@8249510a2 +Refactor MOM_opacity to replace hard-coded params
  • Loading branch information
mom6bot authored and Hallberg-NOAA committed Jan 14, 2025
1 parent 67d4d82 commit 200ce8e
Show file tree
Hide file tree
Showing 21 changed files with 241 additions and 1 deletion.
12 changes: 12 additions & 0 deletions coupled_AM2_LM3_SIS2/AM2_SIS2_MOM6i_1deg/MOM_parameter_doc.all
Original file line number Diff line number Diff line change
Expand Up @@ -1978,6 +1978,18 @@ PEN_SW_FLUX_ABSORB = 2.5E-11 ! [degC m s-1] default = 2.5E-11
PEN_SW_ABSORB_MINTHICK = 0.001 ! [m] default = 0.001
! A thickness that is used to absorb the remaining penetrating shortwave heat
! flux when it drops below PEN_SW_FLUX_ABSORB.
OPACITY_VALUES_MANIZZA = 0.0232, 0.074, 0.225, 0.037, 2.86, 0.0 ! [m-1] default = 0.0232, 0.074, 0.225, 0.037, 2.86, 0.0
! Pairs of opacity coefficients for blue, red and near-infrared radiation with
! parameterizations following the functional form from Manizza et al., GRL 2005,
! namely in the form opacity = coef_1 + coef_2 * chl**pow for each band.
! Although coefficients are set for 3 bands, more or less bands may actually be
! used, with extra bands following the same properties as band 3.
CHOROPHYLL_POWER_MANIZZA = 0.674, 0.629, 0.0 ! [nondim] default = 0.674, 0.629, 0.0
! Powers of chlorophyll for blue, red and near-infrared radiation bands in
! expressions for opacity of the form opacity = coef_1 + coef_2 * chl**pow.
OPACITY_BAND_WAVELENGTHS = 0.0, 550.0, 700.0, 2800.0 ! [nm] default = 0.0, 550.0, 700.0, 2800.0
! The bounding wavelengths for the various bands of shortwave radiation, with
! defaults that depend on the setting for OPACITY_SCHEME.
OPACITY_LAND_VALUE = 10.0 ! [m-1] default = 10.0
! The value to use for opacity over land. The default is 10 m-1 - a value for
! muddy water.
Expand Down
12 changes: 12 additions & 0 deletions coupled_AM2_LM3_SIS2/Concurrent_ice_1deg/MOM_parameter_doc.all
Original file line number Diff line number Diff line change
Expand Up @@ -1978,6 +1978,18 @@ PEN_SW_FLUX_ABSORB = 2.5E-11 ! [degC m s-1] default = 2.5E-11
PEN_SW_ABSORB_MINTHICK = 1.0 ! [m] default = 1.0
! A thickness that is used to absorb the remaining penetrating shortwave heat
! flux when it drops below PEN_SW_FLUX_ABSORB.
OPACITY_VALUES_MANIZZA = 0.0232, 0.074, 0.225, 0.037, 2.86, 0.0 ! [m-1] default = 0.0232, 0.074, 0.225, 0.037, 2.86, 0.0
! Pairs of opacity coefficients for blue, red and near-infrared radiation with
! parameterizations following the functional form from Manizza et al., GRL 2005,
! namely in the form opacity = coef_1 + coef_2 * chl**pow for each band.
! Although coefficients are set for 3 bands, more or less bands may actually be
! used, with extra bands following the same properties as band 3.
CHOROPHYLL_POWER_MANIZZA = 0.674, 0.629, 0.0 ! [nondim] default = 0.674, 0.629, 0.0
! Powers of chlorophyll for blue, red and near-infrared radiation bands in
! expressions for opacity of the form opacity = coef_1 + coef_2 * chl**pow.
OPACITY_BAND_WAVELENGTHS = 0.0, 550.0, 700.0, 2800.0 ! [nm] default = 0.0, 550.0, 700.0, 2800.0
! The bounding wavelengths for the various bands of shortwave radiation, with
! defaults that depend on the setting for OPACITY_SCHEME.
OPACITY_LAND_VALUE = 10.0 ! [m-1] default = 10.0
! The value to use for opacity over land. The default is 10 m-1 - a value for
! muddy water.
Expand Down
12 changes: 12 additions & 0 deletions coupled_AM2_LM3_SIS2/Intersperse_ice_1deg/MOM_parameter_doc.all
Original file line number Diff line number Diff line change
Expand Up @@ -1978,6 +1978,18 @@ PEN_SW_FLUX_ABSORB = 2.5E-11 ! [degC m s-1] default = 2.5E-11
PEN_SW_ABSORB_MINTHICK = 1.0 ! [m] default = 1.0
! A thickness that is used to absorb the remaining penetrating shortwave heat
! flux when it drops below PEN_SW_FLUX_ABSORB.
OPACITY_VALUES_MANIZZA = 0.0232, 0.074, 0.225, 0.037, 2.86, 0.0 ! [m-1] default = 0.0232, 0.074, 0.225, 0.037, 2.86, 0.0
! Pairs of opacity coefficients for blue, red and near-infrared radiation with
! parameterizations following the functional form from Manizza et al., GRL 2005,
! namely in the form opacity = coef_1 + coef_2 * chl**pow for each band.
! Although coefficients are set for 3 bands, more or less bands may actually be
! used, with extra bands following the same properties as band 3.
CHOROPHYLL_POWER_MANIZZA = 0.674, 0.629, 0.0 ! [nondim] default = 0.674, 0.629, 0.0
! Powers of chlorophyll for blue, red and near-infrared radiation bands in
! expressions for opacity of the form opacity = coef_1 + coef_2 * chl**pow.
OPACITY_BAND_WAVELENGTHS = 0.0, 550.0, 700.0, 2800.0 ! [nm] default = 0.0, 550.0, 700.0, 2800.0
! The bounding wavelengths for the various bands of shortwave radiation, with
! defaults that depend on the setting for OPACITY_SCHEME.
OPACITY_LAND_VALUE = 10.0 ! [m-1] default = 10.0
! The value to use for opacity over land. The default is 10 m-1 - a value for
! muddy water.
Expand Down
12 changes: 12 additions & 0 deletions ice_ocean_SIS2/Baltic/MOM_parameter_doc.all
Original file line number Diff line number Diff line change
Expand Up @@ -1978,6 +1978,18 @@ PEN_SW_FLUX_ABSORB = 2.5E-11 ! [degC m s-1] default = 2.5E-11
PEN_SW_ABSORB_MINTHICK = 1.0 ! [m] default = 1.0
! A thickness that is used to absorb the remaining penetrating shortwave heat
! flux when it drops below PEN_SW_FLUX_ABSORB.
OPACITY_VALUES_MANIZZA = 0.0232, 0.074, 0.225, 0.037, 2.86, 0.0 ! [m-1] default = 0.0232, 0.074, 0.225, 0.037, 2.86, 0.0
! Pairs of opacity coefficients for blue, red and near-infrared radiation with
! parameterizations following the functional form from Manizza et al., GRL 2005,
! namely in the form opacity = coef_1 + coef_2 * chl**pow for each band.
! Although coefficients are set for 3 bands, more or less bands may actually be
! used, with extra bands following the same properties as band 3.
CHOROPHYLL_POWER_MANIZZA = 0.674, 0.629, 0.0 ! [nondim] default = 0.674, 0.629, 0.0
! Powers of chlorophyll for blue, red and near-infrared radiation bands in
! expressions for opacity of the form opacity = coef_1 + coef_2 * chl**pow.
OPACITY_BAND_WAVELENGTHS = 0.0, 550.0, 700.0, 2800.0 ! [nm] default = 0.0, 550.0, 700.0, 2800.0
! The bounding wavelengths for the various bands of shortwave radiation, with
! defaults that depend on the setting for OPACITY_SCHEME.
OPACITY_LAND_VALUE = 10.0 ! [m-1] default = 10.0
! The value to use for opacity over land. The default is 10 m-1 - a value for
! muddy water.
Expand Down
12 changes: 12 additions & 0 deletions ice_ocean_SIS2/Baltic_ALE_z_offline_tracers/MOM_parameter_doc.all
Original file line number Diff line number Diff line change
Expand Up @@ -2241,6 +2241,18 @@ PEN_SW_FLUX_ABSORB = 2.5E-11 ! [degC m s-1] default = 2.5E-11
PEN_SW_ABSORB_MINTHICK = 1.0 ! [m] default = 1.0
! A thickness that is used to absorb the remaining penetrating shortwave heat
! flux when it drops below PEN_SW_FLUX_ABSORB.
OPACITY_VALUES_MANIZZA = 0.0232, 0.074, 0.225, 0.037, 2.86, 0.0 ! [m-1] default = 0.0232, 0.074, 0.225, 0.037, 2.86, 0.0
! Pairs of opacity coefficients for blue, red and near-infrared radiation with
! parameterizations following the functional form from Manizza et al., GRL 2005,
! namely in the form opacity = coef_1 + coef_2 * chl**pow for each band.
! Although coefficients are set for 3 bands, more or less bands may actually be
! used, with extra bands following the same properties as band 3.
CHOROPHYLL_POWER_MANIZZA = 0.674, 0.629, 0.0 ! [nondim] default = 0.674, 0.629, 0.0
! Powers of chlorophyll for blue, red and near-infrared radiation bands in
! expressions for opacity of the form opacity = coef_1 + coef_2 * chl**pow.
OPACITY_BAND_WAVELENGTHS = 0.0, 550.0, 700.0, 2800.0 ! [nm] default = 0.0, 550.0, 700.0, 2800.0
! The bounding wavelengths for the various bands of shortwave radiation, with
! defaults that depend on the setting for OPACITY_SCHEME.
OPACITY_LAND_VALUE = 10.0 ! [m-1] default = 10.0
! The value to use for opacity over land. The default is 10 m-1 - a value for
! muddy water.
Expand Down
12 changes: 12 additions & 0 deletions ice_ocean_SIS2/Baltic_OM4_025/MOM_parameter_doc.all
Original file line number Diff line number Diff line change
Expand Up @@ -2309,6 +2309,18 @@ PEN_SW_FLUX_ABSORB = 2.5E-11 ! [degC m s-1] default = 2.5E-11
PEN_SW_ABSORB_MINTHICK = 0.001 ! [m] default = 0.001
! A thickness that is used to absorb the remaining penetrating shortwave heat
! flux when it drops below PEN_SW_FLUX_ABSORB.
OPACITY_VALUES_MANIZZA = 0.0232, 0.074, 0.225, 0.037, 2.86, 0.0 ! [m-1] default = 0.0232, 0.074, 0.225, 0.037, 2.86, 0.0
! Pairs of opacity coefficients for blue, red and near-infrared radiation with
! parameterizations following the functional form from Manizza et al., GRL 2005,
! namely in the form opacity = coef_1 + coef_2 * chl**pow for each band.
! Although coefficients are set for 3 bands, more or less bands may actually be
! used, with extra bands following the same properties as band 3.
CHOROPHYLL_POWER_MANIZZA = 0.674, 0.629, 0.0 ! [nondim] default = 0.674, 0.629, 0.0
! Powers of chlorophyll for blue, red and near-infrared radiation bands in
! expressions for opacity of the form opacity = coef_1 + coef_2 * chl**pow.
OPACITY_BAND_WAVELENGTHS = 0.0, 550.0, 700.0, 2800.0 ! [nm] default = 0.0, 550.0, 700.0, 2800.0
! The bounding wavelengths for the various bands of shortwave radiation, with
! defaults that depend on the setting for OPACITY_SCHEME.
OPACITY_LAND_VALUE = 10.0 ! [m-1] default = 10.0
! The value to use for opacity over land. The default is 10 m-1 - a value for
! muddy water.
Expand Down
12 changes: 12 additions & 0 deletions ice_ocean_SIS2/Baltic_OM4_05/MOM_parameter_doc.all
Original file line number Diff line number Diff line change
Expand Up @@ -2328,6 +2328,18 @@ PEN_SW_FLUX_ABSORB = 2.5E-11 ! [degC m s-1] default = 2.5E-11
PEN_SW_ABSORB_MINTHICK = 0.001 ! [m] default = 0.001
! A thickness that is used to absorb the remaining penetrating shortwave heat
! flux when it drops below PEN_SW_FLUX_ABSORB.
OPACITY_VALUES_MANIZZA = 0.0232, 0.074, 0.225, 0.037, 2.86, 0.0 ! [m-1] default = 0.0232, 0.074, 0.225, 0.037, 2.86, 0.0
! Pairs of opacity coefficients for blue, red and near-infrared radiation with
! parameterizations following the functional form from Manizza et al., GRL 2005,
! namely in the form opacity = coef_1 + coef_2 * chl**pow for each band.
! Although coefficients are set for 3 bands, more or less bands may actually be
! used, with extra bands following the same properties as band 3.
CHOROPHYLL_POWER_MANIZZA = 0.674, 0.629, 0.0 ! [nondim] default = 0.674, 0.629, 0.0
! Powers of chlorophyll for blue, red and near-infrared radiation bands in
! expressions for opacity of the form opacity = coef_1 + coef_2 * chl**pow.
OPACITY_BAND_WAVELENGTHS = 0.0, 550.0, 700.0, 2800.0 ! [nm] default = 0.0, 550.0, 700.0, 2800.0
! The bounding wavelengths for the various bands of shortwave radiation, with
! defaults that depend on the setting for OPACITY_SCHEME.
OPACITY_LAND_VALUE = 10.0 ! [m-1] default = 10.0
! The value to use for opacity over land. The default is 10 m-1 - a value for
! muddy water.
Expand Down
12 changes: 12 additions & 0 deletions ice_ocean_SIS2/OM4_025/MOM_parameter_doc.all
Original file line number Diff line number Diff line change
Expand Up @@ -2309,6 +2309,18 @@ PEN_SW_FLUX_ABSORB = 2.5E-11 ! [degC m s-1] default = 2.5E-11
PEN_SW_ABSORB_MINTHICK = 0.001 ! [m] default = 0.001
! A thickness that is used to absorb the remaining penetrating shortwave heat
! flux when it drops below PEN_SW_FLUX_ABSORB.
OPACITY_VALUES_MANIZZA = 0.0232, 0.074, 0.225, 0.037, 2.86, 0.0 ! [m-1] default = 0.0232, 0.074, 0.225, 0.037, 2.86, 0.0
! Pairs of opacity coefficients for blue, red and near-infrared radiation with
! parameterizations following the functional form from Manizza et al., GRL 2005,
! namely in the form opacity = coef_1 + coef_2 * chl**pow for each band.
! Although coefficients are set for 3 bands, more or less bands may actually be
! used, with extra bands following the same properties as band 3.
CHOROPHYLL_POWER_MANIZZA = 0.674, 0.629, 0.0 ! [nondim] default = 0.674, 0.629, 0.0
! Powers of chlorophyll for blue, red and near-infrared radiation bands in
! expressions for opacity of the form opacity = coef_1 + coef_2 * chl**pow.
OPACITY_BAND_WAVELENGTHS = 0.0, 550.0, 700.0, 2800.0 ! [nm] default = 0.0, 550.0, 700.0, 2800.0
! The bounding wavelengths for the various bands of shortwave radiation, with
! defaults that depend on the setting for OPACITY_SCHEME.
OPACITY_LAND_VALUE = 10.0 ! [m-1] default = 10.0
! The value to use for opacity over land. The default is 10 m-1 - a value for
! muddy water.
Expand Down
12 changes: 12 additions & 0 deletions ice_ocean_SIS2/OM4_05/MOM_parameter_doc.all
Original file line number Diff line number Diff line change
Expand Up @@ -2328,6 +2328,18 @@ PEN_SW_FLUX_ABSORB = 2.5E-11 ! [degC m s-1] default = 2.5E-11
PEN_SW_ABSORB_MINTHICK = 0.001 ! [m] default = 0.001
! A thickness that is used to absorb the remaining penetrating shortwave heat
! flux when it drops below PEN_SW_FLUX_ABSORB.
OPACITY_VALUES_MANIZZA = 0.0232, 0.074, 0.225, 0.037, 2.86, 0.0 ! [m-1] default = 0.0232, 0.074, 0.225, 0.037, 2.86, 0.0
! Pairs of opacity coefficients for blue, red and near-infrared radiation with
! parameterizations following the functional form from Manizza et al., GRL 2005,
! namely in the form opacity = coef_1 + coef_2 * chl**pow for each band.
! Although coefficients are set for 3 bands, more or less bands may actually be
! used, with extra bands following the same properties as band 3.
CHOROPHYLL_POWER_MANIZZA = 0.674, 0.629, 0.0 ! [nondim] default = 0.674, 0.629, 0.0
! Powers of chlorophyll for blue, red and near-infrared radiation bands in
! expressions for opacity of the form opacity = coef_1 + coef_2 * chl**pow.
OPACITY_BAND_WAVELENGTHS = 0.0, 550.0, 700.0, 2800.0 ! [nm] default = 0.0, 550.0, 700.0, 2800.0
! The bounding wavelengths for the various bands of shortwave radiation, with
! defaults that depend on the setting for OPACITY_SCHEME.
OPACITY_LAND_VALUE = 10.0 ! [m-1] default = 10.0
! The value to use for opacity over land. The default is 10 m-1 - a value for
! muddy water.
Expand Down
12 changes: 12 additions & 0 deletions ice_ocean_SIS2/OM_1deg/MOM_parameter_doc.all
Original file line number Diff line number Diff line change
Expand Up @@ -2268,6 +2268,18 @@ PEN_SW_FLUX_ABSORB = 2.5E-11 ! [degC m s-1] default = 2.5E-11
PEN_SW_ABSORB_MINTHICK = 0.001 ! [m] default = 0.001
! A thickness that is used to absorb the remaining penetrating shortwave heat
! flux when it drops below PEN_SW_FLUX_ABSORB.
OPACITY_VALUES_MANIZZA = 0.0232, 0.074, 0.225, 0.037, 2.86, 0.0 ! [m-1] default = 0.0232, 0.074, 0.225, 0.037, 2.86, 0.0
! Pairs of opacity coefficients for blue, red and near-infrared radiation with
! parameterizations following the functional form from Manizza et al., GRL 2005,
! namely in the form opacity = coef_1 + coef_2 * chl**pow for each band.
! Although coefficients are set for 3 bands, more or less bands may actually be
! used, with extra bands following the same properties as band 3.
CHOROPHYLL_POWER_MANIZZA = 0.674, 0.629, 0.0 ! [nondim] default = 0.674, 0.629, 0.0
! Powers of chlorophyll for blue, red and near-infrared radiation bands in
! expressions for opacity of the form opacity = coef_1 + coef_2 * chl**pow.
OPACITY_BAND_WAVELENGTHS = 0.0, 550.0, 700.0, 2800.0 ! [nm] default = 0.0, 550.0, 700.0, 2800.0
! The bounding wavelengths for the various bands of shortwave radiation, with
! defaults that depend on the setting for OPACITY_SCHEME.
OPACITY_LAND_VALUE = 10.0 ! [m-1] default = 10.0
! The value to use for opacity over land. The default is 10 m-1 - a value for
! muddy water.
Expand Down
12 changes: 12 additions & 0 deletions ice_ocean_SIS2/SIS2/MOM_parameter_doc.all
Original file line number Diff line number Diff line change
Expand Up @@ -1945,6 +1945,18 @@ PEN_SW_FLUX_ABSORB = 2.5E-11 ! [degC m s-1] default = 2.5E-11
PEN_SW_ABSORB_MINTHICK = 1.0 ! [m] default = 1.0
! A thickness that is used to absorb the remaining penetrating shortwave heat
! flux when it drops below PEN_SW_FLUX_ABSORB.
OPACITY_VALUES_MANIZZA = 0.0232, 0.074, 0.225, 0.037, 2.86, 0.0 ! [m-1] default = 0.0232, 0.074, 0.225, 0.037, 2.86, 0.0
! Pairs of opacity coefficients for blue, red and near-infrared radiation with
! parameterizations following the functional form from Manizza et al., GRL 2005,
! namely in the form opacity = coef_1 + coef_2 * chl**pow for each band.
! Although coefficients are set for 3 bands, more or less bands may actually be
! used, with extra bands following the same properties as band 3.
CHOROPHYLL_POWER_MANIZZA = 0.674, 0.629, 0.0 ! [nondim] default = 0.674, 0.629, 0.0
! Powers of chlorophyll for blue, red and near-infrared radiation bands in
! expressions for opacity of the form opacity = coef_1 + coef_2 * chl**pow.
OPACITY_BAND_WAVELENGTHS = 0.0, 550.0, 700.0, 2800.0 ! [nm] default = 0.0, 550.0, 700.0, 2800.0
! The bounding wavelengths for the various bands of shortwave radiation, with
! defaults that depend on the setting for OPACITY_SCHEME.
OPACITY_LAND_VALUE = 10.0 ! [m-1] default = 10.0
! The value to use for opacity over land. The default is 10 m-1 - a value for
! muddy water.
Expand Down
Loading

0 comments on commit 200ce8e

Please sign in to comment.