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
59fa6653
Commit
59fa6653
authored
3 years ago
by
Antoine Cyril David Hoffmann
Browse files
Options
Downloads
Patches
Plain Diff
Added ZF initialization option
parent
4a6a43b6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
matlab/write_fort90.m
+1
-2
1 addition, 2 deletions
matlab/write_fort90.m
src/inital.F90
+12
-0
12 additions, 0 deletions
src/inital.F90
src/initial_par_mod.F90
+6
-4
6 additions, 4 deletions
src/initial_par_mod.F90
with
19 additions
and
6 deletions
matlab/write_fort90.m
+
1
−
2
View file @
59fa6653
...
@@ -46,7 +46,6 @@ fprintf(fid,[' CO = ', num2str(MODEL.CO),'\n']);
...
@@ -46,7 +46,6 @@ fprintf(fid,[' CO = ', num2str(MODEL.CO),'\n']);
fprintf
(
fid
,[
' CLOS = '
,
num2str
(
MODEL
.
CLOS
),
'\n'
]);
fprintf
(
fid
,[
' CLOS = '
,
num2str
(
MODEL
.
CLOS
),
'\n'
]);
fprintf
(
fid
,[
' NL_CLOS = '
,
num2str
(
MODEL
.
NL_CLOS
),
'\n'
]);
fprintf
(
fid
,[
' NL_CLOS = '
,
num2str
(
MODEL
.
NL_CLOS
),
'\n'
]);
fprintf
(
fid
,[
' NON_LIN = '
,
MODEL
.
NON_LIN
,
'\n'
]);
fprintf
(
fid
,[
' NON_LIN = '
,
MODEL
.
NON_LIN
,
'\n'
]);
fprintf
(
fid
,[
' ZF_DAMP = '
,
MODEL
.
ZF_DAMP
,
'\n'
]);
fprintf
(
fid
,[
' mu = '
,
num2str
(
MODEL
.
mu
),
'\n'
]);
fprintf
(
fid
,[
' mu = '
,
num2str
(
MODEL
.
mu
),
'\n'
]);
fprintf
(
fid
,[
' mu_p = '
,
num2str
(
MODEL
.
mu_p
),
'\n'
]);
fprintf
(
fid
,[
' mu_p = '
,
num2str
(
MODEL
.
mu_p
),
'\n'
]);
fprintf
(
fid
,[
' mu_j = '
,
num2str
(
MODEL
.
mu_j
),
'\n'
]);
fprintf
(
fid
,[
' mu_j = '
,
num2str
(
MODEL
.
mu_j
),
'\n'
]);
...
@@ -65,7 +64,7 @@ fprintf(fid,'/\n');
...
@@ -65,7 +64,7 @@ fprintf(fid,'/\n');
fprintf
(
fid
,
'&INITIAL_CON\n'
);
fprintf
(
fid
,
'&INITIAL_CON\n'
);
fprintf
(
fid
,[
' INIT_NOISY_PHI ='
,
INITIAL
.
init_noisy_phi
,
'\n'
]);
fprintf
(
fid
,[
' INIT_NOISY_PHI ='
,
INITIAL
.
init_noisy_phi
,
'\n'
]);
fprintf
(
fid
,[
' INIT_ZF_PHI ='
,
INITIAL
.
init_noisy_phi
,
'\n'
]);
fprintf
(
fid
,[
' INIT_ZF_PHI ='
,
INITIAL
.
INIT_ZF_PHI
,
'\n'
]);
fprintf
(
fid
,[
' init_background ='
,
num2str
(
INITIAL
.
init_background
),
'\n'
]);
fprintf
(
fid
,[
' init_background ='
,
num2str
(
INITIAL
.
init_background
),
'\n'
]);
fprintf
(
fid
,[
' init_noiselvl ='
,
num2str
(
INITIAL
.
init_noiselvl
),
'\n'
]);
fprintf
(
fid
,[
' init_noiselvl ='
,
num2str
(
INITIAL
.
init_noiselvl
),
'\n'
]);
fprintf
(
fid
,[
' iseed ='
,
num2str
(
INITIAL
.
iseed
),
'\n'
]);
fprintf
(
fid
,[
' iseed ='
,
num2str
(
INITIAL
.
iseed
),
'\n'
]);
...
...
This diff is collapsed.
Click to expand it.
src/inital.F90
+
12
−
0
View file @
59fa6653
...
@@ -211,6 +211,18 @@ SUBROUTINE init_phi
...
@@ -211,6 +211,18 @@ SUBROUTINE init_phi
ENDDO
ENDDO
ENDDO
ENDDO
ELSEIF
(
INIT_ZF_PHI
.GT.
0
)
!**** Zonal Flow initialization *******************************************
! Every mode is zero
DO
ikr
=
ikrs
,
ikre
DO
ikz
=
ikzs
,
ikze
phi
(
ikr
,
ikz
)
=
0._dp
END
DO
END
DO
! Except at ikr = mode number + 1, symmetry is already included since kr>=0
phi
(
INIT_ZF_PHI
+1
,
ikz_0
)
=
-
init_background
*
imagu
/
2._dp
ELSE
! we compute phi from noisy moments and poisson
ELSE
! we compute phi from noisy moments and poisson
CALL
poisson
CALL
poisson
...
...
This diff is collapsed.
Click to expand it.
src/initial_par_mod.F90
+
6
−
4
View file @
59fa6653
...
@@ -5,13 +5,13 @@ MODULE initial_par
...
@@ -5,13 +5,13 @@ MODULE initial_par
IMPLICIT
NONE
IMPLICIT
NONE
PRIVATE
PRIVATE
! Initial background level
REAL
(
dp
),
PUBLIC
,
PROTECTED
::
init_background
=
0._dp
! Initialization through a noisy phi
! Initialization through a noisy phi
LOGICAL
,
PUBLIC
,
PROTECTED
::
INIT_NOISY_PHI
=
.false.
LOGICAL
,
PUBLIC
,
PROTECTED
::
INIT_NOISY_PHI
=
.false.
! Initialization through a zonal flow phi
! Initialization through a zonal flow phi
LOGICAL
,
PUBLIC
,
PROTECTED
::
INIT_ZF_PHI
=
.false.
INTEGER
,
PUBLIC
,
PROTECTED
::
INIT_ZF_PHI
=
0
! Initial background noise amplitude
! Initial background level
REAL
(
dp
),
PUBLIC
,
PROTECTED
::
init_background
=
0._dp
! Initial noise amplitude
REAL
(
dp
),
PUBLIC
,
PROTECTED
::
init_noiselvl
=
1E-6_dp
REAL
(
dp
),
PUBLIC
,
PROTECTED
::
init_noiselvl
=
1E-6_dp
! Initialization for random number generator
! Initialization for random number generator
INTEGER
,
PUBLIC
,
PROTECTED
::
iseed
=
42
INTEGER
,
PUBLIC
,
PROTECTED
::
iseed
=
42
...
@@ -64,6 +64,8 @@ CONTAINS
...
@@ -64,6 +64,8 @@ CONTAINS
CALL
attach
(
fidres
,
TRIM
(
str
),
"INIT_NOISY_PHI"
,
INIT_NOISY_PHI
)
CALL
attach
(
fidres
,
TRIM
(
str
),
"INIT_NOISY_PHI"
,
INIT_NOISY_PHI
)
CALL
attach
(
fidres
,
TRIM
(
str
),
"INIT_ZF_PHI"
,
INIT_ZF_PHI
)
CALL
attach
(
fidres
,
TRIM
(
str
),
"init_background"
,
init_background
)
CALL
attach
(
fidres
,
TRIM
(
str
),
"init_background"
,
init_background
)
CALL
attach
(
fidres
,
TRIM
(
str
),
"init_noiselvl"
,
init_noiselvl
)
CALL
attach
(
fidres
,
TRIM
(
str
),
"init_noiselvl"
,
init_noiselvl
)
...
...
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