-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinterface.py
More file actions
96 lines (84 loc) · 1.96 KB
/
Copy pathinterface.py
File metadata and controls
96 lines (84 loc) · 1.96 KB
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
from reactions import *
calculation_name = "H2_H_p_e_better"
species_names = [ "H2", "H2+", "H", "H(1)", "H(2)", "H(3)", "p", "e"]
Tmin = 1
Tmaxs = [50000]
fine_degrees = [0.5]
initial_guess = [n0/ 2, 1, 1, 1, 1, 1, 1, 1]
chemical_reactions = [
{
"left_handed_side_coefficients":{
"H2":1
},
"right_handed_side_coefficients":{
"H":2
},
"reaction_K": K_of_H2_decomposition
},
{
"left_handed_side_coefficients":{
"H":1
},
"right_handed_side_coefficients":{
"p":1, "e":1
},
"reaction_K":K_of_H_ionization
},
{
"left_handed_side_coefficients":{
"H2":1
},
"right_handed_side_coefficients":{
"H2+":1, "e":1
},
"reaction_K":K_of_H2_primary_decomposition
},
{
"left_handed_side_coefficients":{
"H":1
},
"right_handed_side_coefficients":{
"H(1)":1
},
"reaction_K":K_of_H_first_excitation
},
{
"left_handed_side_coefficients":{
"H":1
},
"right_handed_side_coefficients":{
"H(2)":1
},
"reaction_K":K_of_H_second_excitation
},
{
"left_handed_side_coefficients":{
"H":1
},
"right_handed_side_coefficients":{
"H(3)":1
},
"reaction_K":K_of_H_third_excitation
},
]
conservation_relations = [
{
"coefficients":{
"H2":2, "H": 1, "H(1)": 1, "H(2)": 1, "H(3)": 1, "H2+": 1,"p":1,
},
"quantity": n0
},
{
"coefficients":{
"p": 1, "e": -1, "H2+": 1
},
"quantity": 0
}
]
mpmath_precision = 200
mpmath_findroot_tolerance = 1e-50
plt_figsize = (10, 6)
picture_save_path = f"pic/{calculation_name}.png"
data_save_path = f"data/{calculation_name}.npz"
temperature_unit = "K"
density_unit = "m^-3"