1 | <html> |
---|
2 | <head> |
---|
3 | <META NAME="Author" CONTENT="Brian H. Toby"> |
---|
4 | <title>EXPGUI</title> |
---|
5 | </head> |
---|
6 | <BODY BGCOLOR="#FFFFFF"> |
---|
7 | |
---|
8 | <A HREF=http://www.ncnr.nist.gov> |
---|
9 | <IMG SRC="http://www.ncnr.nist.gov/images/ncnrtrans.gif" |
---|
10 | alt="Link to NIST Center for Neutron Research home page" |
---|
11 | ALIGN=RIGHT></A> |
---|
12 | <A HREF=http://www.nist.gov> |
---|
13 | <IMG SRC="http://www.ncnr.nist.gov/images/webidblue_2lineright.gif" |
---|
14 | alt="Link to National Institute of Standards & Technology home page" |
---|
15 | ALIGN=LEFT></A> |
---|
16 | <CENTER> |
---|
17 | <A Href="http://www.ncnr.nist.gov/programs/crystallography/software/tclpkgs.html"> |
---|
18 | <IMG SRC="tcltklogo100.gif" |
---|
19 | alt="Link to Tcl/Tk information"> |
---|
20 | </CENTER></A> |
---|
21 | <hr> |
---|
22 | |
---|
23 | <center><h1> |
---|
24 | EXPGUI |
---|
25 | </h1></center> |
---|
26 | <A Href="expgui.html">EXPGUI top</A> |
---|
27 | <h3>A.6 Constraints pane</h3> |
---|
28 | <DL><DL> |
---|
29 | GSAS offers two types of restraints that can be included in a model. |
---|
30 | So called "soft constraints" or "restraints" penalize the fit if |
---|
31 | aspects of a model (for example, bond lengths) differ from selected values. |
---|
32 | So called "hard constraints" reduce the actual number of |
---|
33 | parameters in a model, |
---|
34 | by grouping parameters so that a single shift (possibly scaled) is |
---|
35 | applied to each parameter in the group. |
---|
36 | The constraints pane is used to set these "hard constraints." |
---|
37 | At this time the only constraints that can be set in EXPGUI are on atomic |
---|
38 | and profile profile (others can be set in EXPEDT). |
---|
39 | <P> |
---|
40 | Note that these constraints are only applied to shifts, but not to the |
---|
41 | actual values. This means that, for example, |
---|
42 | if two atoms |
---|
43 | are constrained so that the shift on their occupancy is the same, but |
---|
44 | the initial occupancies differ, the in occupancy difference will not change |
---|
45 | as the values refine. |
---|
46 | <P> |
---|
47 | Due to the way GSAS implements constraints, a parameter can be included |
---|
48 | in only one constraint. Should one or more parameters be constrained twice, |
---|
49 | the refinement results are unpredictable. |
---|
50 | |
---|
51 | </DL></DL> |
---|
52 | <H4>Atom Constraints</H4> |
---|
53 | <DL><DL> |
---|
54 | The atom constraints editing pane appears below. Note that constraints can |
---|
55 | be listed sorted by constraint number, phase number, lowest atom number or |
---|
56 | variable by clicking on the buttons at the top of the pane. |
---|
57 | <P> |
---|
58 | To delete one or more constraints, click on the appropriate checkbuttons in the <B>Delete</B> column and the press the Delete button, below. |
---|
59 | </DL></DL> |
---|
60 | <img SRC="mc.gif" align=TEXTTOP> |
---|
61 | <DL><DL> |
---|
62 | |
---|
63 | Should parameters be included in more than one constraint, |
---|
64 | an error message is displayed, as shown below. |
---|
65 | Note that the constraint number is displayed as red on the main |
---|
66 | atomic constraints window (see above), if the |
---|
67 | constraint contains a parameter referenced elsewhere. |
---|
68 | |
---|
69 | </DL></DL> |
---|
70 | <img SRC="mcerr.gif" align=TEXTTOP> |
---|
71 | <DL><DL> |
---|
72 | <P> |
---|
73 | <img SRC="mcedit.gif" align=LEFT> |
---|
74 | <img SRC="mcvar.gif" align=RIGHT> |
---|
75 | When the edit button for a constraint is pressed, the constraint is |
---|
76 | opened for editing. Controls are available to select the phase, variable, |
---|
77 | multiplier and atom(s). Note that for atom selection, use of the control key |
---|
78 | and the left mouse button allow individual atoms to be selected or deselected. |
---|
79 | Shift and the left mouse button allow ranges of atoms to be selected and the |
---|
80 | right mouse button selects all atoms |
---|
81 | <A href="expgui.html#mouseactions">(see Mouse Actions)</A>. |
---|
82 | <P> |
---|
83 | Note that it is inappropriate |
---|
84 | to constrain different types of parameters together, for example X and Uiso. |
---|
85 | The left-most variable button is the "master" which |
---|
86 | determines what variable are allowed in the |
---|
87 | other variable buttons. |
---|
88 | <P> |
---|
89 | When the "New Constraint" button is pressed, a blank constraint editing |
---|
90 | window is opened. Note that any variable to the right may then be selected, |
---|
91 | including two special codes, Uxx and XYZU. XYZU creates four constraints, |
---|
92 | requiring the shifts on x, y, z and Uiso to be the same for all the selected |
---|
93 | atoms. Uxx does the same for the six anisotropic displacement parameters. |
---|
94 | These special codes are valuable for atoms that share a site. |
---|
95 | <P> |
---|
96 | Note that only 100 parameters may be included in a constraint, |
---|
97 | with one exception. When shifts for Uiso for all atoms in a phase |
---|
98 | are constrained, this counts as a single parameter. If more than 100 |
---|
99 | parameters are entered for a constraint, an error message is shown. |
---|
100 | Up to 2000 atomic constraints may be entered. |
---|
101 | EXPGUI does not warn if you exceed this limit. |
---|
102 | </DL></DL> |
---|
103 | |
---|
104 | <H4>Profile Constraints</H4> |
---|
105 | <DL><DL> |
---|
106 | The profile constraints editing pane appears below. Profile constraints |
---|
107 | are used to relate the shifts applied to profile terms for different |
---|
108 | phase/histogram combinations. Profile terms are identified by number, |
---|
109 | so while EXPEDT allows one to constrain the first profile term for |
---|
110 | a TOF histogram to a the first term in a CW histogram, EXPGUI attempts to |
---|
111 | make this impossible. |
---|
112 | <P> |
---|
113 | To delete one or more constraints, click on the appropriate checkbuttons |
---|
114 | in the <B>Delete</B> column and the press the Delete button, below. |
---|
115 | </DL></DL> |
---|
116 | <img SRC="pc.gif" align=TEXTTOP> |
---|
117 | <DL><DL> |
---|
118 | |
---|
119 | <img SRC="pcerr.gif" align=LEFT> |
---|
120 | Should parameters be included in more than one constraint, |
---|
121 | an error message is displayed, as shown below. |
---|
122 | Note that the constraint number is displayed as red on the main |
---|
123 | profile constraints window (see above), if the |
---|
124 | constraint contains a parameter referenced elsewhere. |
---|
125 | |
---|
126 | <BR CLEAR=LEFT> |
---|
127 | <P> |
---|
128 | When the edit button for a constraint is pressed, the constraint is |
---|
129 | opened for editing, as shown below. |
---|
130 | Listboxes contain the available phases and histograms. |
---|
131 | Only the histograms of the same data type (TOF, CW or ED) are included, |
---|
132 | but no check is made to ensure that the |
---|
133 | selected phase/histogram combinations |
---|
134 | all have the same profile type. |
---|
135 | Note that for phase and histogram selection, use of the control key |
---|
136 | and the left mouse button allow individual items to be selected or deselected. |
---|
137 | Shift and the left mouse button allow ranges of items to be selected and the |
---|
138 | right mouse button selects all phases or histograms. |
---|
139 | <A href="expgui.html#mouseactions">(see Mouse Actions)</A>. |
---|
140 | <P> |
---|
141 | <img SRC="pcedit.gif" align=TEXTTOP> |
---|
142 | <P> |
---|
143 | </DL></DL> |
---|
144 | <img SRC="pcnew1.gif" align=LEFT> |
---|
145 | When the "New Constraint" button is pressed, a window is opened to select |
---|
146 | the histogram and profile function type to be constrained. Note that |
---|
147 | only for profile function #4, where the number of terms depends on the |
---|
148 | phase symmetry, does it matter what phase you select. The available profile |
---|
149 | terms are displayed on the bottom of the window and more than |
---|
150 | one can be selected. |
---|
151 | <BR CLEAR=LEFT> |
---|
152 | <P> |
---|
153 | <DL><DL> |
---|
154 | <img SRC="pcnew2.gif" align=LEFT> |
---|
155 | |
---|
156 | After the "Continue" button is pressed, a constraint |
---|
157 | edit window is opened, as shown to the left. |
---|
158 | Listboxes contain the available phases and histograms and |
---|
159 | only the histograms of the selected data type are included, as before. |
---|
160 | Also, for phase and histogram selection, use of the control or shift key |
---|
161 | and the left mouse button allow individual items to be selected or deselected |
---|
162 | and the right mouse button selects all phases or histograms. |
---|
163 | Note that if more than one profile term was selected on the previous window, |
---|
164 | the same set of constraints are for each term. |
---|
165 | |
---|
166 | <BR CLEAR=LEFT> |
---|
167 | </DL></DL> |
---|
168 | <hr> |
---|
169 | <A Href="expgui.html">EXPGUI top</A> |
---|
170 | |
---|
171 | <p><a href="http://www.ncnr.nist.gov/staff/toby/">Brian Toby</a> (<a href="mailto:brian.toby@nist.gov">Brian.Toby@NIST.GOV</a>) |
---|
172 | <br> |
---|
173 | $Revision: 247 $ $Date: 2009-12-04 23:02:51 +0000 (Fri, 04 Dec 2009) $ |
---|
174 | </body> |
---|
175 | </html> |
---|