Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
ocean-mixing
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
inmcm-mirror
ocean-mixing
Commits
116521a1
Commit
116521a1
authored
7 months ago
by
Evgeny Mortikov
Browse files
Options
Downloads
Patches
Plain Diff
pacanowski-philander module update
parent
5b3def02
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
obl_main.f90
+6
-2
6 additions, 2 deletions
obl_main.f90
obl_pacanowski_philander.f90
+11
-27
11 additions, 27 deletions
obl_pacanowski_philander.f90
with
17 additions
and
29 deletions
obl_main.f90
+
6
−
2
View file @
116521a1
...
@@ -42,6 +42,9 @@ program obl_main
...
@@ -42,6 +42,9 @@ program obl_main
type
(
gridDataType
)
::
grid
type
(
gridDataType
)
::
grid
! turbulence closure parameters
type
(
pacanowskiParamType
)
::
param_pacanowski
#ifdef OBL_USE_TSLICE_OUTPUT
#ifdef OBL_USE_TSLICE_OUTPUT
! time slice
! time slice
type
(
oblTimeSlice
)
::
output_Theta
,
output_Salin
type
(
oblTimeSlice
)
::
output_Theta
,
output_Salin
...
@@ -362,8 +365,9 @@ program obl_main
...
@@ -362,8 +365,9 @@ program obl_main
call
get_dyn_velocity
(
u_dynH
,
flux_u_surf_res
,
flux_v_surf_res
)
call
get_dyn_velocity
(
u_dynH
,
flux_u_surf_res
,
flux_v_surf_res
)
call
get_lab_mld
(
lab_mld
,
u_dynH
,
N2_0
,
time_current
,
z
)
call
get_lab_mld
(
lab_mld
,
u_dynH
,
N2_0
,
time_current
,
z
)
if
(
closure_mode
.eq.
1
)
then
if
(
closure_mode
.eq.
1
)
then
call
get_Km
(
Km
,
Ri_grad
,
nz
)
call
get_eddy_viscosity
(
Km
,
Ri_grad
,
param_pacanowski
,
nz
)
call
get_Kh
(
Kh
,
Ri_grad
,
nz
)
call
get_eddy_diffusivity
(
Kh
,
Ri_grad
,
param_pacanowski
,
nz
)
call
get_TKE_generation
(
P_TKE
,
Km
,
S2
,
nz
)
call
get_TKE_generation
(
P_TKE
,
Km
,
S2
,
nz
)
call
get_TKE_buoyancy
(
B_TKE
,
Kh
,
N2
,
nz
)
call
get_TKE_buoyancy
(
B_TKE
,
Kh
,
N2
,
nz
)
else
if
(
closure_mode
.eq.
2
)
then
else
if
(
closure_mode
.eq.
2
)
then
...
...
This diff is collapsed.
Click to expand it.
obl_pacanowski_philander.f90
+
11
−
27
View file @
116521a1
...
@@ -7,13 +7,6 @@ module obl_pacanowski_philander
...
@@ -7,13 +7,6 @@ module obl_pacanowski_philander
! directives list
! directives list
implicit
none
implicit
none
real
,
parameter
::
Km_0
=
2.0
*
0.01
!< eddy viscosity for momentum, [m**2 / s] 7.0 * 0.01
real
,
parameter
::
alpha_turb
=
5.0
!< constant
real
,
parameter
::
n_turb
=
2.0
!< constant
real
,
parameter
::
Km_b
=
0.0001
!< background eddy viscosity for momentum, [m**2 / s] - 5 * 10**(-6) in inmcm
real
,
parameter
::
Kh_0
=
2.0
*
0.01
!< background eddy diffusivity for tracers, [m**2 / s] 5.0 * 0.01
real
,
parameter
::
Kh_b
=
0.00001
!< background eddy diffusivity for tracers, [m**2 / s]
!> @brief Pacanowski-Philander parameters
!> @brief Pacanowski-Philander parameters
type
,
public
::
pacanowskiParamType
type
,
public
::
pacanowskiParamType
real
::
Km_0
=
2.0
*
0.01
!< neutral eddy viscosity, [m**2 / s] *: INMCM: 7.0 * 0.01
real
::
Km_0
=
2.0
*
0.01
!< neutral eddy viscosity, [m**2 / s] *: INMCM: 7.0 * 0.01
...
@@ -26,18 +19,6 @@ module obl_pacanowski_philander
...
@@ -26,18 +19,6 @@ module obl_pacanowski_philander
contains
contains
subroutine
get_Km
(
Km
,
Ri_grad
,
nz
)
!< @brief calculate momentum transfer coefficient in P-Ph closure
integer
,
intent
(
in
)
::
nz
!< number of z-steps
real
,
intent
(
in
)
::
Ri_grad
(
nz
)
!< Richardson gradient number
real
,
intent
(
out
)
::
Km
(
nz
)
!< eddy viscosity for momentum, [m**2 / s]
integer
::
k
!< counter
do
k
=
1
,
nz
Km
(
k
)
=
Km_0
/
(
1.0
+
alpha_turb
*
Ri_grad
(
k
))
**
(
n_turb
)
+
Km_b
end
do
end
subroutine
subroutine
get_eddy_viscosity
(
Km
,
Ri_grad
,
param
,
nz
)
subroutine
get_eddy_viscosity
(
Km
,
Ri_grad
,
param
,
nz
)
!< @brief calculate eddy viscosity
!< @brief calculate eddy viscosity
type
(
pacanowskiParamType
),
intent
(
in
)
::
param
type
(
pacanowskiParamType
),
intent
(
in
)
::
param
...
@@ -49,20 +30,23 @@ module obl_pacanowski_philander
...
@@ -49,20 +30,23 @@ module obl_pacanowski_philander
integer
::
k
integer
::
k
do
k
=
1
,
nz
do
k
=
1
,
nz
Km
(
k
)
=
Km_0
/
(
1.0
+
param
%
alpha
*
Ri_grad
(
k
))
**
(
param
%
n
)
+
param
%
Km_b
Km
(
k
)
=
param
%
Km_0
/
(
1.0
+
param
%
alpha
*
Ri_grad
(
k
))
**
(
param
%
n
)
+
param
%
Km_b
end
do
end
do
end
subroutine
end
subroutine
subroutine
get_Kh
(
Kh
,
Ri_grad
,
nz
)
subroutine
get_eddy_diffusivity
(
Kh
,
Ri_grad
,
param
,
nz
)
!< @brief calculate scalar transfer coefficient in in P-Ph+ closure
!< @brief calculate scalar transfer coefficient in in P-Ph+ closure
type
(
pacanowskiParamType
),
intent
(
in
)
::
param
integer
,
intent
(
in
)
::
nz
!< number of z-steps
integer
,
intent
(
in
)
::
nz
!< number of z-steps
real
,
intent
(
in
)
::
Ri_grad
(
nz
)
!< Richardson gradient number
real
,
dimension
(
nz
),
intent
(
in
)
::
Ri_grad
!< Richardson gradient number
real
,
intent
(
out
)
::
Kh
(
nz
)
!eddy diffusivity for tracers, [m**2 / s]
real
,
dimension
(
nz
),
intent
(
out
)
::
Kh
!eddy diffusivity for tracers, [m**2 / s]
integer
::
k
!< counter
integer
::
k
do
k
=
1
,
nz
do
k
=
1
,
nz
Kh
(
k
)
=
Kh_0
/
(
1.0
+
alpha_turb
*
Ri_grad
(
k
))
**
(
n_turb
+
1.0
)
&
Kh
(
k
)
=
param
%
Kh_0
/
(
1.0
+
param
%
alpha
*
Ri_grad
(
k
))
**
(
param
%
n
+
1.0
)
+
param
%
Kh_b
+
Kh_b
end
do
end
do
end
subroutine
end
subroutine
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment