This repository has been archived by the owner on Sep 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Substances.py
73 lines (70 loc) · 4.11 KB
/
Substances.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#/usr/bin/env python
# -*- coding: utf-8 -*-
########### SVN repository information ###################
# $Date: 2023-10-31 11:22:16 -0500 (Tue, 31 Oct 2023) $
# $Author: vondreele $
# $Revision: 5693 $
# $URL: https://subversion.xray.aps.anl.gov/pyGSAS/trunk/Substances.py $
# $Id: Substances.py 5693 2023-10-31 16:22:16Z vondreele $
########### SVN repository information ###################
"""
Defines materials commonly found in small angle & reflectometry experiments.
GSASII substances as a dictionary ''Substances.Substances'' with these materials.
Each entry in ''Substances'' consists of::
'key':{'Elements':{element:{'Num':float number in formula},...},'Density':value, 'Volume':,value}
Density & Volume are optional, if one missing it is calculated from the other; if both
are missing then Volume is estimated from composition & assuming 10 \\AA^3 for each atom.
Density is calculated from that Volume.
See examples below for what is needed.
"""
Substances = {
'Alumina':{'Elements':{'Al':{'Num':2.},'O':{'Num':3.}},'Density':3.986,},
'Water':{'Elements':{'O':{'Num':1.},'H':{'Num':2.}},'Density':1.0},
'Silicon':{'Elements':{'Si':{'Num':8.}},'Volume':160.209},
'a-Quartz':{'Elements':{'Si':{'Num':3.},'O':{'Num':6.}},'Volume':113.057},
'Ethanol':{'Elements':{'C':{'Num':2.},'O':{'Num':1},'H':{'Num':6.}},},
'Polyethylene':{'Elements':{'C':{'Num':1.},'H':{'Num':2.}},'Density':0.93,},
'Polystyrene':{'Elements':{'C':{'Num':1.},'H':{'Num':1.}},'Density':1.060,},
'Teflon':{'Elements':{'C':{'Num':1.},'F':{'Num':2.}},'Density':2.25,},
'Mylar':{'Elements':{'C':{'Num':5.},'H':{'Num':4.},'O':{'Num':2.}},'Density':1.38,},
'Iron':{'Elements':{'Fe':{'Num':4.}},'Density':7.87,},
'Fe3C':{'Elements':{'Fe':{'Num':3.},'C':{'Num':1.}},'Volume':38.8,},
'FeO-wustite':{'Elements':{'Fe':{'Num':4.},'O':{'Num':4.}},'Volume':79.285},
'Fe2O3-hematite':{'Elements':{'Fe':{'Num':12.},'O':{'Num':18.}},'Volume':301.689},
'Fe3O4-magnetite':{'Elements':{'Fe':{'Num':24.},'O':{'Num':32.}},'Volume':591.921},
'Zirconium':{'Elements':{'Zr':{'Num':2.}},'Density':6.51,},
'Carbon':{'Elements':{'C':{'Num':1.}},'Density':2.27,},
'Titanium':{'Elements':{'Ti':{'Num':1.}},'Density':4.51,},
'TiO2-rutile':{'Elements':{'Ti':{'Num':2.},'O':{'Num':4.}},'Volume':62.452},
'Chromium':{'Elements':{'Cr':{'Num':1.}},'Density':7.19,},
'Nickel':{'Elements':{'Ni':{'Num':4.}},'Density':8.90,},
'Copper':{'Elements':{'Cu':{'Num':4.}},'Density':8.96,},
'Hydroxyapatite':{'Elements':{'Ca':{'Num':5.},'P':{'Num':3.},'O':{'Num':13.},'H':{'Num':1.}},'Density':3.986,},
'Cr2O3':{'Elements':{'Cr':{'Num':2.},'O':{'Num':3.}},'Density':5.206,},
'ZrO2':{'Elements':{'Zr':{'Num':1.},'O':{'Num':3,}},'Density':6.134,},
'Y(0.16)Zr(0.84)O2':{'Elements':{'Y':{'Num':0.16},'Zr':{'Num':0.84},'O':{'Num':2.}},'Density':6.01,},
'Ag':{'Elements':{'Ag':{'Num':1}},'Volume':17.066},
'Al':{'Elements':{'Al':{'Num':1}},'Volume':16.582},
'Au':{'Elements':{'Au':{'Num':1}},'Volume':16.953},
'Co':{'Elements':{'Co':{'Num':1}},'Volume':11.0177},
'FeF2':{'Elements':{'Fe':{'Num':1},'F':{'Num':2}},'Volume':36.352},
'GaAs':{'Elements':{'Ga':{'Num':1},'As':{'Num':1}},'Volume':45.173},
'LaAlO3':{'Elements':{'La':{'Num':1},'Al':{'Num':1},'O':{'Num':3}},'Volume':54.503},
'LaFeO3':{'Elements':{'La':{'Num':1},'Al':{'Num':1},'O':{'Num':3}},'Volume':50.355},
'LaMnO3':{'Elements':{'La':{'Num':1},'Mn':{'Num':1},'o':{'Num':3}},'Volume':58.413},
'MgF2':{'Elements':{'Mg':{'Num':1},'F':{'Num':2}},'Volume':32.58},
'MgO':{'Elements':{'Mg':{'Num':1},'O':{'Num':1}},'Volume':17.977},
'MnF2':{'Elements':{'Mn':{'Num':1},'F':{'Num':2}},'Volume':38.56},
'NiO':{'Elements':{'Ni':{'Num':1},'O':{'Num':1}},'Volume':18.22},
'Pd':{'Elements':{'Pd':{'Num':1}},'Volume':14.738},
'Pt':{'Elements':{'Pt':{'Num':1}},'Volume':15.14},
'SrTiO3':{'Elements':{'Sr':{'Num':1},'Ti':{'Num':1},'O':{'Num':1}},'Volume':26.71},
'V':{'Elements':{'V':{'Num':1}},'Volume':19.26},
'protein':{'Elements':{'C':{'Num':9.25},'N':{'Num':2.34},'O':{'Num':2.77},'S':{'Num':0.22},'H':{'Num':14.3}},'Volume':288.8}, #insulin - typical?
}
# they should not be duplicated in the UserSubstances.py file:
try:
import UserSubstances as userFile
Substances.update(userFile.Substances)
except:
pass