MESO_surface_forcing module reference
Sets forcing for the MESO configuration
Data Types
This control structure is used to store parameters associated with the MESO forcing. |
Functions/Subroutines
This subroutine sets up the MESO buoyancy forcing, which uses control-theory style specification restorative buoyancy fluxes at large scales. |
|
Initialize the MESO surface forcing module |
Detailed Description
Rewritten by Robert Hallberg, June 2009
This file contains the subroutines that a user should modify to to set the surface wind stresses and fluxes of buoyancy or temperature and fresh water. They are called when the run-time parameters WIND_CONFIG or BUOY_CONFIG are set to "USER". The standard version has simple examples, along with run-time error messages that will cause the model to abort if this code has not been modified. This code is intended for use with relatively simple specifications of the forcing. For more complicated forms, it is probably a good idea to read the forcing from input files using "file" for WIND_CONFIG and BUOY_CONFIG.
MESO_buoyancy forcing is used to set the surface buoyancy forcing, which may include a number of fresh water flux fields (evap, liq_precip, froz_precip, liq_runoff, froz_runoff, and vprec) and the surface heat fluxes (sw, lw, latent and sens) if temperature and salinity are state variables, or it may simply be the buoyancy flux if it is not. This routine also has coded a restoring to surface values of temperature and salinity.
Type Documentation
- type, public :: MESO_surface_forcing_CS
This control structure is used to store parameters associated with the MESO forcing.
- Parameters
use_temperature
If true, temperature and salinity are used as state variables.
restorebuoy
If true, use restoring surface buoyancy forcing.
Rho0
The density used in the Boussinesq approximation [R ~> kg m-3].
G_Earth
The gravitational acceleration [L2 Z-1 T-2 ~> m s-2].
Flux_const
The restoring rate at the surface [Z T-1 ~> m s-1].
rho_restore
The density that is used to convert piston velocities into salt or heat fluxes with salinity or temperature restoring [R ~> kg m-3]
gust_const
A constant unresolved background gustiness that contributes to ustar [R L Z T-2 ~> Pa]
T_Restore
The temperature to restore the SST toward [C ~> degC].
S_Restore
The salinity to restore the sea surface salnity toward [S ~> ppt]
PmE
The prescribed precip minus evap [Z T-1 ~> m s-1].
Solar
The shortwave forcing into the ocean [Q R Z T-1 ~> W m-2].
Heat
The prescribed longwave, latent and sensible heat flux into the ocean [Q R Z T-1 ~> W m-2].
inputdir
The directory where NetCDF input files are.
salinityrestore_file
The file with the target sea surface salinity
SSTrestore_file
The file with the target sea surface temperature
Solar_file
The file with the shortwave forcing
heating_file
The file with the longwave, latent, and sensible heating
PmE_file
The file with precipitation minus evaporation
diag
A structure that is used to regulate the timing of diagnostic output.
Functions/Subroutine Documentation
- subroutine MESO_buoyancy_forcing(sfc_state, fluxes, day, dt, G, US, CS)
This subroutine sets up the MESO buoyancy forcing, which uses control-theory style specification restorative buoyancy fluxes at large scales.
- Parameters
sfc_state [inout]
A structure containing fields that describe the surface state of the ocean.
fluxes [inout]
A structure containing thermodynamic forcing fields
day [in]
The time of the fluxes
dt [in]
The amount of time over which the fluxes apply [T ~> s]
G [in]
The ocean's grid structure
US [in]
A dimensional unit scaling type
CS
A pointer to the control structure returned by a previous call to MESO_surface_forcing_init
Callees call graph
Callers call graph
- subroutine MESO_surface_forcing_init(Time, G, US, param_file, diag, CS)
Initialize the MESO surface forcing module
- 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 to parse for run-time parameters
diag [inout]
structure used to regulate diagnostic output
CS
A pointer that is set to point to the control structure for this module
Callees call graph
Text view
meso_surface_forcing::meso_surface_forcing_init → mom_error_handler::mom_error
meso_surface_forcing::meso_surface_forcing_init → mom_file_parser::interface::get_param
meso_surface_forcing::meso_surface_forcing_init → mom_file_parser::interface::log_version
meso_surface_forcing::meso_surface_forcing_init → mom_string_functions::slasher