Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Méso-NH code
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RODIER Quentin
Méso-NH code
Commits
bd1dada2
Commit
bd1dada2
authored
4 years ago
by
WAUTELET Philippe
Browse files
Options
Downloads
Patches
Plain Diff
Philippe 19/02/2021: budgets: TR source term correctly computed
parent
69018883
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/MNH/tke_eps_sources.f90
+11
-2
11 additions, 2 deletions
src/MNH/tke_eps_sources.f90
with
11 additions
and
2 deletions
src/MNH/tke_eps_sources.f90
+
11
−
2
View file @
bd1dada2
...
...
@@ -273,7 +273,6 @@ IKE=KKU-JPVEXT_TURB*KKL
ZKEFF
(:,:,:)
=
PLM
(:,:,:)
*
SQRT
(
PTKEM
(:,:,:))
if
(
lbudget_th
)
call
Budget_store_init
(
tbudgets
(
NBUDGET_TH
),
'DISSH'
,
prthls
(:,
:,
:)
)
if
(
lbudget_tke
)
call
Budget_store_init
(
tbudgets
(
NBUDGET_TKE
),
'TR'
,
prtkes
(:,
:,
:)
)
!----------------------------------------------------------------------------
!
...
...
@@ -303,7 +302,7 @@ PDP(:,:,IKB) = PDP(:,:,IKB) * (1. + PDZZ(:,:,IKB+KKL)/PDZZ(:,:,IKB))
! Compute the source terms for TKE: ( ADVECtion + NUMerical DIFFusion + ..)
! + (Dynamical Production) + (Thermal Production) - (dissipation)
ZFLX
(:,:,:)
=
XCED
*
SQRT
(
PTKEM
(:,:,:))
/
PLEPS
(:,:,:)
ZSOURCE
(:,:,:)
=
PRTKES
(:,:,:)
/
PRHODJ
(:,:,:)
+
PRTKESM
(:,:,:)
/
PRHODJ
(:,:,:)
&
ZSOURCE
(:,:,:)
=
(
PRTKES
(:,:,:)
+
PRTKESM
(:,:,:)
)
/
PRHODJ
(:,:,:)
&
-
PTKEM
(:,:,:)
/
PTSTEP
&
+
PDP
(:,:,:)
+
PTP
(:,:,:)
+
PTR
(:,:,:)
-
PEXPL
*
ZFLX
(:,:,:)
*
PTKEM
(:,:,:)
!
...
...
@@ -379,6 +378,16 @@ end if
!
!* 2.5 computes the final RTKE and stores the whole turbulent transport
! with the removal of the advection part
if
(
lbudget_tke
)
then
!Store the previous source terms in prtkes before initializing the next one
PRTKES
(:,:,:)
=
PRTKES
(:,:,:)
+
PRHODJ
(:,:,:)
*
&
(
PDP
(:,:,:)
+
PTP
(:,:,:)
&
-
XCED
*
SQRT
(
PTKEM
(:,:,:))
/
PLEPS
(:,:,:)
*
(
PEXPL
*
PTKEM
(:,:,:)
+
PIMPL
*
ZRES
(:,:,:)
)
)
call
Budget_store_init
(
tbudgets
(
NBUDGET_TKE
),
'TR'
,
prtkes
(:,
:,
:)
)
end
if
PRTKES
(:,:,:)
=
ZRES
(:,:,:)
*
PRHODJ
(:,:,:)
/
PTSTEP
-
PRTKESM
(:,:,:)
!
! stores the whole turbulent transport
...
...
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