@@ -43,7 +43,7 @@ def setrun(claw_pkg='dclaw'):
43
43
#------------------------------------------------------------------
44
44
# Problem-specific parameters to be written to setprob.data:
45
45
#------------------------------------------------------------------
46
-
46
+
47
47
#probdata = rundata.new_UserData(name='probdata',fname='setprob.data')
48
48
#probdata.add_param('variable_eta_init', True) # now in qinit info
49
49
@@ -95,8 +95,8 @@ def setrun(claw_pkg='dclaw'):
95
95
# Index of aux array corresponding to capacity function, if there is one:
96
96
clawdata .capa_index = 0
97
97
98
-
99
-
98
+
99
+
100
100
# -------------
101
101
# Initial time:
102
102
# -------------
@@ -106,7 +106,7 @@ def setrun(claw_pkg='dclaw'):
106
106
107
107
# Restart from checkpoint file of a previous run?
108
108
# If restarting, t0 above should be from original run, and the
109
- # restart_file 'fort.chkNNNNN' specified below should be in
109
+ # restart_file 'fort.chkNNNNN' specified below should be in
110
110
# the OUTDIR indicated in Makefile.
111
111
112
112
clawdata .restart = False # True to restart from prior results
@@ -135,9 +135,9 @@ def setrun(claw_pkg='dclaw'):
135
135
elif clawdata .output_style == 3 :
136
136
# Output every iout timesteps with a total of ntot time steps:
137
137
clawdata .output_step_interval = 1
138
- clawdata .total_steps = 1
138
+ clawdata .total_steps = 3
139
139
clawdata .output_t0 = True
140
-
140
+
141
141
142
142
clawdata .output_format = 'ascii'
143
143
@@ -176,35 +176,33 @@ def setrun(claw_pkg='dclaw'):
176
176
# Desired Courant number if variable dt used, and max to allow without
177
177
# retaking step with a smaller dt:
178
178
# D-Claw requires CFL<0.5
179
- clawdata .cfl_desired = 0.45
180
- clawdata .cfl_max = 0.5
179
+ clawdata .cfl_desired = 0.75
180
+ clawdata .cfl_max = 0.85
181
181
182
182
# Maximum number of time steps to allow between output times:
183
183
clawdata .steps_max = 5000
184
184
185
185
186
-
187
-
188
186
# ------------------
189
187
# Method to be used:
190
188
# ------------------
191
189
192
190
# Order of accuracy: 1 => Godunov, 2 => Lax-Wendroff plus limiters
193
191
clawdata .order = 2
194
-
192
+
195
193
# Use dimensional splitting? (not yet available for AMR)
196
194
clawdata .dimensional_split = 'unsplit'
197
-
198
- # For unsplit method, transverse_waves can be
195
+
196
+ # For unsplit method, transverse_waves can be
199
197
# 0 or 'none' ==> donor cell (only normal solver used)
200
198
# 1 or 'increment' ==> corner transport of waves
201
199
# 2 or 'all' ==> corner transport of 2nd order corrections too
202
- clawdata .transverse_waves = 1
200
+ clawdata .transverse_waves = 2
203
201
204
202
# Number of waves in the Riemann solution:
205
203
clawdata .num_waves = 5
206
-
207
- # List of limiters to use for each wave family:
204
+
205
+ # List of limiters to use for each wave family:
208
206
# Required: len(limiter) == num_waves
209
207
# Some options:
210
208
# 0 or 'none' ==> no limiter (Lax-Wendroff)
@@ -219,7 +217,7 @@ def setrun(claw_pkg='dclaw'):
219
217
220
218
# Source terms splitting:
221
219
# src_split == 0 or 'none' ==> no source term (src routine never called)
222
- # src_split == 1 or 'godunov' ==> Godunov (1st order) splitting used,
220
+ # src_split == 1 or 'godunov' ==> Godunov (1st order) splitting used,
223
221
# src_split == 2 or 'strang' ==> Strang (2nd order) splitting used, not recommended.
224
222
clawdata .source_split = 'godunov'
225
223
@@ -267,7 +265,7 @@ def setrun(claw_pkg='dclaw'):
267
265
pass
268
266
269
267
elif abs (clawdata .checkpt_style ) == 2 :
270
- # Specify a list of checkpoint times.
268
+ # Specify a list of checkpoint times.
271
269
clawdata .checkpt_times = 3600. * np .arange (1 ,16 ,1 )
272
270
273
271
elif abs (clawdata .checkpt_style ) == 3 :
@@ -326,7 +324,7 @@ def setrun(claw_pkg='dclaw'):
326
324
amrdata .clustering_cutoff = 0.700000
327
325
328
326
# print info about each regridding up to this level:
329
- amrdata .verbosity_regrid = 1
327
+ amrdata .verbosity_regrid = 1
330
328
331
329
332
330
# ---------------
@@ -360,7 +358,7 @@ def setrun(claw_pkg='dclaw'):
360
358
except :
361
359
print ("*** Error, this rundata has no geo_data attribute" )
362
360
raise AttributeError ("Missing geo_data attribute" )
363
-
361
+
364
362
# == Physics ==
365
363
geo_data .gravity = 9.81
366
364
geo_data .coordinate_system = 1
@@ -396,16 +394,16 @@ def setrun(claw_pkg='dclaw'):
396
394
etafile = 'surface_topo.tt3'
397
395
qinitdclaw_data .qinitfiles .append ([3 , 8 , 1 , 2 , etafile ])
398
396
399
- #mfile = 'mass_frac.tt3'
400
- mfile = 'mass_frac0 .tt3' # with m0 = 0 below
397
+ #mfile = 'mass_frac.tt3'
398
+ mfile = 'mass_frac .tt3' # with m0 = 0 below
401
399
qinitdclaw_data .qinitfiles .append ([3 , 4 , 1 , 2 , mfile ])
402
-
400
+
403
401
#hfile = 'landslide_depth.tt3'
404
402
#qinitdclaw_data.qinitfiles.append([3, 1, 1, 2, hfile])
405
403
406
404
# == setauxinit.data values ==
407
405
#auxinitdclaw_data = rundata.auxinitdclaw_data # initialized when rundata instantiated
408
-
406
+
409
407
# == fgmax.data values ==
410
408
#fgmax_files = rundata.fgmax_data.fgmax_files
411
409
# for fixed grids append to this list names of any fgmax input files
@@ -419,10 +417,10 @@ def setrun(claw_pkg='dclaw'):
419
417
dclaw_data .phi_bed = 32.0
420
418
dclaw_data .theta_input = 0.0
421
419
dclaw_data .mu = 0.005
422
- # dclaw_data.m0 = 0.63
423
- dclaw_data .m0 = 0. # pure water
420
+ dclaw_data .m0 = 0.63
421
+ # dclaw_data.m0 = 0. # pure water
424
422
dclaw_data .m_crit = 0.64
425
- dclaw_data .kappita = 1.e-8
423
+ dclaw_data .kappita = 1.e-10
426
424
#dclaw_data.kappita_diff = 1
427
425
#dclaw_data.chi_init_val=0.5 # not currently used.
428
426
dclaw_data .alpha_c = 0.05
@@ -444,7 +442,7 @@ def setrun(claw_pkg='dclaw'):
444
442
pinitdclaw_data .init_pmax_ratio = 0.00e0
445
443
pinitdclaw_data .init_ptf = 0.0
446
444
pinitdclaw_data .init_ptf2 = 0.0
447
-
445
+
448
446
# == flowgrades.data values ==
449
447
flowgrades_data = rundata .flowgrades_data # initialized when rundata instantiated
450
448
@@ -457,12 +455,12 @@ def setrun(claw_pkg='dclaw'):
457
455
# flowgradetype: 1 = norm(flowgradevariable), 2 = norm(grad(flowgradevariable))
458
456
# flowgrademinlevel: refine to at least this level if flowgradevalue is exceeded.
459
457
460
-
458
+
461
459
#flowgrades_data.keep_fine = True
462
460
#flowgrades_data.flowgrades.append([1.0e-6, 2, 1, 1])
463
461
#flowgrades_data.flowgrades.append([1.0e-6, 1, 1, 1])
464
462
465
- # ----- For developers -----
463
+ # ----- For developers -----
466
464
# Toggle debugging print statements:
467
465
amrdata .dprint = False # print domain flags
468
466
amrdata .eprint = False # print err est flags
@@ -474,7 +472,7 @@ def setrun(claw_pkg='dclaw'):
474
472
amrdata .sprint = False # space/memory output
475
473
amrdata .tprint = False # time step reporting each level
476
474
amrdata .uprint = False # update/upbnd reporting
477
-
475
+
478
476
amrdata .max1d = 300
479
477
# More AMR parameters can be set -- see the defaults in pyclaw/data.py
480
478
@@ -493,4 +491,3 @@ def setrun(claw_pkg='dclaw'):
493
491
import sys
494
492
rundata = setrun (* sys .argv [1 :])
495
493
rundata .write ()
496
-
0 commit comments