Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Gyacomo
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
Antoine Cyril David Hoffmann
Gyacomo
Commits
d5ae8d7b
Commit
d5ae8d7b
authored
1 year ago
by
Antoine Cyril David Hoffmann
Browse files
Options
Downloads
Patches
Plain Diff
option to remove landau damping for temperature and higher equations
parent
85769b73
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/model_mod.F90
+4
-1
4 additions, 1 deletion
src/model_mod.F90
src/moments_eq_rhs_mod.F90
+2
-0
2 additions, 0 deletions
src/moments_eq_rhs_mod.F90
with
6 additions
and
1 deletion
src/model_mod.F90
+
4
−
1
View file @
d5ae8d7b
...
@@ -26,6 +26,8 @@ MODULE model
...
@@ -26,6 +26,8 @@ MODULE model
REAL
(
xp
),
PUBLIC
,
PROTECTED
::
tau_e
=
1.0
! electron temperature ratio for adiabatic electrons
REAL
(
xp
),
PUBLIC
,
PROTECTED
::
tau_e
=
1.0
! electron temperature ratio for adiabatic electrons
! Auxiliary variable
! Auxiliary variable
LOGICAL
,
PUBLIC
,
PROTECTED
::
EM
=
.false.
! Electromagnetic effects flag
LOGICAL
,
PUBLIC
,
PROTECTED
::
EM
=
.false.
! Electromagnetic effects flag
! Removes Landau damping in temperature and higher equation (Ivanov 2022)
LOGICAL
,
PUBLIC
,
PROTECTED
::
RM_LD_T_EQ
=
.false.
PUBLIC
::
model_readinputs
,
model_outputinputs
PUBLIC
::
model_readinputs
,
model_outputinputs
CONTAINS
CONTAINS
...
@@ -37,7 +39,7 @@ CONTAINS
...
@@ -37,7 +39,7 @@ CONTAINS
USE
prec_const
USE
prec_const
IMPLICIT
NONE
IMPLICIT
NONE
NAMELIST
/
MODEL_PAR
/
KERN
,
LINEARITY
,
&
NAMELIST
/
MODEL_PAR
/
KERN
,
LINEARITY
,
RM_LD_T_EQ
,
&
mu_x
,
mu_y
,
N_HD
,
HDz_h
,
mu_z
,
mu_p
,
mu_j
,
HYP_V
,
Na
,&
mu_x
,
mu_y
,
N_HD
,
HDz_h
,
mu_z
,
mu_p
,
mu_j
,
HYP_V
,
Na
,&
nu
,
k_gB
,
k_cB
,
lambdaD
,
beta
,
ADIAB_E
,
tau_e
nu
,
k_gB
,
k_cB
,
lambdaD
,
beta
,
ADIAB_E
,
tau_e
...
@@ -71,6 +73,7 @@ CONTAINS
...
@@ -71,6 +73,7 @@ CONTAINS
CALL
creatd
(
fid
,
0
,(/
0
/),
TRIM
(
str
),
'Model Input'
)
CALL
creatd
(
fid
,
0
,(/
0
/),
TRIM
(
str
),
'Model Input'
)
CALL
attach
(
fid
,
TRIM
(
str
),
"KERN"
,
KERN
)
CALL
attach
(
fid
,
TRIM
(
str
),
"KERN"
,
KERN
)
CALL
attach
(
fid
,
TRIM
(
str
),
"LINEARITY"
,
LINEARITY
)
CALL
attach
(
fid
,
TRIM
(
str
),
"LINEARITY"
,
LINEARITY
)
CALL
attach
(
fid
,
TRIM
(
str
),
"RM_LD_T_EQ"
,
RM_LD_T_EQ
)
CALL
attach
(
fid
,
TRIM
(
str
),
"mu_x"
,
mu_x
)
CALL
attach
(
fid
,
TRIM
(
str
),
"mu_x"
,
mu_x
)
CALL
attach
(
fid
,
TRIM
(
str
),
"mu_y"
,
mu_y
)
CALL
attach
(
fid
,
TRIM
(
str
),
"mu_y"
,
mu_y
)
CALL
attach
(
fid
,
TRIM
(
str
),
"N_HD"
,
N_HD
)
CALL
attach
(
fid
,
TRIM
(
str
),
"N_HD"
,
N_HD
)
...
...
This diff is collapsed.
Click to expand it.
src/moments_eq_rhs_mod.F90
+
2
−
0
View file @
d5ae8d7b
...
@@ -76,6 +76,8 @@ CONTAINS
...
@@ -76,6 +76,8 @@ CONTAINS
! ddz derivative for Landau damping term
! ddz derivative for Landau damping term
Ldamp
=
xnapp1j
(
ia
,
ip
)
*
ddz_napj
(
ia
,
ipi
+1
,
iji
,
iky
,
ikx
,
iz
)
&
Ldamp
=
xnapp1j
(
ia
,
ip
)
*
ddz_napj
(
ia
,
ipi
+1
,
iji
,
iky
,
ikx
,
iz
)
&
+
xnapm1j
(
ia
,
ip
)
*
ddz_napj
(
ia
,
ipi
-1
,
iji
,
iky
,
ikx
,
iz
)
+
xnapm1j
(
ia
,
ip
)
*
ddz_napj
(
ia
,
ipi
-1
,
iji
,
iky
,
ikx
,
iz
)
! neglect Landau damping in temperature equation and higher moments as in Ivanov 2022
IF
(
RM_LD_T_EQ
.AND.
((
j_int
.GT.
0
)
.OR.
(
p_int
.GT.
1
)))
Ldamp
=
0._xp
! Mirror terms
! Mirror terms
Tnapp1j
=
ynapp1j
(
ia
,
ip
,
ij
)
*
interp_napj
(
ia
,
ipi
+1
,
iji
,
iky
,
ikx
,
iz
)
Tnapp1j
=
ynapp1j
(
ia
,
ip
,
ij
)
*
interp_napj
(
ia
,
ipi
+1
,
iji
,
iky
,
ikx
,
iz
)
Tnapp1jm1
=
ynapp1jm1
(
ia
,
ip
,
ij
)
*
interp_napj
(
ia
,
ipi
+1
,
iji
-1
,
iky
,
ikx
,
iz
)
Tnapp1jm1
=
ynapp1jm1
(
ia
,
ip
,
ij
)
*
interp_napj
(
ia
,
ipi
+1
,
iji
-1
,
iky
,
ikx
,
iz
)
...
...
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