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
945aa653
Commit
945aa653
authored
2 years ago
by
Antoine Cyril David Hoffmann
Browse files
Options
Downloads
Patches
Plain Diff
added a collision cutoff frequency
parent
ee15b64c
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/collision_mod.F90
+4
-3
4 additions, 3 deletions
src/collision_mod.F90
with
4 additions
and
3 deletions
src/collision_mod.F90
+
4
−
3
View file @
945aa653
...
...
@@ -17,7 +17,7 @@ CHARACTER(len=2),PUBLIC,PROTECTED :: collision_model
LOGICAL
,
PUBLIC
,
PROTECTED
::
gyrokin_CO
=
.true.
! activates GK effects on CO
LOGICAL
,
PUBLIC
,
PROTECTED
::
interspecies
=
.true.
! activates interpecies collision
CHARACTER
(
len
=
128
),
PUBLIC
::
mat_file
! COSOlver matrix file names
REAL
(
dp
),
PUBLIC
,
PROTECTED
::
collision_kcut
=
100.0
LOGICAL
,
PUBLIC
,
PROTECTED
::
cosolver_coll
! check if cosolver matrices are used
PUBLIC
::
collision_readinputs
,
coll_outputinputs
...
...
@@ -33,7 +33,7 @@ CONTAINS
SUBROUTINE
collision_readinputs
! Read the input parameters
IMPLICIT
NONE
NAMELIST
/
COLLISION_PAR
/
collision_model
,
gyrokin_CO
,
interspecies
,
mat_file
NAMELIST
/
COLLISION_PAR
/
collision_model
,
gyrokin_CO
,
interspecies
,
mat_file
,
collision_kcut
READ
(
lu_in
,
collision_par
)
SELECT
CASE
(
collision_model
)
CASE
(
'LB'
)
! Lenhard bernstein
...
...
@@ -55,6 +55,7 @@ CONTAINS
CASE
DEFAULT
ERROR STOP
'Error stop: collision model not recognized!!'
END
SELECT
print
*
,
collision_kcut
END
SUBROUTINE
collision_readinputs
...
...
@@ -840,7 +841,7 @@ CONTAINS
DO
iky
=
ikys
,
ikye
DO
iz
=
izs
,
ize
! Check for nonlinear case if we are in the anti aliased domain or the filtered one
kperp_sim
=
kparray
(
iky
,
ikx
,
iz
,
0
)
! current simulation kperp
kperp_sim
=
MIN
(
kparray
(
iky
,
ikx
,
iz
,
0
)
,
collision_kcut
)
! current simulation kperp
! Find the interval in kp grid mat where kperp_sim is contained
! Loop over the whole kp mat grid to find the smallest kperp that is
! larger than the current kperp_sim (brute force...)
...
...
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