Skip to content

Commit c8cd2bb

Browse files
authored
document more of the runtime parameters (#1695)
1 parent bb3b040 commit c8cd2bb

File tree

11 files changed

+71
-4
lines changed

11 files changed

+71
-4
lines changed

Docs/rp.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ def pretty_category(path):
4646
return f"CONDUCTIVITY_DIR={subdir}"
4747
if path.startswith("integration/"):
4848
return f"INTEGRATOR_DIR={subdir}"
49+
if path.startswith("opacity/"):
50+
return f"OPACITY_DIR={subdir}"
4951
return path
5052

5153

@@ -65,9 +67,9 @@ def make_rest_table(param_files):
6567

6668
# open the file
6769
try:
68-
f = open(pf, "r")
69-
except IOError:
70-
sys.exit("ERROR: {} does not exist".format(pf))
70+
f = open(pf)
71+
except OSError:
72+
sys.exit(f"ERROR: {pf} does not exist")
7173

7274
descr = r""
7375

EOS/gamma_law/_parameters

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
@namespace: eos
22

3+
# ratio of specific heats
34
eos_gamma real 5.e0/3.e0
4-
eos_assume_neutral bool 1
5+
6+
# when computing mu / Abar, do we assume that the composition is atoms
7+
# or ionized, and therefore include the electron contributions
8+
# separately?
9+
eos_assume_neutral bool 1

EOS/multigamma/_parameters

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,25 @@
11
@namespace: eos
22

3+
# default ratio of specific heats used for all components unless specified
4+
# explicitly as species a, b, or c
35
eos_gamma_default real 1.4
46

7+
# name of species "a"
58
species_a_name string ""
9+
10+
# ratio of specific heats for species "a"
611
species_a_gamma real 1.4
712

13+
# name of species "b"
814
species_b_name string ""
15+
16+
# ratio of specific heats for species "b"
917
species_b_gamma real 1.4
1018

19+
# name of species "c"
1120
species_c_name string ""
21+
22+
# ratio of specific heats for species "c"
1223
species_c_gamma real 1.4
1324

1425

EOS/polytrope/_parameters

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
@namespace: eos
22

3+
# polytrope type: 1 is non-relativistic, fully degenerate electron
4+
# gas; 2 is fully-relativistic, fully degenerate gas. If these are
5+
# set, then only pulytrope_mu_e needs to be set.
36
polytrope_type int 0
7+
8+
# density exponent for pressure, P = K rho**gamma
49
polytrope_gamma real 0.0e0
10+
11+
# proportionality constant in EOS, P = K rho**gamma
512
polytrope_K real 0.0e0
13+
14+
# mean molecular weight per electron for the cases when polytrope_type
15+
# is 1 or 2. In that case, we have P = K (rho / mu_e)**gamma
616
polytrope_mu_e real 2.0e0
717

EOS/rad_power_law/_parameters

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
@namespace: eos
22

3+
# specific heat proportionality constant, K, c_v = K rho**m T**(-n)
34
eos_const_c_v real -1.e0
5+
6+
# specific heat density exponent, m, c_v = K rho**m T**(-n)
47
eos_c_v_exp_m real 0.e0
8+
9+
# specific heat (negative) temperature exponent, n, c_v = K rho**m T**(-n)
510
eos_c_v_exp_n real 0.e0

EOS/tillotson/_parameters

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,27 @@
11
@namespace: eos
22

33
eos_la real 0.5
4+
45
eos_lb real 1.3
6+
7+
# minimum energy
58
eos_e_0 real 1.6e11
9+
10+
# reference density
611
eos_rho_0 real 2.7
12+
13+
714
eos_A real 1.8e11
15+
816
eos_B real 1.8e11
17+
918
eos_e_s real 3.5e10
19+
1020
eos_e_s_prime real 1.8e11
21+
1122
eos_alpha real 5.0
23+
1224
eos_beta real 5.0
25+
26+
# specific heat
1327
eos_c_v real 7.9e6

conductivity/constant/_parameters

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@namespace: conductivity
22

3+
# constant value of the conductivity, in erg/s/cm/K
34
const_conductivity real 1.0e0
45

56

conductivity/constant_opacity/_parameters

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@namespace: conductivity
22

3+
# opacity value, in units of cm**2/g
34
const_opacity real 7.0e-2
45

56

conductivity/powerlaw/_parameters

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
@namespace: conductivity
22

3+
# proportionality constant, C, in k = C T**m
34
cond_coeff real 1.0
5+
6+
# temperature exponent, m, in k = C T**m
47
cond_exponent real 1.0
58

69

integration/_parameters

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,17 @@ burner_verbose bool 0
2121

2222
# Tolerances for the solver (relative and absolute), for the
2323
# species and energy equations.
24+
25+
# relative tolerance for species
2426
rtol_spec real 1.e-12
27+
28+
# relative tolerance for energy
2529
rtol_enuc real 1.e-6
2630

31+
# absolute tolerance for species
2732
atol_spec real 1.e-8
33+
34+
# absolute tolerance for energy
2835
atol_enuc real 1.e-6
2936

3037
# Whether to renormalize the mass fractions at each step in the evolution
@@ -69,10 +76,17 @@ retry_swap_jacobian bool 1
6976
# Tolerances for the solver (relative and absolute), for the
7077
# species and energy equations. If set to < 0, then the same
7178
# value as the first attempt is used.
79+
80+
# relative tolerance for species on retry
7281
retry_rtol_spec real -1
82+
83+
# relative tolerance for energy on retry
7384
retry_rtol_enuc real -1
7485

86+
# absolute tolerance for species on retry
7587
retry_atol_spec real -1
88+
89+
# absolute tolerance for energy on retry
7690
retry_atol_enuc real -1
7791

7892
# in the clean_state process, do we clip the species such that they

0 commit comments

Comments
 (0)