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
60f1a4b0
Commit
60f1a4b0
authored
6 months ago
by
Daria Gladskikh
Browse files
Options
Downloads
Patches
Plain Diff
unstable in p-ph dyn
parent
b25ffec3
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_pph.f90
+1
-1
1 addition, 1 deletion
obl_pph.f90
obl_pph_dyn.f90
+29
-2
29 additions, 2 deletions
obl_pph_dyn.f90
with
30 additions
and
3 deletions
obl_pph.f90
+
1
−
1
View file @
60f1a4b0
...
@@ -42,7 +42,7 @@ module obl_pph
...
@@ -42,7 +42,7 @@ module obl_pph
real
::
Kh_b
=
0.00001
!< background eddy diffusivity, [m**2 / s]
real
::
Kh_b
=
0.00001
!< background eddy diffusivity, [m**2 / s]
real
::
Km_unstable
=
100.0
!< unstable eddy viscosity, [m**2 / s] *:
real
::
Km_unstable
=
100.0
!< unstable eddy viscosity, [m**2 / s] *:
real
::
Kh_unstable
=
100.0
!< unstable eddy diffusivity, [m**2 / s], *:
INMCM: 5.0 * 0.01
real
::
Kh_unstable
=
100.0
!< unstable eddy diffusivity, [m**2 / s], *:
real
::
kappa
=
0.4
!< von Karman constant, [n/d]
real
::
kappa
=
0.4
!< von Karman constant, [n/d]
real
::
PrT0
=
1.0
!< neutral Prandtl number, [n/d]
real
::
PrT0
=
1.0
!< neutral Prandtl number, [n/d]
...
...
This diff is collapsed.
Click to expand it.
obl_pph_dyn.f90
+
29
−
2
View file @
60f1a4b0
...
@@ -39,6 +39,9 @@ module obl_pph_dyn
...
@@ -39,6 +39,9 @@ module obl_pph_dyn
real
::
Km_b
=
0.0001
!< background eddy viscosity, [m**2 / s], *: INMCM: 5 * 10**(-6)
real
::
Km_b
=
0.0001
!< background eddy viscosity, [m**2 / s], *: INMCM: 5 * 10**(-6)
real
::
Kh_b
=
0.00001
!< background eddy diffusivity, [m**2 / s]
real
::
Kh_b
=
0.00001
!< background eddy diffusivity, [m**2 / s]
real
::
Km_unstable
=
100.0
!< unstable eddy viscosity, [m**2 / s] *:
real
::
Kh_unstable
=
100.0
!< unstable eddy diffusivity, [m**2 / s], *:
real
::
C_l
=
4.0
/
9.0
!< length scale tuning constant, [n/d], *: = (4.0 / pi^2) in Obukhov length scale
real
::
C_l
=
4.0
/
9.0
!< length scale tuning constant, [n/d], *: = (4.0 / pi^2) in Obukhov length scale
real
::
kappa
=
0.4
!< von Karman constant
real
::
kappa
=
0.4
!< von Karman constant
...
@@ -150,7 +153,11 @@ module obl_pph_dyn
...
@@ -150,7 +153,11 @@ module obl_pph_dyn
Km_0
=
param
%
C_l
*
U_dynH
*
param
%
kappa
*
mld
/
2.0
Km_0
=
param
%
C_l
*
U_dynH
*
param
%
kappa
*
mld
/
2.0
do
k
=
1
,
cz
do
k
=
1
,
cz
if
(
Ri_grad
(
k
)
>=
0.0
)
then
Km
(
k
)
=
Km_0
/
(
1.0
+
param
%
alpha
*
Ri_grad
(
k
))
**
(
param
%
n
)
+
param
%
Km_b
Km
(
k
)
=
Km_0
/
(
1.0
+
param
%
alpha
*
Ri_grad
(
k
))
**
(
param
%
n
)
+
param
%
Km_b
else
Km
(
k
)
=
param
%
Km_unstable
endif
end
do
end
do
end
subroutine
end
subroutine
...
@@ -190,7 +197,11 @@ module obl_pph_dyn
...
@@ -190,7 +197,11 @@ module obl_pph_dyn
Kh_0
=
param
%
C_l
*
U_dynH
*
param
%
kappa
*
mld
/
2.0
Kh_0
=
param
%
C_l
*
U_dynH
*
param
%
kappa
*
mld
/
2.0
do
k
=
1
,
cz
do
k
=
1
,
cz
if
(
Ri_grad
(
k
)
>=
0.0
)
then
Kh
(
k
)
=
Kh_0
/
(
1.0
+
param
%
alpha
*
Ri_grad
(
k
))
**
(
param
%
n
+
1.0
)
+
param
%
Kh_b
Kh
(
k
)
=
Kh_0
/
(
1.0
+
param
%
alpha
*
Ri_grad
(
k
))
**
(
param
%
n
+
1.0
)
+
param
%
Kh_b
else
Kh
(
k
)
=
param
%
Kh_unstable
endif
end
do
end
do
end
subroutine
end
subroutine
...
@@ -241,6 +252,22 @@ call c_config_is_varname(trim(tag)//".alpha"//C_NULL_CHAR, status)
...
@@ -241,6 +252,22 @@ call c_config_is_varname(trim(tag)//".alpha"//C_NULL_CHAR, status)
return
return
end
if
end
if
endif
endif
call
c_config_is_varname
(
trim
(
tag
)//
".Km_unstable"
//
C_NULL_CHAR
,
status
)
if
(
status
/
=
0
)
then
call
c_config_get_float
(
trim
(
tag
)//
".Km_unstable"
//
C_NULL_CHAR
,
param
%
Km_unstable
,
status
)
if
(
status
==
0
)
then
ierr
=
1
! signal ERROR
return
end
if
endif
call
c_config_is_varname
(
trim
(
tag
)//
".Kh_unstable"
//
C_NULL_CHAR
,
status
)
if
(
status
/
=
0
)
then
call
c_config_get_float
(
trim
(
tag
)//
".Kh_unstable"
//
C_NULL_CHAR
,
param
%
Kh_unstable
,
status
)
if
(
status
==
0
)
then
ierr
=
1
! signal ERROR
return
end
if
endif
call
c_config_is_varname
(
trim
(
tag
)//
".C_l"
//
C_NULL_CHAR
,
status
)
call
c_config_is_varname
(
trim
(
tag
)//
".C_l"
//
C_NULL_CHAR
,
status
)
if
(
status
/
=
0
)
then
if
(
status
/
=
0
)
then
call
c_config_get_float
(
trim
(
tag
)//
".C_l"
//
C_NULL_CHAR
,
param
%
C_l
,
status
)
call
c_config_get_float
(
trim
(
tag
)//
".C_l"
//
C_NULL_CHAR
,
param
%
C_l
,
status
)
...
...
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