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
762d817e
Commit
762d817e
authored
3 years ago
by
Antoine Cyril David Hoffmann
Browse files
Options
Downloads
Patches
Plain Diff
idea of a class for species
parent
1f09a38a
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/species_mod.F90
+56
-0
56 additions, 0 deletions
src/species_mod.F90
with
56 additions
and
0 deletions
src/species_mod.F90
0 → 100644
+
56
−
0
View file @
762d817e
MODULE
species_mod
USE
::
basic
IMPLICIT
NONE
PRIVATE
! Classe that encapsulate all atributes and methods for one arbitrary species
TYPE
,
PUBLIC
::
species_class
REAL
(
dp
),
PUBLIC
::
q
!charge
REAL
(
dp
),
PUBLIC
::
sigma
!sqrt masse ratio w.r.t. ion mass
REAL
(
dp
),
PUBLIC
::
tau
!temperatrue ratio w.r.t. electron temp.
INTEGER
,
DIMENSION
(:),
ALLOCATABLE
,
PUBLIC
::
parray
! Hermite degrees
INTEGER
,
DIMENSION
(:),
ALLOCATABLE
,
PUBLIC
::
jarray
! Laguerre degrees
! Hermite-Moments: N_a^pj ! DIMENSIONs correspond to: p, j, kx, ky, z, updatetlevel.
COMPLEX
(
dp
),
DIMENSION
(:,:,:,:,:,:),
ALLOCATABLE
::
moments
! Arrays to store the rhs, for time integration (ip,ij,ikx,iky,iz,updatetlevel)
COMPLEX
(
dp
),
DIMENSION
(:,:,:,:,:,:),
ALLOCATABLE
::
moments_rhs
! Non linear term array (ip,ij,ikx,iky,iz)
COMPLEX
(
dp
),
DIMENSION
(:,:,:,:,:),
ALLOCATABLE
::
Sapj
! lin rhs p,j coefficient storage (ip,ij)
REAL
(
dp
),
DIMENSION
(:,:),
ALLOCATABLE
::
xnapj
REAL
(
dp
),
DIMENSION
(:),
ALLOCATABLE
::
xnapp1j
,
xnapm1j
,
xnapp2j
,
xnapm2j
,
xnapjp1
,
xnapjm1
REAL
(
dp
),
DIMENSION
(:,:),
ALLOCATABLE
::
ynapp1j
,
ynapm1j
,
ynapp1jm1
,
ynapm1jm1
! mirror lin coeff for non adiab mom
REAL
(
dp
),
DIMENSION
(:,:),
ALLOCATABLE
::
zNapm1j
,
zNapm1jp1
,
zNapm1jm1
! mirror lin coeff for adiab mom
! Kernel function evaluation (ij,ikx,iky,iz)
REAL
(
dp
),
DIMENSION
(:,:,:,:),
ALLOCATABLE
::
kernel
!! Diagnostics
! Gyrocenter density (ikx,iky,iz)
COMPLEX
(
dp
),
DIMENSION
(:,:,:),
ALLOCATABLE
::
Na00
! particle density (ikx,iky,iz)
COMPLEX
(
dp
),
DIMENSION
(:,:,:),
ALLOCATABLE
::
density
! particle temperature for electron and ions (ikx,iky,iz)
COMPLEX
(
dp
),
DIMENSION
(:,:,:),
ALLOCATABLE
::
temperature
CONTAINS
! Initialization procedures
PROCEDURE
,
PUBLIC
::
init
=>
species_init
PROCEDURE
,
PUBLIC
::
setup_arrays
=>
species_setup_arrays
PROCEDURE
,
PUBLIC
::
evaluate_kernels
=>
species_evaluate_kernels
! Diagnostics
PROCEDURE
,
PUBLIC
::
compute_density
=>
species_compute_density
PROCEDURE
,
PUBLIC
::
compute_temperature
=>
species_compute_temperature
END
TYPE
species_class
! Routines that every species may use
CONTAINS
SUBROUTINE
species_setup_arrays
(
this
)
END
SUBROUTINE
SUBROUTINE
species_compute_density
(
this
)
END
SUBROUTINE
END
MODULE
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