Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
NOCSurfaceProcesses
AirSeaFluxCode
Commits
e48e78d3
Commit
e48e78d3
authored
2 years ago
by
sbiri
Browse files
Options
Download
Email Patches
Plain Diff
Update AirSeaFluxCode/src/util_subs.py, AirSeaFluxCode/src/cs_wl_subs.py files
parent
3c11dc3e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
AirSeaFluxCode/src/cs_wl_subs.py
AirSeaFluxCode/src/cs_wl_subs.py
+2
-2
AirSeaFluxCode/src/util_subs.py
AirSeaFluxCode/src/util_subs.py
+1
-1
No files found.
AirSeaFluxCode/src/cs_wl_subs.py
View file @
e48e78d3
...
@@ -224,9 +224,9 @@ def delta(aw, Q, usr, grav):
...
@@ -224,9 +224,9 @@ def delta(aw, Q, usr, grav):
# u* in the water
# u* in the water
usr_w
=
np
.
maximum
(
usr
,
1e-4
)
*
np
.
sqrt
(
1.2
/
rhow
)
# rhoa=1.2
usr_w
=
np
.
maximum
(
usr
,
1e-4
)
*
np
.
sqrt
(
1.2
/
rhow
)
# rhoa=1.2
rcst_cs
=
16
*
grav
*
np
.
power
(
visw
,
3
)
/
np
.
power
(
tcw
,
2
)
rcst_cs
=
16
*
grav
*
np
.
power
(
visw
,
3
)
/
np
.
power
(
tcw
,
2
)
lm
=
6
*
(
1
+
np
.
maximum
(
Q
*
aw
*
rcst_cs
/
np
.
power
(
usr_w
,
4
)
,
0
)
**
0.75
)
**
(
-
1
/
3
)
lm
=
6
*
(
1
+
(
np
.
abs
(
Q
)
*
aw
*
rcst_cs
/
np
.
power
(
usr_w
,
4
))
**
0.75
)
**
(
-
1
/
3
)
ztmp
=
visw
/
usr_w
ztmp
=
visw
/
usr_w
delta
=
np
.
where
(
Q
>
0
,
np
.
minimum
(
6
*
ztmp
,
0.007
),
lm
*
ztmp
)
delta
=
np
.
where
(
Q
>
0
,
np
.
minimum
(
6
*
ztmp
,
0.007
),
np
.
minimum
(
lm
*
ztmp
,
0.007
)
)
return
delta
return
delta
# ---------------------------------------------------------------------
# ---------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
AirSeaFluxCode/src/util_subs.py
View file @
e48e78d3
...
@@ -186,7 +186,7 @@ def get_outvars(out_var, cskin, gust):
...
@@ -186,7 +186,7 @@ def get_outvars(out_var, cskin, gust):
"usr"
,
"psim"
,
"psit"
,
"psiq"
,
"psim_ref"
,
"psit_ref"
,
"usr"
,
"psim"
,
"psit"
,
"psiq"
,
"psim_ref"
,
"psit_ref"
,
"psiq_ref"
,
"u10n"
,
"t10n"
,
"q10n"
,
"zo"
,
"zot"
,
"zoq"
,
"psiq_ref"
,
"u10n"
,
"t10n"
,
"q10n"
,
"zo"
,
"zot"
,
"zoq"
,
"uref"
,
"tref"
,
"qref"
,
"dter"
,
"dqer"
,
"dtwl"
,
"tkt"
,
"uref"
,
"tref"
,
"qref"
,
"dter"
,
"dqer"
,
"dtwl"
,
"tkt"
,
"Rl"
,
"Rs"
,
"Rnl""qair"
,
"qsea"
,
"Rb"
,
"rh"
,
"rho"
,
"Rl"
,
"Rs"
,
"Rnl"
,
"qair"
,
"qsea"
,
"Rb"
,
"rh"
,
"rho"
,
"cp"
,
"lv"
,
"theta"
,
"itera"
)
"cp"
,
"lv"
,
"theta"
,
"itera"
)
elif
cskin
==
0
and
gust
[
0
]
!=
0
:
# skin OFF and gust ON
elif
cskin
==
0
and
gust
[
0
]
!=
0
:
# skin OFF and gust ON
res_vars
=
(
"tau"
,
"sensible"
,
"latent"
,
"monob"
,
"cd"
,
"cd10n"
,
res_vars
=
(
"tau"
,
"sensible"
,
"latent"
,
"monob"
,
"cd"
,
"cd10n"
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment