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 | parameters (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 | <H4>Atom Constraints</H4> |
---|
48 | The atom constraints editing pane appears below. Note that constraints can |
---|
49 | be listed sorted by constraint number, phase number, lowest atom number or |
---|
50 | variable by clicking on the buttons at the top of the pane. |
---|
51 | <P> |
---|
52 | To delete one or more constraints, click on the appropriate checkbuttons in the <B>Delete</B> column and the press the Delete button, below. |
---|
53 | </DL></DL> |
---|
54 | <img SRC="mc.gif" align=TEXTTOP> |
---|
55 | <DL><DL> |
---|
56 | |
---|
57 | Due to the way GSAS implements these constraints, a parameter can be included |
---|
58 | in only one constraint. Should one or more parameters be constrained twice, |
---|
59 | an error message is shown as shown below. |
---|
60 | Note that the constraint number is displayed as red, for constraints that |
---|
61 | have conflicts in the constraints editing pane (see above.) |
---|
62 | </DL></DL> |
---|
63 | <img SRC="mcerr.gif" align=TEXTTOP> |
---|
64 | <DL><DL> |
---|
65 | <P> |
---|
66 | <img SRC="mcedit.gif" align=LEFT> |
---|
67 | <img SRC="mcvar.gif" align=RIGHT> |
---|
68 | When the edit button for a constraint is pressed, the constraint is |
---|
69 | opened for editing. Controls are available to select the phase, variable, |
---|
70 | multiplier and atom(s). Note that for atom selection, use of the control key |
---|
71 | and the left mouse button allow individual atoms to be selected or deselected. |
---|
72 | Shift and the left mouse button allow ranges of atoms to be selected and the |
---|
73 | right mouse button selects all atoms |
---|
74 | <A href="expgui.html#mouseactions">(see Mouse Actions)</A>. |
---|
75 | <P> |
---|
76 | Note that it is inappropriate |
---|
77 | to constrain different types of parameters together, for example X and Uiso. |
---|
78 | The left-most variable button is the "master" which |
---|
79 | determines what variable are allowed in the |
---|
80 | other variable buttons. |
---|
81 | <P> |
---|
82 | When the "New Constraint" button is pressed, a blank constraint editing |
---|
83 | window is opened. Note that any variable to the right may then be selected, |
---|
84 | including two special codes, Uxx and XYZU. XYZU creates four constraints, |
---|
85 | requiring the shifts on x, y, z and Uiso to be the same for all the selected |
---|
86 | atoms. Uxx does the same for the six anisotropic displacement parameters. |
---|
87 | These special codes are valuable for atoms that share a site. |
---|
88 | <P> |
---|
89 | Note that only 100 parameters may be included in a constraint, |
---|
90 | with one exception. When shifts for Uiso for all atoms in a phase |
---|
91 | are constrained, this counts as a single parameter. If more than 100 |
---|
92 | parameters are entered for a constraint, an error message is shown. |
---|
93 | Up to 2000 atomic constraints may be entered. |
---|
94 | EXPGUI does not warn if you exceed this limit. |
---|
95 | </DL></DL> |
---|
96 | |
---|
97 | <hr> |
---|
98 | <A Href="expgui.html">EXPGUI top</A> |
---|
99 | |
---|
100 | <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>) |
---|
101 | <br> |
---|
102 | $Revision: 223 $ $Date: 2009-12-04 23:02:27 +0000 (Fri, 04 Dec 2009) $ |
---|
103 | </body> |
---|
104 | </html> |
---|