-
Notifications
You must be signed in to change notification settings - Fork 8
/
template.par
796 lines (591 loc) · 22.5 KB
/
template.par
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
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
########################################################
# Template containing all possible parameters together #
# with a brief description. For more information see #
# the documentation at: #
# https://nuc-astro.github.io/WinNet/parameters.html #
# #
# @date : 22/08/2023 #
# @author: M. Reichert #
########################################################
##########################
# General parameters #
##########################
# List of all isotopes used in the network
# (sunet file)
net_source =
# Temperature in GK to freeze the reaction rates. Below this value,
# all reaction rates will kept constant. The default value is 1e-2 GK.
freeze_rate_temp =
#######################
# Reaclib library #
#######################
# The reaclib library containing most of the reaction rates
reaclib_file =
# Database with the properties of all isotopes
# (winvn file)
isotopes_file =
########################################
# High temperature partition functions #
########################################
# Whether to use high temperature partition functions or not.
# (yes/no)
use_htpf =
# Path to a file that contains high temperature partition functions
# exceeding temperatures of 10 GK.
htpf_file =
####################################
# Input for theoretical weak rates #
####################################
# Weak rates library
weak_rates_file=
# Whether the chem_pot_file should be used or not.
# If the following is set to "no", the tabulation of the rate files
# will be used to extract the chemical potential of the electrons.
use_timmes_mue =
# Tabulated chemical potential of electron-positron gas. Only used if
# use_timmes_mue is enabled.
chem_pot_file=
# Flag for theoretical weak rates:
# =0 : No theoretical weak rates are used
# =1 : direct tabulation of theoretical weak rates are used
# =2 : log(ft) theoretical weak rates are used
iwformat =
# Temp at which theoretical weak rates should be replaced
# with experimental decays. The grid of most of the
# theoretical reaction rates ends at 1d-2 GK.
temp_reload_exp_weak_rates=
# Interpolation method for the interpolation on the
# T - rho*Ye grid.
# iwinterp = 1: Bilinear interpolation
# iwinterp = 2: Bicubic interpolation (deprecated)
iwinterp =
############################
# Thermodynamic conditions #
############################
# Is this a trajectory run?
# Possible options are:
# "from_file" : Take a trajectory file to get temperature and density.
# "analytic" : Take a analytic expression.
trajectory_mode =
### Case 1: trajectory_format = "from_file" ###
# Path to the trajectory
trajectory_file =
# Trajectory format, valid entries are:
# time : The time (s) of the trajectory
# temp : The temperature (GK) of the trajectory
# dens : The density (g/ccm) of the trajectory
# rad : The radius (km) of the trajectory
# x,y,z : x, y, and z coordinates (km) of the trajectory
# ye : The electron fraction
# lanue : Anti-electron neutrino luminosities (erg/s)
# lnue : Electron neutrino luminosities (erg/s)
# tanue : Electron anti-neutrino temperatures (MeV)
# tnue : Electron neutrino temperatures (MeV)
# eanue : Electron anti-neutrino energies (MeV)
# enue : Electron Neutrino energies (MeV)
# lanux : Summed muon and tau anti-neutrino luminosities (erg/s)
# lnux : Summed muon and tau neutrino luminosities (erg/s)
# tanux : Muon and tau anti-neutrino temperatures (MeV)
# tnux : Muon and tau neutrino temperatures (MeV)
# eanux : Muon and tau anti-neutrino energies (MeV)
# enux : Muon and tau neutrino energies (MeV)
# skip : skip a column
#
# Not all entries are mandatory. The units can be specified with a double point
# behind the entry. Logarithmic columns are indicated by a log_ infront of the
# entry.
trajectory_format =
# Mode to interpolate the quantities from the trajectory file. All interpolations
# are performed in lin-log space.
# = 1: Linear interpolation;
# = 2: Cubic interpolation;
# = 3: Akima interpolation;
# = 4: mAkima interpolation;
# = 5: PCHIP interpolation;
# The default interpolation is PCHIP (5).
interp_mode =
### Case 2: trajectory_format = "analytic" ###
# Initial time in seconds for analytic trajectory mode.
# This time is only assumed for constant hydrodynamic conditions.
# Otherwise the calculation starts at the point where the
# temperature is lower than initemp.
t_analytic =
# Analytic temperature evolution. The time (in seconds)
# can be specified with the variable 'x'.
T9_analytic =
# Analytic density evolution. The time (in seconds)
# can be specified with the variable 'x'.
rho_analytic =
# Analytic radius evolution. The time (in seconds)
# can be specified with the variable 'x'.
Rkm_analytic =
# Analytic electron fraction evolution. The time (in seconds)
# can be specified with the variable 'x'.
Ye_analytic =
###########################
# Additional alpha-decays #
###########################
# Supplement rates with additional alpha-decays
# (yes/no)
use_alpha_decay_file =
# Alpha-decays that have been calculated with
# the Viola-Seaborg formula
alpha_decay_file =
# Flag to decide if any alpha-decay that is contained in the reaclib_file
# should get replaced or not. If this parameter is set to 'yes' (default),
# all reaclib rates will have priority over the additional alpha-decay rates.
# This parameter will only be relevant if use_alpha_decay_file is turned on.
# If alpha_decay_ignore_all is turned on, alpha_decay_src_ignore will become
# irrelevant.
# (yes/no)
alpha_decay_ignore_all =
# Flag to decide if a alpha-decay that is contained in the reaclib_file should
# get replaced or not. If the source label is given in this parameter here,
# all rates with this source label will not get replaced. This parameter will
# only be relevant if use_alpha_decay_file is turned on and alpha_decay_ignore_all
# is set to "no". Per default, experimentally measured rates with the labels
# wc07, wc12, and wc17 are not replaced. The labels have to be separated
# with a ;, i.e., wc07;wc12;wc17
alpha_decay_src_ignore =
# Maximum proton number to include additional alpha-decays. This parameter will
# only be relevant if use_alpha_decay_file is turned on.
# The default value is 184.
alpha_decay_zmax =
# Minimum proton number to include additional alpha-decays.
# This parameter will only be relevant if use_alpha_decay_file is turned on.
# The default value is 20.
alpha_decay_zmin =
###################
# Tabulated rates #
###################
# Whether or not to use tabulated rates.
# (yes/no)
use_tabulated_rates =
# Path to a file with tabulated rates.
tabulated_rates_file =
##########################
# Additional Beta decays #
##########################
# Whether to use or not use beta decays in another format
# (yes/no)
use_beta_decay_file =
# Path to a file that contains beta decays with
# beta delayed neutron probabilities.
beta_decay_file =
# Colon separated string with labels of rates that should not get replaced
# by the beta_decays. Only the source string of the P0n channel of the reaclib
# is hereby compared. Experimental rates are ignored per default.
# This parameter is only relevant if use_beta_decay_file is enabled.
# An example entry could be wc07;wc12;wc17
beta_decay_src_ignore =
###########################
# Neutrino reactions #
###########################
# Flag for neutrino rates:
# = 0: No neutrinos;
# = 1: Neutrino reactions on nucleons;
# = 2: Neutrino reactions on nucleons, charged current reactions
# on heavy nuclei;
# = 3: Neutrino reactions on nucleons, neutral current reactions
# on heavy nuclei;
# = 4: Neutrino reactions on nucleons, charged and neutral current reactions
# on heavy nuclei;
nuflag =
# Path to a file containing the neutrino reactions on nucleons
nunucleo_rates_file =
# Path to a file that contains the neutrino reaction channels.
# Only used for nuflag > 1
nuchannel_file =
# Path to a file that contains the neutrino reactions on heavy nuclei.
# Only used for nuflag > 1
nurates_file =
# From where to take neutrino luminosities or energies.
# Possible values are:
# neutrino_mode = 'from_file'
# neutrino_mode = 'analytic'
# In the case that it is 'from_file' and nuflag>0, the trajectory file
# has also to contain the neutrino information.
neutrino_mode =
# Maximum time (in s) for neutrino reactions to occure.
# The default is -1 which will never turn off neutrino reactions.
nu_max_time =
# Minimum neutrino temperature (MeV) to consider neutrino reactions.
# The default value is 1MeV.
nu_min_T =
# Minimum neutrino Luminosity (erg/g/s) to consider neutrino reactions.
# The default value is 1 erg/g/s
nu_min_L =
### Case: neutrino_mode = 'analytic' ###
# Analytic equation for the electron neutrino energy (in MeV). The time
# can be given as variable x.
Enue =
# Analytic equation for the electron anti-neutrino energy (in MeV). The time
# can be given as variable x.
Enuebar =
# Analytic of the average muon-neutrino and tau neutrino energies (in MeV).
# The time can be given as variable x.
Enux =
# Analytic of the average muon-antineutrino and tau antineutrino energies (in MeV).
# The time can be given as variable x.
Enuxbar =
# Analytic equation for the electron neutrino luminosity (in erg/s). The time
# can be given as variable x.
Le =
# Analytic equation for the electron antineutrino luminosity (in erg/s). The time
# can be given as variable x.
Lebar =
# Analytic of the average muon-neutrino and tau neutrino luminosities (in erg/s).
# The time can be given as variable x.
Lx =
# Analytic of the average muon-antineutrino and tau antineutrino luminosities (in erg/s).
# The time can be given as variable x.
Lxbar =
####################
# Detailed balance #
####################
# Whether or not to replace inverse rates by detailed balance rates.
# (yes/no)
use_detailed_balance =
# Flag to decide whether to use the Q-value from the reaction file (yes) or
# from the used winvn (no). The ladder one is more consistent with NSE,
# while the first one is consistent with the forward rate.
# (yes/no)
use_detailed_balance_q_reac =
# The source labels given within this parameter will use the Q-value as given
# in the rate file for the calculation of the inverse rate. This is independent
# on whether use_detailed_balance_q_reac is enabled or not.
# An example entry could be rath;kd02
detailed_balance_src_q_reac=
# The source labels given within this parameter will use the Q-value as given
# in the isotopes_file (winvn) by the mass excess for the calculation of the
# inverse rate. This is independent on whether use_detailed_balance_q_reac
# is enabled or not.
detailed_balance_src_q_winvn =
# The source labels given within this parameter will be ignored by the detailed
# balance calculation of WinNet, i.e., no rates will be removed or added for
# any rates given within the provided source labels.
# An example entry could be rath;kd02
detailed_balance_src_ignore =
###########
# Fission #
###########
# Fission fragment distribution.
# =0: No fission;
# =1: Panov et al. 2001;
# =2: Kodama & Takahashi 1975;
# =3: Mumpower et al. 2020 (nf, bf) & Kodama & Takahashi 1975 (sf);
# =4: Custom fission fragments;
fissflag =
# Path to fission rates of beta-delayed fission
fission_rates_beta_delayed =
# Format of this beta-delayed fission file
# =0: No rates are read;
# =1: Reaclib format;
# =2: Half life format;
# =3: Probability format;
fission_format_beta_delayed =
# Path to fission rates of n-induced fission
fission_rates_n_induced =
# Format of this n-induced fission file
# =0: No rates are read;
# =1: Reaclib format;
fission_format_n_induced =
# Path to fission rates of spontaneous fission
fission_rates_spontaneous =
# Format of this spontaneous fission file
# =0: No rates are read;
# =1: Reaclib format;
# =2: Half life format;
fission_format_spontaneous =
### Case 1: fissflag = 3 or fissflag = 4 ###
# File that contains the fission fragment probabilities of neutron induced
# fission.
nfission_file =
### Case 2: fissflag = 4 ###
# Treatment of fission fragments for n-induced fission
# =1: Panov et al. 2001;
# =2: Kodama & Takahashi 1975;
# =3: From file, using nfission_file
fission_frag_n_induced =
# Treatment of fission fragments for beta-delayed fission
# =1: Panov et al. 2001;
# =2: Kodama & Takahashi 1975;
# =3: From file, using bfission_file
fission_frag_beta_delayed =
# File containing fragments for beta-delayed fission
bfission_file =
# Treatment of fission fragments for spontaneous fission
# =1: Panov et al. 2001;
# =2: Kodama & Takahashi 1975;
# =3: From file, using sfission_file
fission_frag_spontaneous =
# File containing fragments for spontaneous fission
sfission_file =
# Treatment of fission fragments for fragments that are not
# found in the given files (bfission_file, nfission_file, or sfission_file)
# =0: None, error raised;
# =1: Panov et al. 2001;
# =2: Kodama & Takahashi 1975;
fission_frag_missing =
#######################
# Coulomb corrections #
#######################
# Which electron screening scheme to use?
# Possible values are:
# = 0: No screening
# = 1: Screening as in Kravchuk & Yakovlev 2014
screening_mode =
################################
# Prepared reaction rate files #
################################
# Whether or not to use a previously prepared folder that contains reaction
# rates and network data. This is particularly useful if running many
# trajectories with the same nuclear input as it can significantly speed up the
# initialization. A folder that contains the data in the necessary format can be
# created by running winnet with two inputs, i.e.,
# ./winnet Example.par network_data
# This will create a folder "network_data" with the same nuclear properties
# that are given in Example.par. The path to this created folder has then to be
# given within the prepared_network_path parameter. The makerun.py is able to
# automatically prepare all necessary files for a run with many trajectories
# with the --prepared flag. For more information see the example cases and the
# help of the makerun.py (accessible via python makerun.py --help).
# (yes/no)
use_prepared_network =
# File to a previously created folder with reaction rate and nuclear data.
prepared_network_path =
###################
# Nuclear heating #
###################
# Calculate energy generation due to nuclear burning?
# = 0: No feedback on the temperature;
# = 1: Update the entropy;
# = 2: Update the temperature with specific heat capacity
# and dT of the trajectory;
# = 3: Update the temperature with specific heat capacity
# and dT according to adiabatic expansion;
heating_mode =
# Whether or not to use an external neutrino loss file that gives the
# energy of neutrinos per beta decay.
# (yes/no)
use_neutrino_loss_file =
# Path to a valid neutrino loss file
neutrino_loss_file =
# Default fraction of energy to be radiated away.
heating_frac =
# Include thermal neutrino losses?
# (yes/no)
use_thermal_nu_loss =
# Density to switch on nuclear heating.
# (When matter becomes transparent for neutrinos)
heating_density =
# Tolerance to assume a temperature as converged.
heating_T9_tol =
#######################
# Initial composition #
#######################
# Whether or not to read the initial composition from file
# (yes/no)
read_initial_composition =
# Path to a file that contains the initial composition.
seed_file =
# Format of the seed file.
# Possible entries are:
# A : Mass number
# Z : Proton number
# N : Neutron number
# Name : Nucleus name
# X : Mass fraction
# Y : Abundance
# skip : Dummy column
# The first rows of the seed file will be skipped if
# they start with "#" or are blank.
seed_format =
#######################
# Starting conditions #
#######################
# Maximum temperature to start at (in GK)
initemp_hot =
# Minimum temperature to start at (in GK)
initemp_cold =
# Initial stepsize to take (in seconds)
initial_stepsize =
###################################
# Nuclear statistical equilibrium #
###################################
# Used scheme to solve the NSE equations.
# = 0: Newton-Raphson scheme
# = 1: Powell's hybrid method
nse_solver =
# Initial temperature for NSE descend algorithm
nse_descend_t9start=
# Minimum temperature in GK when descending from nse_descend_t9start to the
# desired temperature. If smaller temperatures are necessary,
# an error is raised.
nse_delt_t9min =
# Temperature (in GK) transition from Network -> NSE
nsetemp_hot =
# Temperature (in GK) transition from NSE -> Network
nsetemp_cold =
# Recalculation of NSE abundances every nth iteration
nse_calc_every =
# Maximum amount of iterations to bring the NSE solver to convergence.
# The default value is 25.
nse_max_it =
# Convergence criteria within the solving scheme of the NSE calculation.
# The default value is 1d-6.
nse_nr_tol =
######################
# Expansion settings #
######################
# How to extrapolate the thermodynamic quantities after the
# trajectory has ended?
# Possible values are
# = 1: Temperature adiabatic, density free (as in Korobkin et al. 2012);
# = 2: Exponential expansion;
# = 3: Expansion with constant velocity;
# = 4: Expansion with constant velocity (as in Fujimoto et al. 2008);
expansiontype =
# How many trajectory points to use in order to calculate the
# expansion velocity?
extrapolation_width =
##########################
# Termination conditions #
##########################
# When to end the simulation?:
# = 0: At the end of the trajectory;
# = 1: after final_time is reached;
# = 2: after final_temp is reached;
# = 3: after final_dens is reached;
termination_criterion =
# Final time in seconds (termination_criterion = 1)
final_time =
# Final temperature in GK (termination_criterion = 2)
final_temp =
# Final density in g/ccm (termination_criterion = 3)
final_dens =
###########################
# Output Settings #
###########################
### ASCII output ###
# Output frequency for OUT file (or screen if not started with output piped to OUT)
out_every =
# Output frequency for mainout.dat
mainout_every =
# Whether or not the mainout should contain also the average
# neutron separation energies.
# (yes/no)
calc_nsep_energy =
# Path to a file containing neutron separation energies. This is only
# relevant if calc_nsep_energy is enabled.
nsep_energies_file =
# Output of the nuclear energy generation
engen_every =
# Integer parameter that specifies if top contributor to the nuclear energy
# generation should get printed to the file toplist.dat
top_engen_every =
# Output frequency of the average timescales per reaction type
timescales_every =
# Frequency for nuclei that specifically should get tracked. Output will be
# written to tracked_nuclei.dat
track_nuclei_every =
# Output frequency of flow files. This is saved into the folder flow/
flow_every =
# Output frequency of snapshots (full list of abundances). This is saved
# into the folder snaps/
snapshot_every =
# Whether or not to use snapshots at specific times.
# (yes/no)
custom_snapshots =
# Output frequency for thermal neutrino energies
nu_loss_every =
# Newton-raphson diagnosis output.
nrdiag_every =
### HDF5 output ###
# Output frequency for the mainout data in hdf5 format
h_mainout_every =
# Output frequency of the nuclear energy generation in hdf5 format
h_engen_every =
# Parameter to specify if the energy generation from individual reaction types
# should be written to the hdf5 files.
# (yes/no)
h_engen_detailed =
# Integer parameter that specifies if top contributor to the nuclear energy
# generation should get printed to the file toplist.dat
top_engen_every =
# Output frequency of the average timescales per reaction type in hdf5 format
h_timescales_every =
# Frequency for nuclei that specifically should get tracked. Output will be
# written to the hdf5 file.
h_track_nuclei_every =
# Output frequency of flow data into the hdf5 file.
h_flow_every =
# Output frequency of snapshots (full list of abundances) into the hdf5 file.
h_snapshot_every =
# Whether or not to use snapshots at specific times to save into the hdf5.
# (yes/no)
h_custom_snapshots =
# Output frequency for thermal neutrino energies in the hdf5 file.
h_nu_loss_every =
# Whether or not to save the final abundances in hdf5 format (yes) or
# in ASCII format (no).
# (yes/no)
h_finab =
### General path parameters for ASCII and HDF5 ###
# Path to a file for providing points in time in days for custom snapshots.
# This file is only used if custom_snapshots or h_custom_snapshots are enabled.
snapshot_file =
# Path to a file containing the nuclei that have to get tracked.
# This path is only used if track_nuclei_every or h_track_nuclei_every is
# greater than 0.
track_nuclei_file =
#######################
# Numerical parameter #
#######################
# Limit of the timestep from trajectory?
timestep_traj_limit =
# Maximum allowed difference of temperature or density within one timestep.
timestep_hydro_factor =
# Maximum amount of adapting the time step in case the Newton-Raphson did not
# converge within nr_maxcount
adapt_stepsize_maxcount =
# Integration method
# = 0: Implicit Euler
# = 1: Gear
solver =
### Case solver = 0 ###
# Minimum number of Newton-Raphson iterations
nr_mincount =
# Maximum number of Newton-Raphson iterations
nr_maxcount =
# Exit accuracy of the Newton-Raphson algorithm.
nr_tol =
# Maximum allowed change of the timestep
timestep_max =
# Estimated change of abundances within one timestep
timestep_factor =
# Minimum of abundances taken into account for timestep calculations
timestep_Ymin =
### Case solver = 1 ###
# Conservative time step factor. This factor should lie between 0.1 and 0.4.
# The default value is 0.25.
gear_cFactor =
# Numerical parameter to control the abundance accuracy.
gear_eps =
# Numerical parameter to control the minimum abundance that is considered in
# the calculation time step.
gear_escale =
# Maximum allowed change of the timestep
gear_timestep_max =
# Parameter to decide whether the time step should be adapted in case the
# Newton-Raphson did not converge optimally. The default is set to true and the
# stepsize is therefore not changed when the newton-raphson reaches the maximum
# amount of iterations.
# (yes/no)
gear_ignore_adapt_stepsize =
# Numerical parameter to control the newton-raphson convergence criteria.
gear_nr_eps =
# Numerical parameter to control the minimum iterations of the newton-raphson.
gear_nr_mincount =
# Numerical parameter to control the maximum iterations of the newton-raphson.
gear_nr_maxcount =