Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sfx
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
sfx
Commits
3b922508
Commit
3b922508
authored
1 month ago
by
Victoria Suiazova
Committed by
Anna Shestakova
3 weeks ago
Browse files
Options
Downloads
Patches
Plain Diff
iterations foe snow Ri
parent
4c1ef609
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
srcF/sfx_sheba_noniterative.f90
+21
-12
21 additions, 12 deletions
srcF/sfx_sheba_noniterative.f90
with
21 additions
and
12 deletions
srcF/sfx_sheba_noniterative.f90
+
21
−
12
View file @
3b922508
...
...
@@ -280,7 +280,12 @@ contains
! --- define relative height [thermal]
h0_t
=
h
/
z0_t
! --- define Ri-bulk
Rib
=
(
g
/
Tsemi
)
*
h
*
(
dT
+
0.61e0
*
Tsemi
*
dQ
)
/
U
**
2
! --- define free convection transition zeta = z/L value
call
get_convection_lim
(
zeta_conv_lim
,
Rib_conv_lim
,
f_m_conv_lim
,
f_h_conv_lim
,
&
h0_m
,
h0_t
,
B
)
! --- define snow consentration
call
get_sigma
(
sigma_r
,
sigma_w
,
rho_air
,
rho_s
)
...
...
@@ -291,14 +296,9 @@ contains
deltaS
=
S_salt
-
S_mean
! --- define Ri-bulk
Rib
=
(
g
/
Tsemi
)
*
h
*
(
dT
+
0.61e0
*
Tsemi
*
dQ
)
/
U
**
2
Ri_sn
=
(
g
*
sigma_r
*
deltaS
*
h
)
/
U
**
2
!write(*,*) 'ri', S_salt, h_salt, h, w_snow, u_dyn0
! --- define free convection transition zeta = z/L value
call
get_convection_lim
(
zeta_conv_lim
,
Rib_conv_lim
,
f_m_conv_lim
,
f_h_conv_lim
,
&
h0_m
,
h0_t
,
B
)
! --- get the fluxes
! ----------------------------------------------------------------------------
...
...
@@ -309,9 +309,9 @@ contains
! --- restrict bulk Ri value
! *: note that this value is written to output
! Rib = min(Rib, Rib_max)
do
i
=
1
,
maxiters
if
(
surface_type
==
surface_snow
)
then
write
(
*
,
*
)
'sfx_snow1'
,
Ri_sn
,
Rib
,
U
,
deltaS
write
(
*
,
*
)
'sfx_snow1'
,
Ri_sn
,
Rib
,
U
,
deltaS
,
i
!write(*,*) 'sfx_snow2', deltaS, u_dyn0, S_mean
Rib
=
Rib
+
Ri_sn
endif
...
...
@@ -326,8 +326,17 @@ contains
Udyn
=
kappa
*
U
/
(
log
(
h
/
z0_m
)
-
(
psi_m
-
psi0_m
))
Tdyn
=
kappa
*
dT
*
Pr_t_0_inv
/
(
log
(
h
/
z0_t
)
-
(
psi_h
-
psi0_h
))
else
if
(
Rib
<
Rib_conv_lim
)
then
call
get_h_salt
(
h_salt
,
Udyn
)
call
get_S_salt
(
S_salt
,
Udyn
,
u_thsnow
,
g
,
h_salt
)
call
get_S_mean
(
S_mean
,
S_salt
,
h_salt
,
h
,
w_snow
,
Udyn
)
deltaS
=
S_salt
-
S_mean
Ri_sn
=
(
g
*
sigma_r
*
deltaS
*
h
)
/
U
**
2
end
do
else
if
(
Rib
<
Rib_conv_lim
)
then
! --- strong instability block
call
get_psi_convection
(
psi_m
,
psi_h
,
zeta
,
Rib
,
&
...
...
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