-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinputparameters.py
50 lines (40 loc) · 1.11 KB
/
inputparameters.py
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
import numpy as np
from sys import exit
def isScalar(value):
return isinstance(value, float) or isinstance(value, int)
class InputParameters:
def __init__(self):
# Geometry specficiations
self.geometry = 'slab'
self.r_half = None
# Whether or not to enable the hydro/radiation run
self.enable_hydro = True
self.enable_radiation = True
# Material properties
self.C_v = None
self.gamma = None
self.kappa = None
self.kappa_s = None
# Constants
self.a = None
self.c = None
# Initial conditions
self.E = None
self.rho = None
self.T = None
self.u = None
# Left ghost cell
self.rho_bL = None
self.e_bL = None
self.u_bL = None
# Right ghost cell
self.rho_bR = None
self.e_bR = None
self.u_bR = None
# Iteration parameters
self.CoFactor = None
self.relEFactor = None
self.maxTimeStep = None
self.T_final = None
# Slope withing factor
self.omega = None