MOM6
soliton_initialization Module Reference

Detailed Description

Initial conditions for the Equatorial Rossby soliton test (Boyd).

Description of the equatorial Rossby soliton initial

conditions

Functions/Subroutines

subroutine, public soliton_initialize_thickness (h, G)
 Initialization of thicknesses in Equatorial Rossby soliton test. More...
 
subroutine, public soliton_initialize_velocity (u, v, h, G)
 Initialization of u and v in the equatorial Rossby soliton test. More...
 

Variables

character(len=40) mdl = "soliton_initialization"
 This module's name. More...
 

Function/Subroutine Documentation

◆ soliton_initialize_thickness()

subroutine, public soliton_initialization::soliton_initialize_thickness ( real, dimension(szi_(g),szj_(g), szk_(g)), intent(out)  h,
type(ocean_grid_type), intent(in)  G 
)

Initialization of thicknesses in Equatorial Rossby soliton test.

Parameters
[in]gGrid structure
[out]hThickness

Definition at line 34 of file soliton_initialization.F90.

References mom_error_handler::mom_mesg().

Referenced by mom_state_initialization::mom_initialize_state().

34  type(ocean_grid_type), intent(in) :: g !< Grid structure
35  real, dimension(SZI_(G),SZJ_(G), SZK_(G)), intent(out) :: h !< Thickness
36 
37  integer :: i, j, k, is, ie, js, je, nz
38  real :: x, y, x0, y0
39  real :: val1, val2, val3, val4
40  character(len=40) :: verticalcoordinate
41 
42  is = g%isc ; ie = g%iec ; js = g%jsc ; je = g%jec ; nz = g%ke
43 
44  call mom_mesg("soliton_initialization.F90, soliton_initialize_thickness: setting thickness")
45 
46  x0 = 2.0*g%len_lon/3.0
47  y0 = 0.0
48  val1 = 0.395
49  val2 = 0.771*(val1*val1)
50 
51  do j = g%jsc,g%jec ; do i = g%isc,g%iec
52  do k = 1, nz
53  x = g%geoLonT(i,j)-x0
54  y = g%geoLatT(i,j)-y0
55  val3 = exp(-val1*x)
56  val4 = val2*((2.0*val3/(1.0+(val3*val3)))**2)
57  h(i,j,k) = 0.25*val4*(6.0*y*y+3.0)* &
58  exp(-0.5*y*y)
59  enddo
60  end do ; end do
61 
Ocean grid type. See mom_grid for details.
Definition: MOM_grid.F90:19
Here is the call graph for this function:
Here is the caller graph for this function:

◆ soliton_initialize_velocity()

subroutine, public soliton_initialization::soliton_initialize_velocity ( real, dimension(szib_(g),szj_(g),szk_(g)), intent(out)  u,
real, dimension(szi_(g),szjb_(g),szk_(g)), intent(out)  v,
real, dimension(szi_(g),szj_(g), szk_(g)), intent(in)  h,
type(ocean_grid_type), intent(in)  G 
)

Initialization of u and v in the equatorial Rossby soliton test.

Parameters
[in]gGrid structure
[out]ui-component of velocity [m/s]
[out]vj-component of velocity [m/s]
[in]hThickness [H]

Definition at line 67 of file soliton_initialization.F90.

67  type(ocean_grid_type), intent(in) :: g !< Grid structure
68  real, dimension(SZIB_(G),SZJ_(G),SZK_(G)), intent(out) :: u !< i-component of velocity [m/s]
69  real, dimension(SZI_(G),SZJB_(G),SZK_(G)), intent(out) :: v !< j-component of velocity [m/s]
70  real, dimension(SZI_(G),SZJ_(G), SZK_(G)), intent(in) :: h !< Thickness [H]
71 
72  real :: x, y, x0, y0
73  real :: val1, val2, val3, val4
74  integer :: i, j, k, is, ie, js, je, nz
75 
76  is = g%isc ; ie = g%iec ; js = g%jsc ; je = g%jec ; nz = g%ke
77 
78  x0 = 2.0*g%len_lon/3.0
79  y0 = 0.0
80  val1 = 0.395
81  val2 = 0.771*(val1*val1)
82 
83  v(:,:,:) = 0.0
84  u(:,:,:) = 0.0
85 
86  do j = g%jsc,g%jec ; do i = g%isc-1,g%iec+1
87  do k = 1, nz
88  x = 0.5*(g%geoLonT(i+1,j)+g%geoLonT(i,j))-x0
89  y = 0.5*(g%geoLatT(i+1,j)+g%geoLatT(i,j))-y0
90  val3 = exp(-val1*x)
91  val4 = val2*((2.0*val3/(1.0+(val3*val3)))**2)
92  u(i,j,k) = 0.25*val4*(6.0*y*y-9.0)* &
93  exp(-0.5*y*y)
94  enddo
95  enddo ; enddo
96  do j = g%jsc-1,g%jec+1 ; do i = g%isc,g%iec
97  do k = 1, nz
98  x = 0.5*(g%geoLonT(i,j+1)+g%geoLonT(i,j))-x0
99  y = 0.5*(g%geoLatT(i,j+1)+g%geoLatT(i,j))-y0
100  val3 = exp(-val1*x)
101  val4 = val2*((2.0*val3/(1.0+(val3*val3)))**2)
102  v(i,j,k) = 2.0*val4*y*(-2.0*val1*tanh(val1*x))* &
103  exp(-0.5*y*y)
104  enddo
105  enddo ; enddo
106 
Ocean grid type. See mom_grid for details.
Definition: MOM_grid.F90:19

Variable Documentation

◆ mdl

character(len=40) soliton_initialization::mdl = "soliton_initialization"
private

This module's name.

Definition at line 25 of file soliton_initialization.F90.

25 character(len=40) :: mdl = "soliton_initialization" !< This module's name.