MOM_interface_filter module reference
Interface height filtering module
Data Types
Control structure for interface height filtering |
Functions/Subroutines
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. |
|
Calculates parameterized layer transports for use in the continuity equation. Fluxes are limited to give positive definite thicknesses. Called by interface_filter(). |
|
Initialize the interface height filtering module/structure |
|
Deallocate the interface height filtering control structure |
Detailed Description
Interface height filtering
Interface height filtering is implemented via along-layer mass fluxes
where the mass fluxes are cast as the difference in vector streamfunction
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
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
Text view
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_filter::interface_filter → mom_interface_heights::interface::find_eta
- 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
- 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
Text view
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
- 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