-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmaterial_parameters.py
More file actions
42 lines (32 loc) · 1.09 KB
/
material_parameters.py
File metadata and controls
42 lines (32 loc) · 1.09 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
#%% --------------------------------------------------------------
#%% Constant physical parameters in SI units
# Poisson ratio
nu = 0.1
# thermal parameters
rho = 3000 # [kg/m^3] density
# fracture parameters
lsp = 0.5*1e-3 # [m] length scale parameter
# plasticity parameters
pc0 = 350e6 #[Pa]
alpbp = 0.1
Mbp = 1.5
mbp = 2
betbp = 0.7
gambp = 0.7
# hardening parameters
Omega = 0.01
Ak = 10e9 # [Pa]
delta0 = 500
#%% --------------------------------------------------------------
#%% Load experimental data from corresponding csv file
# This section has to compile before the Filesystem setting otherwise
# the compiler throws a weird ascii codec error (is this a bug ???)
exp_data_folder = "./data/"
# create an empty dictionary to store experimental data
exp_data = {}
measured_paramsfT = ["Emod","alpha","cspec","Kcond","pcT","Gc"]
for key in measured_paramsfT:
exp_data[key] = {}
rawdata = np.loadtxt(exp_data_folder + key + ".csv", delimiter=',')
exp_data[key]["Temp"] = rawdata[:,0] + Kshift
exp_data[key]["value"] = rawdata[:,1]