-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.cfg
234 lines (158 loc) · 3.82 KB
/
config.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
[computation]
# number of cells per unit length
Nx: 1024
Ny: 16
Nz: 1
# number of MPI blocks in each direction
nblocks_x: 1
nblocks_y: 1
nblocks_z: 1
# physical box size (for PIC L=N, dl=1)
Lx: 64.
Ly: 1.
Lz: 1.
# length of simulation
tmax: 2.
# Courant number
cour: 0.4
# parabolic Courant number
cour_diff: 0.5
# timestep (if fixed)
dt: 0.2
# ==== MHD ====
# time integrator (rk3 or vl)
tintegr: vl
# Riemann solver
# hll,force,hllc, hlld
rsolver: hlld
# spatial reconstruction
# piece-wise constant (const), linear, parabolic (parab), or WENO (weno)
reconstr: linear
# limiter
# minmod (mm), MC (mc), or van Leer (vl)
#limiter: mm
# use characteristic projection in reconstruction
charact_proj: 0
# apply pressure floor (0: no floor, !=0 specifies the floor)
pressure_floor: 1e-8
# super-time-stepping (1=on; 0=off)
sts: 1
# ==== MHDPIC or PIC ====
#number of particles per cell
ppc: 4
# order of particle interpolation kernel (only for MHDPIC)
# 1: linear, 2: TSC
Ninterp: 2
#------------------------------------------------------
[physics]
# boundary condition flags
# 0 - periodic; 1 - outflow; 2 - reflective; 3 - user
bc_x1: 3
bc_x2: 3
bc_y1: 3
bc_y2: 3
bc_z1: 0
bc_z2: 0
# ====== MHD ======
# heat capacity ratio (gamma)
gam: 1.66667
# diffusion parameters
# ion-ion collision frequency for Braginskii viscosity
# va*sqrt(beta)/lam_i = 20*sqrt(beta)
nuiic0: 0.
# characteristic wavenumber of ion Landau damping (without 2*PI)
kL: 0.
# isotropic dynamic viscosity
mu: 0
#0.04
# magnetic diffusivity
eta: 0
# 4th-order hyperviscosity
mu4: 0
# 4th-order magnetic hyperdiffusivity
eta4: 0
# (parallel) thermal conduction coefficient
# (1,0.1) * 1./3 * lam_i * sqrt(beta) = (1,0.1) *0.05/3*sqrt(beta)
kappa0: 0
# 0.17
# anisotropic (aniso) or isotropic (iso) electron thermal conduction
elec_thcond_type: aniso
# saturation of electron heat flux
sat_hfe: 0
# saturation of electron heat flux
sat_hfi: 0
# gravitational acceleration
# constant negative g along Y by default
g0: 0.
# solenoidal driving of turbulence
# random solenoidal driving force
f: 0.
# correlation time
tau: 0.
#0.085
#0.33 for MHD with tau_corr=0.1, M~0.25, N=256
# M~0.13, N=128, lami=0.02
#0.24
# number of large scale modes of driving force (count only k>0)
Nmod: 1
# ======= MHDPIC =======
# thermal spread of relativistic particles
delgam: 1.
# mean drift speed (along X) of relativistic particles
udrift: 7.
# charge-to-mass-to-speed-of-light ratio of
# relativistic particles relative to that of thermal ions
q_mc: 1.
# speed of light
c: 10.
# particle density relative to gas density
rho_cr: 0.02
# ======= PIC =======
# ion-electron mass ratio
mime: 10.
# electron skin depth
c_ompe: 5.
# number of filter passes
Nfilt: 16
#------------------------------------------------------
[problem]
# additional user-specified parameters, read in the problem file
# plasma beta
beta: 1.
# initial parallel (X) magnetic field
bpar: 1.
# parameters of the initial velocity spectrum
lmin: 0.1
lmax: 1.
s: 3.67
vrms: 0.25
tvar: 0.2
#------------------------------------------------------
[output]
# History variables.
# output every dt
# set to 0 to turn off
hst_dt: 0.004
# Full box of grid variables in HDF5 format.
grid_dt: 0.02
# Slice of grid variables in HDF5 format.
slc_dt: 0.0
# axis (x,y,z) perpendicular to the slice
slc_axis: z
# slice position (cell index) along the axis
slc_pos_ind: 127
# use primitive (prim) or conservative (cons) variables (if not PIC)
var_type: prim
# write ghost cells (1) or not (0)
write_ghost: 1
# Particles.
prt_dt: 0.
# Write every {prt_stride}-th particle.
# User particle selection functions override this setting.
prt_stride: 1
#------------------------------------------------------
[restart]
# restart simulation [yes(1)/no(0)]
restart: 0
# how often to save restart files
rst_dt: 0.