You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: MDhelp/docs/commontreeitems.md
+43-1Lines changed: 43 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -129,7 +129,49 @@ Select the tab for the parameter type(s) you wish to constrain then create new p
129
129
***Add constraint** - If selected, a dialog box will appear with a list of the available parameters. Select one and press OK; a second dialog box will appear with only those parameters that can be used in a constraint with the first one. Choose those and press OK. Cancel in either dialog will cancel the operation. The equivalenced parameters will show as an equation of the form \(M1*P1+M2*P2+…=C\); the multipliers M1, M2, … and C can be changed via the 'Edit' button. The equation is shown in the window tagged by 'CONSTR' to mark it as a constraint equation assignment.
130
130
***Add New Var** - This behaves very much like the "Add constraint" menu command except that it defines a new parameter rather than define a value for the expression. That new var parameter can optionally have a named assigned. The expression is displayed with the keyword 'New Var' to mark its type. Note that a 'Refine?' box is included for this type of constraint.
131
131
***Make atoms equivalent** - This provides a shortcut for establishing constraints when two share a single site. Coordinates and Uiso values are constrained to be the same and site fractions are constrained to add to 1.
132
-
***Show New Var modes** – When New Var constraints are present, this opens a window that shows the effect of the constraints to be seen. This is of particular value when representational analysis generated normal modes have been read from a CIF created with ISODISTORT. From the created window, the New Var parameters can be changed and the changes that the constraints make to the linked dependent parameters are shown. When this command is used from a Phase "Draw Atoms" tab rather than here, the structure plot is updated. The changes made here are temporary, unless the Save button is used to close the window.
132
+
***Make atoms equivalent** - This provides a shortcut for establishing constraints
133
+
***Export constraints** - This writes the current constraints (Histogram,
134
+
Phase and HAP) to a text file that can be used with the **Import constraints**
135
+
command (see below) to copy the constraints to another GSAS-II project.
136
+
The file extension for this is usually `.constr`.
137
+
***Import constraints** - This reads a text file and adds the constraints into the
138
+
current GSAS-II project. The type of contraint (Histogram vs. Phase vs. HAP) is
139
+
determined from the variable name.
140
+
This can be used to copy constraints from one file to another or may be used
141
+
to generate a large number of constraints rather than using the GUI. It may be
142
+
useful to generate and export a small number of constraints as a template
143
+
and then use a text editor or script to generate what is needed.
144
+
145
+
The format for the file consists of a tag ("Equation", "Hold", "Equivalence"
146
+
or "NewVar") followed by a "&" spacer and then
147
+
the constraint.
148
+
The file extension for this is usually `.constr`.
149
+
Examples are below:
150
+
```
151
+
# Constraints from 4constr.gpx on 2026-08-11T20:50
* **Show New Var modes** – When New Var constraints are present, this opens a window that shows the effect of the constraints to be seen. This is of particular value when representational analysis generated normal modes have been read from a CIF created with ISODISTORT. From the created window, the New Var parameters can be changed and the changes that the constraints make to the linked dependent parameters are shown. When this command is used from a Phase "Draw Atoms" tab rather than here, the structure plot is updated. The changes made here are temporary, unless the Save button is used to close the window.
133
175
134
176
In addition to menu commands, this window also offer the following actions by pressing buttons:
0 commit comments