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
2931eaff
Commit
2931eaff
authored
1 year ago
by
Antoine Cyril David Hoffmann
Browse files
Options
Downloads
Patches
Plain Diff
ExB shear flow is back
parent
e382c962
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/ExB_shear_flow_mod.F90
+5
-5
5 additions, 5 deletions
src/ExB_shear_flow_mod.F90
with
5 additions
and
5 deletions
src/ExB_shear_flow_mod.F90
+
5
−
5
View file @
2931eaff
...
...
@@ -26,7 +26,7 @@ CONTAINS
USE
grid
,
ONLY
:
Nx
,
local_nky
,
total_nky
,
local_nx
,
Ny
,
deltakx
,
deltaky
,&
kx_max
,
kx_min
!kyarray, kyarray_full
USE
geometry
,
ONLY
:
Cyq0_x0
,
C_y
!
USE basic, ONLY:
dt
USE
basic
,
ONLY
:
speak
USE
model
,
ONLY
:
LINEARITY
IMPLICIT
NONE
INTEGER
::
iky
...
...
@@ -36,6 +36,7 @@ CONTAINS
! In GENE, there is a minus sign here...
gamma_E
=
ExBrate
*
C_y
*
abs
(
Cyq0_x0
/
C_y
)
IF
(
abs
(
gamma_E
)
.GT.
EPSILON
(
gamma_E
))
THEN
CALL
speak
(
'-ExB background flow detected-'
)
ExB
=
.TRUE.
t0
=
deltakx
/
deltaky
/
gamma_E
inv_t0
=
1._xp
/
t0
...
...
@@ -70,7 +71,7 @@ CONTAINS
ALLOCATE
(
shiftnow_ExB
(
local_nky
))
shiftnow_ExB
=
.FALSE.
! Setup nonlinear factor
! Setup nonlinear factor
(McMillan 2019)
ALLOCATE
(
ExB_NL_factor
(
Nx
,
local_nky
))
ALLOCATE
(
inv_ExB_NL_factor
(
Ny
/
2+1
,
local_nx
))
ExB_NL_factor
=
1._xp
...
...
@@ -128,7 +129,6 @@ CONTAINS
sky_ExB_full
(
iky
)
=
sky_ExB_full
(
iky
)
-
REAL
(
iky
-1
,
xp
)
*
deltaky
*
gamma_E
*
dt_sub
ENDDO
! Shift the arrays if the shear value sky is too high
IF
(
LINEARITY
.EQ.
'nonlinear'
)
&
CALL
Array_shift_ExB_shear_flow
! We update the operators and grids
...
...
@@ -139,8 +139,8 @@ CONTAINS
CALL
evaluate_EM_op
CALL
evaluate_magn_curv
! update the ExB nonlinear factor...
IF
(
LINEARITY
.EQ.
'nonlinear'
)
&
CALL
u
pdate_nonlinear_ExB_factors
(
dt_sub
)
!
IF(LINEARITY .EQ. 'nonlinear') &
!
CALL
U
pdate_nonlinear_ExB_factors(dt_sub)
ENDIF
ENDIF
END
SUBROUTINE
Update_ExB_shear_flow
...
...
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