1- wall_limit = 1.55 # wall time limit (in hours)
2-
31zperiod = 15 # Fraction of a torus to simulate
42MZ = 16 # Number of points in Z
53
6- dump_format = "nc" # Dump file format. "nc" = NetCDF, "pdb" = PDB
7- restart_format = "nc" # Restart file format
8-
94[mesh]
10-
115staggergrids = false # Use staggered grids
126
137file = "cbm18_dens8.grid_nx68ny64.nc" # Grid file
148
159[mesh:paralleltransform]
16-
17- type = shifted # Use shifted metric method
10+ type = shiftedinterp
1811
1912##################################################
2013# derivative methods
2114
2215[mesh:ddx]
23-
2416first = C4 # order of first x derivatives
2517second = C4 # order of second x derivatives
2618upwind = W3 # order of upwinding method W3 = Weno3
@@ -36,20 +28,6 @@ first = C4 # Z derivatives can be done using FFT
3628second = C4
3729upwind = W3
3830
39- [output]
40- shiftoutput = true # Put the output into field-aligned coordinates
41-
42- ##################################################
43- # Laplacian inversion routines
44-
45- [laplace]
46- type = hypre3d
47-
48- flags = 0 # Flags for Laplacian inversion
49-
50- rtol = 1e-09
51- atol = 1e-14
52-
5331##################################################
5432# FFTs
5533
@@ -63,23 +41,12 @@ fft_measurement_flag = measure # If using FFTW, perform tests to determine fast
6341[solver]
6442
6543# mudq, mldq, mukeep, mlkeep preconditioner options
66- atol = 1e-08 # absolute tolerance
67- rtol = 1e-05 # relative tolerance
44+ atol = 1.0e-8 # absolute tolerance
45+ rtol = 1.0e-5 # relative tolerance
6846
6947use_precon = false # Use preconditioner: User-supplied or BBD
70- use_jacobian = false # Use user-supplied Jacobian
7148
7249mxstep = 5000 # Number of internal steps between outputs
73- adams_moulton = false # Use Adams-Moulton method (default is BDF)
74- func_iter = false # Functional iteration (default is Newton)
75- output_step = 1 # time between outputs
76- # settings file for BOUT++
77- # High-Beta reduced MHD case
78-
79- ##################################################
80- # Global settings used by the core code
81-
82- nout = 40 # number of time-steps
8350
8451##################################################
8552# settings for high-beta reduced MHD
@@ -116,7 +83,7 @@ diamag_phi0 = true # Balance ExB against Vd for stationary equilibrium
11683bm_exb_flag = 0
11784bm_mag_flag = 0
11885##################################################################
119- withflow = false # With flow or not
86+ withflow = false # With flow or not
12087D_0 = 1.3e5 # differential potential
12188D_s = 20 # shear parameter
12289K_H_term = false # Contain K-H term
@@ -125,8 +92,8 @@ x0 = 0.855 # peak location
12592D_min = 3000 # constant
12693##################################################################
12794
128- eHall = false # Include electron pressue effects in Ohm's law?
129- AA = 2.0 # ion mass in units of proton mass
95+ eHall = false # Include electron pressure effects in Ohm's law?
96+ AA = 2.0 # ion mass in units of proton mass
13097
13198noshear = false # zero all shear
13299
@@ -174,14 +141,14 @@ damp_t_const = 0.01 # Damping time constant
174141
175142## Parallel pressure diffusion
176143
177- diffusion_par = -1.0 # Parallel pressure diffusion (< 0 = none)
144+ diffusion_par = -1.0 # Parallel pressure diffusion (< 0 = none)
178145diffusion_p4 = -1e-05 # parallel hyper-viscous diffusion for pressure (< 0 = none)
179- diffusion_u4 = 1e-05 # parallel hyper-viscous diffusion for vorticity (< 0 = none)
146+ diffusion_u4 = - 1e-05 # parallel hyper-viscous diffusion for vorticity (< 0 = none)
180147diffusion_a4 = -1e-05 # parallel hyper-viscous diffusion for vector potential (< 0 = none)
181148
182149## heat source in pressure in watts
183150
184- heating_P = -1 # heat power in watts (< 0 = none)
151+ heating_P = -1 # heat power in watts (< 0 = none)
185152hp_width = 0.1 # heat width, in percentage of nx (< 0 = none)
186153hp_length = 0.3 # heat length in percentage of nx (< 0 = none)
187154
@@ -205,22 +172,19 @@ su_lengthr = 0.1 # right edge sink length in percentage of nx (< 0 = none)
205172## Viscosity and Hyper-viscosity
206173
207174viscos_par = -0.1 # Parallel viscosity (< 0 = none)
208- viscos_perp = -1.0 # Perpendicular
175+ viscos_perp = -1.0 # Perpendicular viscosity (< 0 = none)
209176hyperviscos = -1.0 # Radial hyper viscosity
210177
211178## Compressional terms (only when compress = true)
212179phi_curv = true # Include curvature*Grad(phi) in P equation
213180# gamma = 1.6666
214181
215182[phiSolver]
216- #inner_boundary_flags = 1 + 2 + 128 # INVERT_DC_GRAD + INVERT_AC_GRAD + INVERT_BNDRY_ONE
217- #outer_boundary_flags = 1 + 2 + 128 # INVERT_DC_GRAD + INVERT_AC_GRAD + INVERT_BNDRY_ONE
218- inner_boundary_flags = 1 + 4 # INVERT_DC_GRAD + INVERT_AC_LAP
219- outer_boundary_flags = 1 + 4 # INVERT_DC_GRAD + INVERT_AC_LAP
183+ type = hypre3d
184+ inner_boundary_flags = 0 # Dirichlet
185+ outer_boundary_flags = 0 # Dirichlet
220186
221187[aparSolver]
222- #inner_boundary_flags = 1 + 2 + 128 # INVERT_DC_GRAD + INVERT_AC_GRAD + INVERT_BNDRY_ONE
223- #outer_boundary_flags = 1 + 2 + 128 # INVERT_DC_GRAD + INVERT_AC_GRAD + INVERT_BNDRY_ONE
224188inner_boundary_flags = 1 + 4 # INVERT_DC_GRAD + INVERT_AC_LAP
225189outer_boundary_flags = 1 + 4 # INVERT_DC_GRAD + INVERT_AC_LAP
226190
@@ -271,12 +235,9 @@ bndry_ydown = free_o3
271235# Zero gradient in the core
272236bndry_core = neumann
273237
274- [Vpar]
275-
276- bndry_core = neumann
277-
278238[phi]
279239
280240bndry_xin = none
281241bndry_xout = none
282- bndry_target = neumann
242+ #bndry_target = neumann
243+
0 commit comments