Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
abl-mirror
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
abl-mirror
Commits
ee31c3de
Commit
ee31c3de
authored
4 months ago
by
Debolskiy Andrey
Browse files
Options
Downloads
Patches
Plain Diff
cntrgradient rework
parent
47f3b3a0
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pbl_dry_contrgradient.f90
+11
-5
11 additions, 5 deletions
src/pbl_dry_contrgradient.f90
with
11 additions
and
5 deletions
src/pbl_dry_contrgradient.f90
+
11
−
5
View file @
ee31c3de
...
@@ -39,7 +39,7 @@ module pbl_dry_contrgradient
...
@@ -39,7 +39,7 @@ module pbl_dry_contrgradient
end
subroutine
allocate_cbl
end
subroutine
allocate_cbl
subroutine
deallocate_cbl
(
cbl
)
subroutine
deallocate_cbl
(
cbl
)
type
(
pblContrGradDataType
),
intent
(
out
)::
cbl
type
(
pblContrGradDataType
),
intent
(
in
out
)::
cbl
deallocate
(
cbl
%
entr
)
deallocate
(
cbl
%
entr
)
deallocate
(
cbl
%
theta_up
)
deallocate
(
cbl
%
theta_up
)
...
@@ -49,7 +49,7 @@ module pbl_dry_contrgradient
...
@@ -49,7 +49,7 @@ module pbl_dry_contrgradient
deallocate
(
cbl
%
va_up
)
deallocate
(
cbl
%
va_up
)
deallocate
(
cbl
%
wu
)
deallocate
(
cbl
%
wu
)
end
subroutine
deallocate_cbl
end
subroutine
deallocate_cbl
subroutine
get_entrainment
(
cbl
,
turb
,
bl
,
fluid
,
grid
)
subroutine
get_entrainment
(
cbl
,
bl
,
fluid
,
grid
)
use
scm_state_data
,
only
:
stateBLDataType
use
scm_state_data
,
only
:
stateBLDataType
use
pbl_turb_data
,
only
:
turbBLDataType
use
pbl_turb_data
,
only
:
turbBLDataType
use
phys_fluid
,
only
:
fluidParamsDataType
use
phys_fluid
,
only
:
fluidParamsDataType
...
@@ -57,7 +57,6 @@ module pbl_dry_contrgradient
...
@@ -57,7 +57,6 @@ module pbl_dry_contrgradient
implicit
none
implicit
none
type
(
pblContrGradDataType
)
::
cbl
type
(
pblContrGradDataType
)
::
cbl
type
(
stateBLDataType
),
intent
(
inout
)::
bl
type
(
stateBLDataType
),
intent
(
inout
)::
bl
type
(
turbBLDataType
),
intent
(
in
)::
turb
type
(
fluidParamsDataType
),
intent
(
in
)
::
fluid
type
(
fluidParamsDataType
),
intent
(
in
)
::
fluid
type
(
pblgridDataType
),
intent
(
in
)
::
grid
type
(
pblgridDataType
),
intent
(
in
)
::
grid
...
@@ -147,7 +146,9 @@ module pbl_dry_contrgradient
...
@@ -147,7 +146,9 @@ module pbl_dry_contrgradient
real
wu
,
phys_beta
,
umod
,
ustr
,
rhs
,
a
,
b
,
dz
real
wu
,
phys_beta
,
umod
,
ustr
,
rhs
,
a
,
b
,
dz
integer
k
,
kmax
integer
k
,
kmax
kmax
=
grid
%
kmax
kmax
=
grid
%
kmax
cbl
%
wu
=
0.0
cbl
%
wu
(:)
=
0.0
umod
=
sqrt
(
bl
%
u
(
kmax
)
*
bl
%
u
(
kmax
)
+
bl
%
v
(
kmax
)
*
bl
%
v
(
kmax
))
umod
=
sqrt
(
bl
%
u
(
kmax
)
*
bl
%
u
(
kmax
)
+
bl
%
v
(
kmax
)
*
bl
%
v
(
kmax
))
ustr
=
sqrt
(
bl
%
surf
%
cm2u
/
bl
%
rho
(
kmax
)
*
umod
)
ustr
=
sqrt
(
bl
%
surf
%
cm2u
/
bl
%
rho
(
kmax
)
*
umod
)
phys_beta
=
0.5
*
fluid
%
g
/(
bl
%
theta_v
(
kmax
)
+
bl
%
theta_v
(
kmax
-1
))
phys_beta
=
0.5
*
fluid
%
g
/(
bl
%
theta_v
(
kmax
)
+
bl
%
theta_v
(
kmax
-1
))
...
@@ -181,7 +182,7 @@ module pbl_dry_contrgradient
...
@@ -181,7 +182,7 @@ module pbl_dry_contrgradient
use
phys_fluid
,
only
:
fluidParamsDataType
use
phys_fluid
,
only
:
fluidParamsDataType
use
pbl_grid
,
only
:
pblgridDataType
use
pbl_grid
,
only
:
pblgridDataType
implicit
none
implicit
none
type
(
pblContrGradDataType
)
::
cbl
type
(
pblContrGradDataType
)
,
intent
(
inout
)
::
cbl
type
(
stateBLDataType
),
intent
(
inout
)::
bl
type
(
stateBLDataType
),
intent
(
inout
)::
bl
type
(
fluidParamsDataType
),
intent
(
in
)
::
fluid
type
(
fluidParamsDataType
),
intent
(
in
)
::
fluid
type
(
pblgridDataType
),
intent
(
in
)
::
grid
type
(
pblgridDataType
),
intent
(
in
)
::
grid
...
@@ -194,6 +195,11 @@ module pbl_dry_contrgradient
...
@@ -194,6 +195,11 @@ module pbl_dry_contrgradient
kmax
=
grid
%
kmax
kmax
=
grid
%
kmax
kpbl
=
bl
%
kpbl
kpbl
=
bl
%
kpbl
a0w0
=
0.15
*
cbl
%
wu
(
kpbl
)
a0w0
=
0.15
*
cbl
%
wu
(
kpbl
)
call
get_entrainment
(
cbl
,
bl
,
fluid
,
grid
)
call
get_up
(
cbl
,
bl
,
fluid
,
grid
)
call
get_wu
(
cbl
,
bl
,
fluid
,
grid
)
!apply upwind
!apply upwind
rhs_up
(:)
=
0
rhs_up
(:)
=
0
do
k
=
kmax
-1
,
1
,
-1
do
k
=
kmax
-1
,
1
,
-1
...
...
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