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
4c9b6117
Commit
4c9b6117
authored
2 years ago
by
Antoine Cyril David Hoffmann
Browse files
Options
Downloads
Patches
Plain Diff
Major typo that increased artificially the lin. drive and the HF
parent
c884bec4
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
src/moments_eq_rhs_mod.F90
+10
-6
10 additions, 6 deletions
src/moments_eq_rhs_mod.F90
with
10 additions
and
6 deletions
src/moments_eq_rhs_mod.F90
+
10
−
6
View file @
4c9b6117
...
...
@@ -12,7 +12,7 @@ SUBROUTINE compute_moments_eq_rhs
USE
prec_const
USE
collision
USE
time_integration
USE
geometry
,
ONLY
:
gradz_coeff
,
dBdz
,
Ckxky
,
hatB_NL
USE
geometry
,
ONLY
:
gradz_coeff
,
dBdz
,
Ckxky
,
Gamma_NL
,
Gamma_phipar
USE
calculus
,
ONLY
:
interp_z
,
grad_z
,
grad_z2
IMPLICIT
NONE
...
...
@@ -72,7 +72,9 @@ SUBROUTINE compute_moments_eq_rhs
xphij
,
xphijp1
,
xphijm1
,&
xpsij
,
xpsijp1
,
xpsijm1
REAL
(
dp
),
DIMENSION
(
ips
:
ipe
),
INTENT
(
IN
)
::
&
xnapp1j
,
xnapm1j
,
xnapp2j
,
xnapm2j
,
xnapjp1
,
xnapjm1
xnapp1j
,
xnapm1j
,
xnapp2j
,
xnapm2j
REAL
(
dp
),
DIMENSION
(
ijs
:
ije
),
INTENT
(
IN
)
::
xnapjp1
,
xnapjm1
REAL
(
dp
),
DIMENSION
(
ijgs
:
ijge
,
ikys
:
ikye
,
ikxs
:
ikxe
,
izgs
:
izge
,
0
:
1
),
INTENT
(
IN
)
::
kernel
...
...
@@ -150,7 +152,7 @@ SUBROUTINE compute_moments_eq_rhs
IF
(
p_int
.LE.
2
)
THEN
! kronecker p0 p1 p2
Tphi
=
(
xphij
(
ip
,
ij
)
*
kernel
(
ij
,
iky
,
ikx
,
iz
,
eo
)
&
+
xphijp1
(
ip
,
ij
)
*
kernel
(
ij
+1
,
iky
,
ikx
,
iz
,
eo
)
&
+
xphijm1
(
ip
,
ij
)
*
kernel
(
ij
-1
,
iky
,
ikx
,
iz
,
eo
))
*
phikykxz
+
xphijm1
(
ip
,
ij
)
*
kernel
(
ij
-1
,
iky
,
ikx
,
iz
,
eo
))
ELSE
Tphi
=
0._dp
ENDIF
...
...
@@ -159,7 +161,7 @@ SUBROUTINE compute_moments_eq_rhs
IF
(
(
p_int
.LE.
3
)
.AND.
(
p_int
.GE.
1
)
)
THEN
! Kronecker p1 or p3
Tpsi
=
(
xpsij
(
ip
,
ij
)
*
kernel
(
ij
,
iky
,
ikx
,
iz
,
eo
)
&
+
xpsijp1
(
ip
,
ij
)
*
kernel
(
ij
+1
,
iky
,
ikx
,
iz
,
eo
)
&
+
xpsijm1
(
ip
,
ij
)
*
kernel
(
ij
-1
,
iky
,
ikx
,
iz
,
eo
))
*
psikykxz
+
xpsijm1
(
ip
,
ij
)
*
kernel
(
ij
-1
,
iky
,
ikx
,
iz
,
eo
))
ELSE
Tpsi
=
0._dp
ENDIF
...
...
@@ -175,7 +177,9 @@ SUBROUTINE compute_moments_eq_rhs
! Mirror term (parallel magnetic gradient)
-
dBdz
(
iz
,
eo
)
*
gradz_coeff
(
iz
,
eo
)
*
Tmir
&
! Drives (density + temperature gradients)
-
i_ky
*
(
Tphi
-
Tpsi
)
&
-
i_ky
*
(
Tphi
*
phikykxz
-
Tpsi
*
psikykxz
)
&
! Parallel drive term (should be negligible, test)
! -Gamma_phipar(iz,eo)*Tphi*ddz_phi(iky,ikx,iz) &
! Numerical Hermite hyperdiffusion (GX version)
-
mu_p
*
diff_pe_coeff
*
p_int
**
4
*
moments_
(
ip
,
ij
,
iky
,
ikx
,
iz
)&
! Numerical Laguerre hyperdiffusion (GX version)
...
...
@@ -188,7 +192,7 @@ SUBROUTINE compute_moments_eq_rhs
! Collision term
+
TColl_
(
ip
,
ij
,
iky
,
ikx
,
iz
)
&
! Nonlinear term
-
hatB
_NL
(
iz
,
eo
)
*
Sapj
(
ip
,
ij
,
iky
,
ikx
,
iz
)
-
Gamma
_NL
(
iz
,
eo
)
*
Sapj
(
ip
,
ij
,
iky
,
ikx
,
iz
)
! IF( (ip-4 .GT. 0) .AND. (num_procs_p .EQ. 1) ) &
! ! Numerical parallel velocity hyperdiffusion "+ dvpar4 g_a" see Pueschel 2010 (eq 33)
...
...
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