MOM_controlled_forcing module reference

Use control-theory to adjust the surface heat flux and precipitation.

Adjustments are based on the time-mean or periodically (seasonally) varying anomalies from the observed state.

The techniques behind this are described in Hallberg and Adcroft (2018, in prep.).

Data Types

ctrl_forcing_CS

Control structure for MOM_controlled_forcing

Functions/Subroutines

apply_ctrl_forcing

This subroutine determines corrective surface forcing fields using simple control theory.

periodic_int

This function maps rval into an integer in the range from 1 to num_period.

periodic_real

This function shifts rval by an integer multiple of num_period so that 0 <= val_out < num_period.

register_ctrl_forcing_restarts

This subroutine is used to allocate and register any fields in this module that should be written to or read from the restart file.

controlled_forcing_init

Set up this modules control structure.

controlled_forcing_end

Clean up this modules control structure.

Detailed Description

* By Robert Hallberg, July 2011 * * This program contains the subroutines that use control-theory * to adjust the surface heat flux and precipitation, based on the * time-mean or periodically (seasonally) varying anomalies from the * observed state. The techniques behind this are described in * Hallberg and Adcroft (2011, in prep.). * * Macros written all in capital letters are defined in MOM_memory.h. * * A small fragment of the grid is shown below: * * j+1 x ^ x ^ x At x: q * j+1 > o > o > At ^: v, tauy * j x ^ x ^ x At >: u, taux * j > o > o > At o: h, fluxes. * j-1 x ^ x ^ x * i-1 i i+1 At x & ^: * i i+1 At > & o: * * The boundaries always run through q grid points (x). *

Type Documentation

type, public :: ctrl_forcing_CS

Control structure for MOM_controlled_forcing

Parameters
  • use_temperature

    If true, temperature and salinity are used as state variables.

  • do_integrated

    If true, use time-integrated anomalies to control the surface state.

  • num_cycle

    The number of elements in the forcing cycle.

  • heat_int_rate

    The rate at which heating anomalies accumulate [T-1 ~> s-1]

  • prec_int_rate

    The rate at which precipitation anomalies accumulate [T-1 ~> s-1]

  • heat_cyc_rate

    The rate at which cyclical heating anomalies accumulate [T-1 ~> s-1]

  • prec_cyc_rate

    The rate at which cyclical precipitation anomalies accumulate [T-1 ~> s-1]

  • Len2

    The square of the length scale over which the anomalies are smoothed via a Laplacian filter [L2 ~> m2]

  • lam_heat

    A constant of proportionality between SST anomalies and heat fluxes [Q R Z T-1 C-1 ~> W m-2 degC-1]

  • lam_prec

    A constant of proportionality between SSS anomalies (normalised by mean SSS) and precipitation [R Z T-1 ~> kg m-2 s-1]

  • lam_cyc_heat

    A constant of proportionality between cyclical SST anomalies and corrective heat fluxes [Q R Z T-1 C-1 ~> W m-2 degC-1]

  • lam_cyc_prec

    A constant of proportionality between cyclical SSS anomalies (normalised by mean SSS) and corrective precipitation [R Z T-1 ~> kg m-2 s-1]

  • heat_0

    The non-periodic integrative corrective heat flux that has been evolved to control mean SST anomalies [Q R Z T-1 ~> W m-2]

  • precip_0

    The non-periodic integrative corrective precipitation that has been evolved to control mean SSS anomalies [R Z T-1 ~> kg m-2 s-1]

  • heat_cyc

    The periodic integrative corrective heat flux that has been evolved to control periodic (seasonal) SST anomalies [Q R Z T-1 ~> W m-2]. The third dimension is the periodic bins.

  • precip_cyc

    The non-periodic integrative corrective precipitation that has been evolved to control periodic (seasonal) SSS anomalies [R Z T-1 ~> kg m-2 s-1]. The third dimension is the periodic bins.

  • avg_time

    The accumulated averaging time in each part of the cycle [T ~> s] or a negative value to indicate that the variables like avg_SST_anom are the actual averages, and not time integrals. The dimension is the periodic bins.

  • avg_SST_anom

    The time-averaged periodic sea surface temperature anomalies [C ~> degC], or (at some points in the code), the time-integrated periodic temperature anomalies [T C ~> s degC]. The third dimension is the periodic bins.

  • avg_SSS_anom

    The time-averaged periodic sea surface salinity anomalies [S ~> ppt], or (at some points in the code), the time-integrated periodic salinity anomalies [T S ~> s ppt]. The third dimension is the periodic bins.

  • avg_SSS

    The time-averaged periodic sea surface salinities [S ~> ppt], or (at some points in the code), the time-integrated periodic salinities [T S ~> s ppt]. The third dimension is the periodic bins.

  • diag

    A structure that is used to regulate the timing of diagnostic output.

  • id_heat_0

    Diagnostic handle for the steady heat flux

  • id_prec_0

    Diagnostic handle for the steady precipitation

Functions/Subroutine Documentation

subroutine apply_ctrl_forcing(SST_anom, SSS_anom, SSS_mean, virt_heat, virt_precip, day_start, dt, G, US, CS)

This subroutine determines corrective surface forcing fields using simple control theory.

Parameters
  • G [inout]

    The ocean's grid structure

  • SST_anom [in]

    The sea surface temperature anomalies [C ~> degC]

  • SSS_anom [in]

    The sea surface salinity anomlies [S ~> ppt]

  • SSS_mean [in]

    The mean sea surface salinity [S ~> ppt]

  • virt_heat [inout]

    Virtual (corrective) heat fluxes that are augmented in this subroutine [Q R Z T-1 ~> W m-2]

  • virt_precip [inout]

    Virtual (corrective) precipitation fluxes that are augmented in this subroutine [R Z T-1 ~> kg m-2 s-1]

  • day_start [in]

    Start time of the fluxes.

  • dt [in]

    Length of time over which these fluxes will be applied [T ~> s]

  • US [in]

    A dimensional unit scaling type

  • CS

    A pointer to the control structure returned by a previous call to ctrl_forcing_init.

Callees call graph
Callees of mom_controlled_forcing::apply_ctrl_forcing calls cluster_mom_controlled_forcing MOM_controlled_forcing cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_domain_infra MOM_domain_infra cluster_mom_error_handler MOM_error_handler cluster_mom_time_manager MOM_time_manager mom_controlled_forcing::apply_ctrl_forcing apply_ctrl_forcing mom_controlled_forcing::periodic_int periodic_int [private/internal] mom_controlled_forcing::apply_ctrl_forcing->mom_controlled_forcing::periodic_int mom_controlled_forcing::periodic_real periodic_real [private/internal] mom_controlled_forcing::apply_ctrl_forcing->mom_controlled_forcing::periodic_real mom_diag_mediator::disable_averaging disable_averaging mom_controlled_forcing::apply_ctrl_forcing->mom_diag_mediator::disable_averaging mom_diag_mediator::enable_averages enable_averages mom_controlled_forcing::apply_ctrl_forcing->mom_diag_mediator::enable_averages mom_diag_mediator::interface::post_data post_data (interface) mom_controlled_forcing::apply_ctrl_forcing->mom_diag_mediator::interface::post_data mom_domain_infra::interface::pass_var pass_var (interface) mom_controlled_forcing::apply_ctrl_forcing->mom_domain_infra::interface::pass_var mom_error_handler::mom_error MOM_error mom_controlled_forcing::apply_ctrl_forcing->mom_error_handler::mom_error mom_time_manager::real_to_time real_to_time mom_controlled_forcing::apply_ctrl_forcing->mom_time_manager::real_to_time
Text view

External calls

time_manager_mod
  • get_date (time_manager_mod::get_date)

  • set_date (time_manager_mod::set_date)

  • time_type_to_real (time_manager_mod::time_type_to_real)

function periodic_int(rval, num_period) result(m)

This function maps rval into an integer in the range from 1 to num_period.

Parameters
  • rval [in]

    Input for mapping [nondim]

  • num_period [in]

    Maximum output.

  • m

    Return value.

Callers call graph
Callers of mom_controlled_forcing::periodic_int calls cluster_mom_controlled_forcing MOM_controlled_forcing mom_controlled_forcing::apply_ctrl_forcing apply_ctrl_forcing mom_controlled_forcing::periodic_int periodic_int [private/internal] mom_controlled_forcing::apply_ctrl_forcing->mom_controlled_forcing::periodic_int
Text view
function periodic_real(rval, num_period) result(val_out)

This function shifts rval by an integer multiple of num_period so that 0 <= val_out < num_period.

Parameters
  • rval [in]

    Input to be shifted into valid range [nondim]

  • num_period [in]

    Maximum valid value.

  • val_out

    Return value [nondim]

Callers call graph
Callers of mom_controlled_forcing::periodic_real calls cluster_mom_controlled_forcing MOM_controlled_forcing mom_controlled_forcing::apply_ctrl_forcing apply_ctrl_forcing mom_controlled_forcing::periodic_real periodic_real [private/internal] mom_controlled_forcing::apply_ctrl_forcing->mom_controlled_forcing::periodic_real
Text view
subroutine register_ctrl_forcing_restarts(G, US, param_file, CS, restart_CS)

This subroutine is used to allocate and register any fields in this module that should be written to or read from the restart file.

Parameters
  • G [in]

    The ocean's grid structure.

  • US [in]

    A dimensional unit scaling type

  • param_file [in]

    A structure indicating the open file to parse for model parameter values.

  • CS

    A pointer that is set to point to the control structure for this module.

  • restart_CS [inout]

    MOM restart control struct

Callees call graph
Callees of mom_controlled_forcing::register_ctrl_forcing_restarts calls cluster_mom_controlled_forcing MOM_controlled_forcing cluster_mom_error_handler MOM_error_handler cluster_mom_file_parser MOM_file_parser cluster_mom_restart MOM_restart mom_controlled_forcing::register_ctrl_forcing_restarts register_ctrl_forcing_restarts mom_error_handler::mom_error MOM_error mom_controlled_forcing::register_ctrl_forcing_restarts->mom_error_handler::mom_error mom_file_parser::interface::read_param read_param (interface) mom_controlled_forcing::register_ctrl_forcing_restarts->mom_file_parser::interface::read_param mom_restart::interface::register_restart_field register_restart_field (interface) mom_controlled_forcing::register_ctrl_forcing_restarts->mom_restart::interface::register_restart_field
Text view
subroutine controlled_forcing_init(Time, G, US, param_file, diag, CS)

Set up this modules control structure.

Parameters
  • Time [in]

    The current model time.

  • G [in]

    The ocean's grid structure.

  • US [in]

    A dimensional unit scaling type

  • param_file [in]

    A structure indicating the open file to parse for model parameter values.

  • diag [in]

    A structure that is used to regulate diagnostic output.

  • CS

    A pointer that is set to point to the control structure for this module.

Callees call graph
Callees of mom_controlled_forcing::controlled_forcing_init calls cluster_mom_controlled_forcing MOM_controlled_forcing cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_file_parser MOM_file_parser mom_controlled_forcing::controlled_forcing_init controlled_forcing_init mom_diag_mediator::register_diag_field register_diag_field mom_controlled_forcing::controlled_forcing_init->mom_diag_mediator::register_diag_field mom_file_parser::interface::get_param get_param (interface) mom_controlled_forcing::controlled_forcing_init->mom_file_parser::interface::get_param mom_file_parser::interface::log_param log_param (interface) mom_controlled_forcing::controlled_forcing_init->mom_file_parser::interface::log_param mom_file_parser::interface::log_version log_version (interface) mom_controlled_forcing::controlled_forcing_init->mom_file_parser::interface::log_version
Text view
subroutine controlled_forcing_end(CS)

Clean up this modules control structure.

Parameters
  • CS

    A pointer to the control structure returned by a previous call to controlled_forcing_init, it will be deallocated here.

API generated with Flint · Rendered from reStructuredText