MOM_interface_filter module reference

Interface height filtering module

Data Types

interface_filter_CS

Control structure for interface height filtering

Functions/Subroutines

interface_filter

Apply a transport that leads to a smoothing of interface height, subject to limits that ensure stability and positive definiteness of layer thicknesses. It also updates the along-layer mass fluxes used in the tracer transport equations.

filter_interface

Calculates parameterized layer transports for use in the continuity equation. Fluxes are limited to give positive definite thicknesses. Called by interface_filter().

interface_filter_init

Initialize the interface height filtering module/structure

interface_filter_end

Deallocate the interface height filtering control structure

Detailed Description

Interface height filtering

Interface height filtering is implemented via along-layer mass fluxes

\begin{equation*} h^\dagger \leftarrow h^n - \Delta t \nabla \cdot ( \vec{uh}^* ) \end{equation*}

where the mass fluxes are cast as the difference in vector streamfunction

\begin{equation*} \vec{uh}^* = \delta_k \vec{\psi} . \end{equation*}

The streamfunction is proportional to the slope in the difference between unsmoothed interface heights and those smoothed with one (or more) passes of a Laplacian filter, depending on the order of the filter, or to the slope for a Laplacian filter

\begin{equation*} \vec{\psi} = - \kappa_h {\nabla \eta - \eta_{smooth}} \end{equation*}

The result of the above expression is subsequently bounded by minimum and maximum values, including a maximum smoothing rate for numerical stability (\(\kappa_{h}\) is calculated internally).

Module mom_interface_filter parameters

Symbol

Module parameter

-

APPLY_INTERFACE_FILTER

-

INTERFACE_FILTER_TIME

-

INTERFACE_FILTER_MAX_CFL

-

INTERFACE_FILTER_ORDER

Type Documentation

type, public :: interface_filter_CS

Control structure for interface height filtering

Parameters
  • initialized

    True if this control structure has been initialized.

  • max_smoothing_CFL

    Maximum value of the smoothing CFL for interface height filtering [nondim]

  • filter_rate

    The rate at which grid-scale anomalies are damped away [T-1 ~> s-1]

  • filter_order

    The even power of the interface height smoothing. At present valid values are 0, 2, or 4.

  • interface_filter

    If true, interfaces heights are diffused.

  • isotropic_filter

    If true, use the same filtering lengthscales in both directions, otherwise use filtering lengthscales in each direction that scale with the grid spacing in that direction.

  • debug

    write verbose checksums for debugging purposes

  • id_uh_sm

    Diagnostic identifier

  • id_vh_sm

    Diagnostic identifier

  • id_L2_u

    Diagnostic identifier

  • id_L2_v

    Diagnostic identifier

  • id_sfn_x

    Diagnostic identifier

  • id_sfn_y

    Diagnostic identifier

Functions/Subroutine Documentation

subroutine interface_filter(h, uhtr, vhtr, tv, dt, G, GV, US, CDp, CS)

Apply a transport that leads to a smoothing of interface height, subject to limits that ensure stability and positive definiteness of layer thicknesses. It also updates the along-layer mass fluxes used in the tracer transport equations.

Parameters
  • G [in]

    Ocean grid structure

  • GV [in]

    Vertical grid structure

  • US [in]

    A dimensional unit scaling type

  • h [inout]

    Layer thickness [H ~> m or kg m-2]

  • uhtr [inout]

    Accumulated zonal mass flux [L2 H ~> m3 or kg]

  • vhtr [inout]

    Accumulated meridional mass flux [L2 H ~> m3 or kg]

  • tv [in]

    Thermodynamics structure

  • dt [in]

    Time increment [T ~> s]

  • CDp [inout]

    Diagnostics for the continuity equation

  • CS [inout]

    Control structure for interface height filtering

Callees call graph
Callees of mom_interface_filter::interface_filter calls cluster_mom_checksums MOM_checksums cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_error_handler MOM_error_handler cluster_mom_interface_filter MOM_interface_filter cluster_mom_interface_heights MOM_interface_heights mom_checksums::interface::hchksum hchksum (interface) mom_checksums::interface::uvchksum uvchksum (interface) mom_diag_mediator::interface::post_data post_data (interface) mom_diag_mediator::query_averaging_enabled query_averaging_enabled mom_error_handler::mom_error MOM_error mom_interface_filter::filter_interface filter_interface [private/internal] mom_interface_filter::interface_filter interface_filter mom_interface_filter::interface_filter->mom_checksums::interface::hchksum mom_interface_filter::interface_filter->mom_checksums::interface::uvchksum mom_interface_filter::interface_filter->mom_diag_mediator::interface::post_data mom_interface_filter::interface_filter->mom_diag_mediator::query_averaging_enabled mom_interface_filter::interface_filter->mom_error_handler::mom_error mom_interface_filter::interface_filter->mom_interface_filter::filter_interface mom_interface_heights::interface::find_eta find_eta (interface) mom_interface_filter::interface_filter->mom_interface_heights::interface::find_eta
Text view
Callers call graph
Callers of mom_interface_filter::interface_filter calls cluster_mom MOM cluster_mom_interface_filter MOM_interface_filter mom::step_mom_dynamics step_MOM_dynamics [private/internal] mom_interface_filter::interface_filter interface_filter mom::step_mom_dynamics->mom_interface_filter::interface_filter
Text view
subroutine filter_interface(h, e, Lsm2_u, Lsm2_v, uhD, vhD, tv, G, GV, US, halo_size)

Calculates parameterized layer transports for use in the continuity equation. Fluxes are limited to give positive definite thicknesses. Called by interface_filter().

Parameters
  • G [in]

    Ocean grid structure

  • GV [in]

    Vertical grid structure

  • US [in]

    A dimensional unit scaling type

  • h [in]

    Layer thickness [H ~> m or kg m-2]

  • e [in]

    Interface positions [Z ~> m]

  • Lsm2_u [in]

    Interface smoothing lengths squared at u points [L2 ~> m2]

  • Lsm2_v [in]

    Interface smoothing lengths squared at v points [L2 ~> m2]

  • uhD [out]

    Zonal mass fluxes [H L2 ~> m3 or kg]

  • vhD [out]

    Meridional mass fluxes [H L2 ~> m3 or kg]

  • tv [in]

    Thermodynamics structure

  • halo_size [in]

    The size of the halo to work on, 0 by default.

Callers call graph
Callers of mom_interface_filter::filter_interface calls cluster_mom_interface_filter MOM_interface_filter mom_interface_filter::filter_interface filter_interface [private/internal] mom_interface_filter::interface_filter interface_filter mom_interface_filter::interface_filter->mom_interface_filter::filter_interface
Text view
subroutine interface_filter_init(Time, G, GV, US, param_file, diag, CDp, CS)

Initialize the interface height filtering module/structure

Parameters
  • Time [in]

    Current model time

  • G [in]

    Ocean grid structure

  • GV [in]

    Vertical grid structure

  • US [in]

    A dimensional unit scaling type

  • param_file [in]

    Parameter file handles

  • diag [inout]

    Diagnostics control structure

  • CDp [inout]

    Continuity equation diagnostics

  • CS [inout]

    Control structure for interface height filtering

Callees call graph
Callees of mom_interface_filter::interface_filter_init calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_error_handler MOM_error_handler cluster_mom_file_parser MOM_file_parser cluster_mom_interface_filter MOM_interface_filter mom_diag_mediator::register_diag_field register_diag_field mom_error_handler::mom_error MOM_error mom_file_parser::interface::get_param get_param (interface) mom_file_parser::interface::log_version log_version (interface) mom_interface_filter::interface_filter_init interface_filter_init mom_interface_filter::interface_filter_init->mom_diag_mediator::register_diag_field mom_interface_filter::interface_filter_init->mom_error_handler::mom_error mom_interface_filter::interface_filter_init->mom_file_parser::interface::get_param mom_interface_filter::interface_filter_init->mom_file_parser::interface::log_version
Text view
Callers call graph
Callers of mom_interface_filter::interface_filter_init calls cluster_mom MOM cluster_mom_interface_filter MOM_interface_filter mom::initialize_mom initialize_MOM mom_interface_filter::interface_filter_init interface_filter_init mom::initialize_mom->mom_interface_filter::interface_filter_init
Text view
subroutine interface_filter_end(CS, CDp)

Deallocate the interface height filtering control structure

Parameters
  • CS [inout]

    Control structure for interface height filtering

  • CDp [inout]

    Continuity diagnostic control structure

Callers call graph
Callers of mom_interface_filter::interface_filter_end calls cluster_mom MOM cluster_mom_interface_filter MOM_interface_filter mom::mom_end MOM_end mom_interface_filter::interface_filter_end interface_filter_end mom::mom_end->mom_interface_filter::interface_filter_end
Text view
API generated with Flint · Rendered from reStructuredText