Phillips_initialization module reference
Initialization for the "Phillips" channel configuration
Functions/Subroutines
Initialize the thickness field for the Phillips model test case. |
|
Initialize the velocity fields for the Phillips model test case |
|
Sets up the inverse restoration time (Idamp), and the values towards which the interface heights and an arbitrary number of tracers should be restored within each sponge for the Phillips model test case |
|
sech calculates the hyperbolic secant. |
|
Initialize topography. |
Detailed Description
By Robert Hallberg, April 1994 - June 2002
This subroutine initializes the fields for the simulations. The one argument passed to initialize, Time, is set to the current time of the simulation. The fields which are initialized here are: u - Zonal velocity [L T-1 ~> m s-1]. v - Meridional velocity [L T-1 ~> m s-1]. h - Layer thickness [H ~> m or kg m-2] (must be positive) D - Basin depth [Z ~> m] (positive downward) f - The Coriolis parameter [T-1 ~> s-1]. If ENABLE_THERMODYNAMICS is defined: T - Temperature [C ~> degC]. S - Salinity [S ~> ppt]. If SPONGE is defined: A series of subroutine calls are made to set up the damping rates and reference profiles for all variables that are damped in the sponge. Any user provided tracer code is also first linked through this subroutine.
Forcing-related fields (taux, tauy, buoy, ustar, etc.) are set in MOM_surface_forcing.F90.
These variables are all set in the set of subroutines (in this file) Phillips_initialize_thickness, Phillips_initialize_velocity, Phillips_initialize_topography and Phillips_initialize_sponges that seet up fields that are specific to the Phillips instability test case.
Functions/Subroutine Documentation
- subroutine Phillips_initialize_thickness(h, depth_tot, G, GV, US, param_file, just_read)
Initialize the thickness field for the Phillips model test case.
- Parameters
G [in]
The ocean's grid structure.
GV [in]
The ocean's vertical grid structure.
US [in]
A dimensional unit scaling type
h [out]
The thickness that is being initialized [Z ~> m]
depth_tot [in]
The nominal total depth of the ocean [Z ~> m]
param_file [in]
A structure indicating the open file to parse for model parameter values.
just_read [in]
If true, this call will only read parameters without changing h.
Callees call graph
Callers call graph
- subroutine Phillips_initialize_velocity(u, v, G, GV, US, param_file, just_read)
Initialize the velocity fields for the Phillips model test case
- Parameters
G [in]
Grid structure
GV [in]
Vertical grid structure
u [out]
i-component of velocity [L T-1 ~> m s-1]
v [out]
j-component of velocity [L T-1 ~> m s-1]
US [in]
A dimensional unit scaling type
param_file [in]
A structure indicating the open file to parse for modelparameter values.
just_read [in]
If true, this call will only read parameters without changing u & v.
Callees call graph
Text view
phillips_initialization::phillips_initialize_velocity → mom_error_handler::mom_error
phillips_initialization::phillips_initialize_velocity → mom_file_parser::interface::get_param
phillips_initialization::phillips_initialize_velocity → mom_file_parser::interface::log_version
phillips_initialization::phillips_initialize_velocity → phillips_initialization::sech
Callers call graph
- subroutine Phillips_initialize_sponges(G, GV, US, tv, param_file, CSp, h)
Sets up the inverse restoration time (Idamp), and the values towards which the interface heights and an arbitrary number of tracers should be restored within each sponge for the Phillips model test case
- Parameters
G [in]
The ocean's grid structure.
GV [in]
Vertical grid structure
US [in]
A dimensional unit scaling type
tv [in]
A structure containing pointers to any available thermodynamic fields, potential temperature and salinity or mixed layer density. Absent fields have NULL ptrs.
param_file [in]
A structure indicating the open file to parse for model parameter values.
CSp
A pointer that is set to point to the control structure for the sponge module.
h [in]
Thickness field [H ~> m or kg m-2].
Callees call graph
Text view
phillips_initialization::phillips_initialize_sponges → mom_error_handler::mom_error
phillips_initialization::phillips_initialize_sponges → mom_file_parser::interface::get_param
phillips_initialization::phillips_initialize_sponges → mom_file_parser::interface::log_version
phillips_initialization::phillips_initialize_sponges → mom_sponge::initialize_sponge
Callers call graph
- function sech(x)
sech calculates the hyperbolic secant.
- Parameters
x [in]
Input value [nondim].
sech
Result [nondim].
Callers call graph
- subroutine Phillips_initialize_topography(D, G, param_file, max_depth, US)
Initialize topography.
- Parameters
G [in]
The dynamic horizontal grid type
D [out]
Ocean bottom depth [Z ~> m]
param_file [in]
Parameter file structure
max_depth [in]
Maximum model depth [Z ~> m]
US [in]
A dimensional unit scaling type