Neverworld_initialization module reference

Initialization for the "Neverworld" configuration

Functions/Subroutines

Neverworld_initialize_topography

This subroutine sets up the Neverworld test case topography.

cosbell

Returns the value of a cosine-bell function evaluated at x/L [nondim]

spike

Returns the value of a sin-spike function evaluated at x/L [nondim]

cone

Returns the value of a triangular function centered at x=x0 with value 1 and linearly decreasing to 0 at x=x0+/-L, and 0 otherwise [nondim]. If clip is present the top of the cone is cut off at "clip", which effectively defaults to 1.

scurve

Returns an s-curve s(x) s.t. s(x0)<=0, s(x0+L)>=1 and cubic in between [nondim].

cstprof

Returns a "coastal" profile [nondim].

dist_line_fixed_x

Distance between points x,y and a line segment (x0,y0) and (x0,y1) in arbitrary units [A].

dist_line_fixed_y

Distance between points x,y and a line segment (x0,y0) and (x1,y0) in arbitrary units [A].

NS_coast

A "coast profile" applied in an N-S line from lon0,lat0 to lon0,lat1 [nondim].

EW_coast

A "coast profile" applied in an E-W line from lon0,lat0 to lon1,lat0 [nondim].

NS_ridge

A NS ridge [nondim]

circ_ridge

A circular ridge [nondim]

Neverworld_initialize_thickness

This subroutine initializes layer thicknesses for the Neverworld test case, by finding the depths of interfaces in a specified latitude-dependent temperature profile with an exponentially decaying thermocline on top of a linear stratification.

Functions/Subroutine Documentation

subroutine Neverworld_initialize_topography(D, G, param_file, max_depth)

This subroutine sets up the Neverworld test case topography.

Parameters
  • G [in]

    The dynamic horizontal grid type

  • D [out]

    Ocean bottom depth in the units of depth_max [A]

  • param_file [in]

    Parameter file structure

  • max_depth [in]

    Maximum ocean depth in arbitrary units [A]

Callees call graph
Callees of neverworld_initialization::neverworld_initialize_topography calls cluster_mom_error_handler MOM_error_handler cluster_mom_file_parser MOM_file_parser cluster_neverworld_initialization Neverworld_initialization mom_error_handler::mom_mesg MOM_mesg mom_file_parser::interface::get_param get_param (interface) mom_file_parser::interface::log_version log_version (interface) neverworld_initialization::cosbell cosbell [private/internal] neverworld_initialization::neverworld_initialize_topography Neverworld_initialize_topography neverworld_initialization::neverworld_initialize_topography->mom_error_handler::mom_mesg neverworld_initialization::neverworld_initialize_topography->mom_file_parser::interface::get_param neverworld_initialization::neverworld_initialize_topography->mom_file_parser::interface::log_version neverworld_initialization::neverworld_initialize_topography->neverworld_initialization::cosbell neverworld_initialization::spike spike [private/internal] neverworld_initialization::neverworld_initialize_topography->neverworld_initialization::spike
Text view
Callers call graph
Callers of neverworld_initialization::neverworld_initialize_topography calls cluster_mom_fixed_initialization MOM_fixed_initialization cluster_neverworld_initialization Neverworld_initialization mom_fixed_initialization::mom_initialize_topography MOM_initialize_topography neverworld_initialization::neverworld_initialize_topography Neverworld_initialize_topography mom_fixed_initialization::mom_initialize_topography->neverworld_initialization::neverworld_initialize_topography
Text view
real function cosbell(x, L)

Returns the value of a cosine-bell function evaluated at x/L [nondim]

Parameters
  • x [in]

    Position in arbitrary units [A]

  • L [in]

    Width in arbitrary units [A]

  • PI

    3.1415926... calculated as 4*atan(1) [nondim]

Callers call graph
Callers of neverworld_initialization::cosbell calls cluster_neverworld_initialization Neverworld_initialization neverworld_initialization::cosbell cosbell [private/internal] neverworld_initialization::neverworld_initialize_topography Neverworld_initialize_topography neverworld_initialization::neverworld_initialize_topography->neverworld_initialization::cosbell
Text view
real function spike(x, L)

Returns the value of a sin-spike function evaluated at x/L [nondim]

Parameters
  • x [in]

    Position in arbitrary units [A]

  • L [in]

    Width in arbitrary units [A]

  • PI

    3.1415926... calculated as 4*atan(1) [nondim]

Callers call graph
Callers of neverworld_initialization::spike calls cluster_neverworld_initialization Neverworld_initialization neverworld_initialization::neverworld_initialize_thickness Neverworld_initialize_thickness neverworld_initialization::spike spike [private/internal] neverworld_initialization::neverworld_initialize_thickness->neverworld_initialization::spike neverworld_initialization::neverworld_initialize_topography Neverworld_initialize_topography neverworld_initialization::neverworld_initialize_topography->neverworld_initialization::spike
Text view
real function cone(x, x0, L, clip)

Returns the value of a triangular function centered at x=x0 with value 1 and linearly decreasing to 0 at x=x0+/-L, and 0 otherwise [nondim]. If clip is present the top of the cone is cut off at "clip", which effectively defaults to 1.

Parameters
  • x [in]

    Coordinate in arbitrary units [A]

  • x0 [in]

    position of peak in arbitrary units [A]

  • L [in]

    half-width of base of cone in arbitrary units [A]

  • clip [in]

    clipping height of cone [nondim]

Callers call graph
Callers of neverworld_initialization::cone calls cluster_neverworld_initialization Neverworld_initialization neverworld_initialization::circ_ridge circ_ridge [private/internal] neverworld_initialization::cone cone [private/internal] neverworld_initialization::circ_ridge->neverworld_initialization::cone neverworld_initialization::ns_ridge NS_ridge [private/internal] neverworld_initialization::ns_ridge->neverworld_initialization::cone
Text view
real function scurve(x, x0, L)

Returns an s-curve s(x) s.t. s(x0)<=0, s(x0+L)>=1 and cubic in between [nondim].

Parameters
  • x [in]

    Coordinate in arbitrary units [A]

  • x0 [in]

    position of peak in arbitrary units [A]

  • L [in]

    half-width of base of cone in arbitrary units [A]

Callers call graph
Callers of neverworld_initialization::scurve calls cluster_neverworld_initialization Neverworld_initialization neverworld_initialization::cstprof cstprof [private/internal] neverworld_initialization::scurve scurve [private/internal] neverworld_initialization::cstprof->neverworld_initialization::scurve
Text view
real function cstprof(x, x0, L, lf, bf, sf, sh)

Returns a "coastal" profile [nondim].

Parameters
  • x [in]

    Coordinate in arbitrary units [A]

  • x0 [in]

    position of peak in arbitrary units [A]

  • L [in]

    width of profile in arbitrary units [A]

  • lf [in]

    fraction of width that is "land" [nondim]

  • bf [in]

    fraction of width that is "beach" [nondim]

  • sf [in]

    fraction of width that is "continental slope" [nondim]

  • sh [in]

    depth of shelf as fraction of full depth [nondim]

Callees call graph
Callees of neverworld_initialization::cstprof calls cluster_neverworld_initialization Neverworld_initialization neverworld_initialization::cstprof cstprof [private/internal] neverworld_initialization::scurve scurve [private/internal] neverworld_initialization::cstprof->neverworld_initialization::scurve
Text view
Callers call graph
Callers of neverworld_initialization::cstprof calls cluster_neverworld_initialization Neverworld_initialization neverworld_initialization::cstprof cstprof [private/internal] neverworld_initialization::ew_coast EW_coast [private/internal] neverworld_initialization::ew_coast->neverworld_initialization::cstprof neverworld_initialization::ns_coast NS_coast [private/internal] neverworld_initialization::ns_coast->neverworld_initialization::cstprof
Text view
real function dist_line_fixed_x(x, y, x0, y0, y1)

Distance between points x,y and a line segment (x0,y0) and (x0,y1) in arbitrary units [A].

Parameters
  • x [in]

    X-coordinate in arbitrary units [A]

  • y [in]

    Y-coordinate in arbitrary units [A]

  • x0 [in]

    x-position of line segment in arbitrary units [A]

  • y0 [in]

    y-position of line segment end in arbitrary units [A]

  • y1 [in]

    y-position of line segment end in arbitrary units [A]

Callers call graph
Callers of neverworld_initialization::dist_line_fixed_x calls cluster_neverworld_initialization Neverworld_initialization neverworld_initialization::dist_line_fixed_x dist_line_fixed_x [private/internal] neverworld_initialization::dist_line_fixed_y dist_line_fixed_y [private/internal] neverworld_initialization::dist_line_fixed_y->neverworld_initialization::dist_line_fixed_x neverworld_initialization::ns_coast NS_coast [private/internal] neverworld_initialization::ns_coast->neverworld_initialization::dist_line_fixed_x neverworld_initialization::ns_ridge NS_ridge [private/internal] neverworld_initialization::ns_ridge->neverworld_initialization::dist_line_fixed_x
Text view
real function dist_line_fixed_y(x, y, x0, x1, y0)

Distance between points x,y and a line segment (x0,y0) and (x1,y0) in arbitrary units [A].

Parameters
  • x [in]

    X-coordinate in arbitrary units [A]

  • y [in]

    Y-coordinate in arbitrary units [A]

  • x0 [in]

    x-position of line segment end in arbitrary units [A]

  • x1 [in]

    x-position of line segment end in arbitrary units [A]

  • y0 [in]

    y-position of line segment in arbitrary units [A]

Callees call graph
Callees of neverworld_initialization::dist_line_fixed_y calls cluster_neverworld_initialization Neverworld_initialization neverworld_initialization::dist_line_fixed_x dist_line_fixed_x [private/internal] neverworld_initialization::dist_line_fixed_y dist_line_fixed_y [private/internal] neverworld_initialization::dist_line_fixed_y->neverworld_initialization::dist_line_fixed_x
Text view
Callers call graph
Callers of neverworld_initialization::dist_line_fixed_y calls cluster_neverworld_initialization Neverworld_initialization neverworld_initialization::dist_line_fixed_y dist_line_fixed_y [private/internal] neverworld_initialization::ew_coast EW_coast [private/internal] neverworld_initialization::ew_coast->neverworld_initialization::dist_line_fixed_y
Text view
real function NS_coast(lon, lat, lon0, lat0, lat1, dlon, sh)

A "coast profile" applied in an N-S line from lon0,lat0 to lon0,lat1 [nondim].

Parameters
  • lon [in]

    Longitude [degrees_E]

  • lat [in]

    Latitude [degrees_N]

  • lon0 [in]

    Longitude of coast [degrees_E]

  • lat0 [in]

    Latitude of coast end [degrees_N]

  • lat1 [in]

    Latitude of coast end [degrees_N]

  • dlon [in]

    "Radius" of coast profile [degrees]

  • sh [in]

    depth of shelf as fraction of full depth [nondim]

Callees call graph
Callees of neverworld_initialization::ns_coast calls cluster_neverworld_initialization Neverworld_initialization neverworld_initialization::cstprof cstprof [private/internal] neverworld_initialization::dist_line_fixed_x dist_line_fixed_x [private/internal] neverworld_initialization::ns_coast NS_coast [private/internal] neverworld_initialization::ns_coast->neverworld_initialization::cstprof neverworld_initialization::ns_coast->neverworld_initialization::dist_line_fixed_x
Text view
real function EW_coast(lon, lat, lon0, lon1, lat0, dlat, sh)

A "coast profile" applied in an E-W line from lon0,lat0 to lon1,lat0 [nondim].

Parameters
  • lon [in]

    Longitude [degrees_E]

  • lat [in]

    Latitude [degrees_N]

  • lon0 [in]

    Longitude of coast end [degrees_E]

  • lon1 [in]

    Longitude of coast end [degrees_E]

  • lat0 [in]

    Latitude of coast [degrees_N]

  • dlat [in]

    "Radius" of coast profile [degrees]

  • sh [in]

    depth of shelf as fraction of full depth [nondim]

Callees call graph
Callees of neverworld_initialization::ew_coast calls cluster_neverworld_initialization Neverworld_initialization neverworld_initialization::cstprof cstprof [private/internal] neverworld_initialization::dist_line_fixed_y dist_line_fixed_y [private/internal] neverworld_initialization::ew_coast EW_coast [private/internal] neverworld_initialization::ew_coast->neverworld_initialization::cstprof neverworld_initialization::ew_coast->neverworld_initialization::dist_line_fixed_y
Text view
real function NS_ridge(lon, lat, lon0, lat0, lat1, dlon, rh)

A NS ridge [nondim]

Parameters
  • lon [in]

    Longitude [degrees_E]

  • lat [in]

    Latitude [degrees_N]

  • lon0 [in]

    Longitude of ridge center [degrees_E]

  • lat0 [in]

    Latitude of ridge end [degrees_N]

  • lat1 [in]

    Latitude of ridge end [degrees_N]

  • dlon [in]

    "Radius" of ridge profile [degrees]

  • rh [in]

    depth of ridge as fraction of full depth [nondim]

Callees call graph
Callees of neverworld_initialization::ns_ridge calls cluster_neverworld_initialization Neverworld_initialization neverworld_initialization::cone cone [private/internal] neverworld_initialization::dist_line_fixed_x dist_line_fixed_x [private/internal] neverworld_initialization::ns_ridge NS_ridge [private/internal] neverworld_initialization::ns_ridge->neverworld_initialization::cone neverworld_initialization::ns_ridge->neverworld_initialization::dist_line_fixed_x
Text view
real function circ_ridge(lon, lat, lon0, lat0, ring_radius, ring_thickness, ridge_height)

A circular ridge [nondim]

Parameters
  • lon [in]

    Longitude [degrees_E]

  • lat [in]

    Latitude [degrees_N]

  • lon0 [in]

    Longitude of center of ring [degrees_E]

  • lat0 [in]

    Latitude of center of ring [degrees_N]

  • ring_radius [in]

    Radius of ring [degrees]

  • ring_thickness [in]

    Radial thickness of ring [degrees]

  • ridge_height [in]

    Ridge height as fraction of full depth [nondim]

Callees call graph
Callees of neverworld_initialization::circ_ridge calls cluster_neverworld_initialization Neverworld_initialization neverworld_initialization::circ_ridge circ_ridge [private/internal] neverworld_initialization::cone cone [private/internal] neverworld_initialization::circ_ridge->neverworld_initialization::cone
Text view
subroutine Neverworld_initialize_thickness(h, depth_tot, G, GV, US, param_file, P_ref)

This subroutine initializes layer thicknesses for the Neverworld test case, by finding the depths of interfaces in a specified latitude-dependent temperature profile with an exponentially decaying thermocline on top of a linear stratification.

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.

  • P_Ref [in]

    The coordinate-density reference pressure [R L2 T-2 ~> Pa].

Callees call graph
Callees of neverworld_initialization::neverworld_initialize_thickness calls cluster_mom_error_handler MOM_error_handler cluster_mom_file_parser MOM_file_parser cluster_neverworld_initialization Neverworld_initialization mom_error_handler::mom_mesg MOM_mesg mom_file_parser::interface::get_param get_param (interface) neverworld_initialization::neverworld_initialize_thickness Neverworld_initialize_thickness neverworld_initialization::neverworld_initialize_thickness->mom_error_handler::mom_mesg neverworld_initialization::neverworld_initialize_thickness->mom_file_parser::interface::get_param neverworld_initialization::spike spike [private/internal] neverworld_initialization::neverworld_initialize_thickness->neverworld_initialization::spike
Text view
Callers call graph
Callers of neverworld_initialization::neverworld_initialize_thickness calls cluster_mom_state_initialization MOM_state_initialization cluster_neverworld_initialization Neverworld_initialization mom_state_initialization::mom_initialize_state MOM_initialize_state neverworld_initialization::neverworld_initialize_thickness Neverworld_initialize_thickness mom_state_initialization::mom_initialize_state->neverworld_initialization::neverworld_initialize_thickness
Text view

External calls

random_numbers_mod
  • getRandomNumbers (random_numbers_mod::getrandomnumbers)

  • initializeRandomNumberStream (random_numbers_mod::initializerandomnumberstream)

API generated with Flint · Rendered from reStructuredText