source: trunk/Substances.py @ 1978

Last change on this file since 1978 was 1299, checked in by toby, 11 years ago

Set conf flags consistently for .py files

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Author Revision URL Id
File size: 2.1 KB
Line 
1"""
2*Substances: Define Materials*
3---------------------------------------------------------------------------------
4
5Defines materials commonly found in small angle & reflectometry experiments.
6GSASII substances as a dictionary ''Substances.Substances'' with these materials.
7
8Each entry in ''Substances'' consists of::
9
10     'key':{'Elements':{element:{'Num':number in formula},...},'Density':value, 'Volume':,value}
11
12Density & Volume are optional, if one missing it is calculated from the other; if both
13are missing then Volume is estimated from composition & assuming 10A^3 for each atom,
14Density is calculated from that Volume.
15See examples below for what is needed.
16"""
17Substances = {
18'Alumina':{'Elements':{'Al':{'Num':2},'O':{'Num':3}},'Density':3.986,},
19'Water':{'Elements':{'O':{'Num':1},'H':{'Num':2}},'Density':1.0},
20'Silicon':{'Elements':{'Si':{'Num':8}},'Volume':160.209},
21'Ethanol':{'Elements':{'C':{'Num':2},'O':{'Num':1},'H':{'Num':6}},},
22'Polyethylene':{'Elements':{'C':{'Num':1},'H':{'Num':2}},'Density':0.93,},
23'Polystyrene':{'Elements':{'C':{'Num':1},'H':{'Num':1}},'Density':1.060,},
24'Teflon':{'Elements':{'C':{'Num':1},'F':{'Num':2}},'Density':2.25,},
25'Mylar':{'Elements':{'C':{'Num':5},'H':{'Num':4},'O':{'Num':2}},'Density':1.38,},
26'Iron':{'Elements':{'Fe':{'Num':4}},'Density':7.87,},
27'Zirconium':{'Elements':{'Zr':{'Num':2}},'Density':6.51,},
28'Carbon':{'Elements':{'C':{'Num':1}},'Density':2.27,},
29'Titanium':{'Elements':{'Ti':{'Num':1}},'Density':4.51,},
30'Chromium':{'Elements':{'Cr':{'Num':1}},'Density':7.19,},
31'Nickel':{'Elements':{'Ni':{'Num':4}},'Density':8.90,},
32'Copper':{'Elements':{'Cu':{'Num':4}},'Density':8.96,},
33'Hydroxyapatite':{'Elements':{'Ca':{'Num':5},'P':{'Num':3},'O':{'Num':13},'H':{'Num':1}},'Density':3.986,},
34'Cr2O3':{'Elements':{'Cr':{'Num':2},'O':{'Num':3}},'Density':5.206,},
35'ZrO2':{'Elements':{'Zr':{'Num':1},'O':{'Num':3}},'Density':6.134,},
36'Y(0.16)Zr(0.84)O2':{'Elements':{'Y':{'Num':0.16},'Zr':{'Num':0.84},'O':{'Num':2}},'Density':6.01,},
37}
38# they should not be duplicated in the UserSubstances.py file:
39try:
40    import UserSubstances as userFile
41    Substances.update(userFile.Substances)
42except:
43    pass
Note: See TracBrowser for help on using the repository browser.