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
3420fcfe
Commit
3420fcfe
authored
2 years ago
by
Antoine Cyril David Hoffmann
Browse files
Options
Downloads
Patches
Plain Diff
small test
parent
c4a68c61
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
wk/quick_run.m
+17
-17
17 additions, 17 deletions
wk/quick_run.m
with
17 additions
and
17 deletions
wk/quick_run.m
+
17
−
17
View file @
3420fcfe
...
...
@@ -7,7 +7,7 @@ RUN = 1; % To run or just to load
addpath
(
genpath
(
'../matlab'
))
% ... add
default_plots_options
HELAZDIR
=
'/home/ahoffman/HeLaZ/'
;
EXECNAME
=
'helaz3'
;
EXECNAME
=
'helaz3
.12
'
;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Set Up parameters
CLUSTER
.
TIME
=
'99:00:00'
;
% allocation time hh:mm:ss
...
...
@@ -15,32 +15,32 @@ CLUSTER.TIME = '99:00:00'; % allocation time hh:mm:ss
%% PHYSICAL PARAMETERS
NU
=
0.1
;
% Collision frequency
TAU
=
1.0
;
% e/i temperature ratio
K_N
=
20
;
%1.9;%2.22; % Density gradient drive
K_T
=
2
0
;
%0.25*K_N; % Temperature '''
K_N
=
1.8
;
%1.9;%2.22; % Density gradient drive
K_T
=
0
;
%0.25*K_N; % Temperature '''
K_E
=
0.0
;
% Electrostat '''
SIGMA_E
=
0.05
;
%
0.0233380; % mass ratio sqrt(m_a/m_i) (correct = 0.0233380)
SIGMA_E
=
0.0233380
;
% mass ratio sqrt(m_a/m_i) (correct = 0.0233380)
KIN_E
=
1
;
% 1: kinetic electrons, 2: adiabatic electrons
%% GRID PARAMETERS
PMAXE
=
2
;
% Hermite basis size of electrons
JMAXE
=
1
;
% Laguerre "
PMAXI
=
2
;
% " ions
JMAXI
=
1
;
% "
PMAXE
=
4
;
% Hermite basis size of electrons
JMAXE
=
2
;
% Laguerre "
PMAXI
=
4
;
% " ions
JMAXI
=
2
;
% "
NX
=
32
;
% real space x-gridpoints
NY
=
32
;
% '' y-gridpoints
LX
=
30
0
;
% Size of the squared frequency domain
LY
=
30
0
;
% Size of the squared frequency domain
NZ
=
1
6
;
% number of perpendicular planes (parallel grid)
LX
=
12
0
;
% Size of the squared frequency domain
LY
=
12
0
;
% Size of the squared frequency domain
NZ
=
1
;
% number of perpendicular planes (parallel grid)
NPOL
=
1
;
SG
=
0
;
% Staggered z grids option
%% GEOMETRY
%
GEOMETRY= 'Z-pinch'; % Z-pinch overwrites q0, shear and eps
GEOMETRY
=
's-alpha'
;
GEOMETRY
=
'Z-pinch'
;
% Z-pinch overwrites q0, shear and eps
%
GEOMETRY= 's-alpha';
Q0
=
2.5
;
% safety factor
SHEAR
=
0.0
;
% magnetic shear (Not implemented yet)
EPS
=
0.18
;
% inverse aspect ratio
%% TIME PARMETERS
TMAX
=
5
0
;
% Maximal time unit
DT
=
1
e-
3
;
% Time step
TMAX
=
2
5
;
% Maximal time unit
DT
=
2
e-
2
;
% Time step
SPS0D
=
1
;
% Sampling per time unit for 2D arrays
SPS2D
=
0
;
% Sampling per time unit for 2D arrays
SPS3D
=
1
;
% Sampling per time unit for 2D arrays
...
...
@@ -89,10 +89,10 @@ setup
system
([
'rm fort*.90'
]);
% Run linear simulation
if
RUN
%
system(['cd ../results/',SIMID,'/',PARAMS,'/; time mpirun -np 1 ',HELAZDIR,'bin/',EXECNAME,' 1 1 1 0; cd ../../../wk'])
system
([
'cd ../results/'
,
SIMID
,
'/'
,
PARAMS
,
'/; time mpirun -np 1 '
,
HELAZDIR
,
'bin/'
,
EXECNAME
,
' 1 1 1 0; cd ../../../wk'
])
% system(['cd ../results/',SIMID,'/',PARAMS,'/; mpirun -np 2 ',HELAZDIR,'bin/',EXECNAME,' 2 1 1 0; cd ../../../wk'])
% system(['cd ../results/',SIMID,'/',PARAMS,'/; mpirun -np 4 ',HELAZDIR,'bin/',EXECNAME,' 1 2 2 0; cd ../../../wk'])
system
([
'cd ../results/'
,
SIMID
,
'/'
,
PARAMS
,
'/; mpirun -np 6 '
,
HELAZDIR
,
'bin/'
,
EXECNAME
,
' 1 3 2 0; cd ../../../wk'
])
%
system(['cd ../results/',SIMID,'/',PARAMS,'/; mpirun -np 6 ',HELAZDIR,'bin/',EXECNAME,' 1 3 2 0; cd ../../../wk'])
end
%% Load results
...
...
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