Skip to content

Commit 9224dc8

Browse files
committed
phase tabs separated and revised; comments in README
1 parent ae5379b commit 9224dc8

17 files changed

+378
-318
lines changed

MDhelp/README.md

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,25 @@ additional links that need to be added:
1515
95 docs/others.md
1616
10 docs/datatree.md
1717
207 docs/commontreeitems.md
18-
19-
In progress (being broken up into sections by tab):
20-
21-
629 docs/phase.md
22-
23-
24-
These files have had only minor editing. A few need to be broken up:
18+
32 docs/phaseRB.md
19+
51 docs/phaseRMC.md
20+
81 docs/phaseatoms.md
21+
70 docs/phasedata.md
22+
64 docs/phasedrawatoms.md
23+
14 docs/phasedrawopts.md
24+
11 docs/phasedysnomia.md
25+
96 docs/phasegeneral.md
26+
27 docs/phaseisodistort.md
27+
25 docs/phaselayers.md
28+
25 docs/phasemappeaks.md
29+
13 docs/phasemcsa.md
30+
25 docs/phaseoverview.md
31+
20 docs/phasepawley.md
32+
128 docs/phasetexture.md
33+
12 docs/phasewave.md
34+
35+
These files have had only minor editing. histgramtree.md should
36+
probably be broken up:
2537

2638
170 docs/cluster.md
2739
445 docs/histgramtree.md
@@ -39,3 +51,6 @@ Needs more work: menu commands not described or well described in
3951
atoms, draw atoms & draw options. Should also describe the settings on
4052
draw options. Also, how does one expand a drawing to multiple cells? I
4153
always forget that trick!
54+
55+
Texture: are there places where capital greek letters should be used
56+
to differentiate symbols (\Phi vs \phi) orientation angles?

MDhelp/docs/index.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,20 @@ An index on the topics covered in these help pages is given below.
1515
<a name="Index"></a>
1616

1717
1. [Tutorials](./preface.md)
18+
1819
2. [GSAS-II GUI Organization](./applicationwindow.md)
1920
1. [Data Tree](./applicationwindow.md#Data_tree)
2021
1. [Data Window](./applicationwindow.md#Data_frame)
2122
1. [Graphics Window](./applicationwindow.md#Plots)
2223
1. [Console Window](./applicationwindow.md#Console)
24+
2325
3. [Main menu contents](./mainmenu.md)
26+
2427
4. Data tree entries and their use ([overview](./datatree.md))
2528
1. [Universal data tree](./commontreeitems.md) items
29+
2630
2. [Phase Data Tree items (overview)](./phaseoverview.md)
31+
2732
* [General Phase tab](./phasegeneral.md)
2833
* [Data Phase tab](./phasedata.md)
2934
* [Atoms Phase tab](./phaseatoms.md)
@@ -32,7 +37,8 @@ An index on the topics covered in these help pages is given below.
3237
* [RB Models tab](./phaseRB.md)
3338
* [Texture tab](./phasetexture.md)
3439
* [Map Peaks tab](./phasemappeaks.md)
35-
* [Pawley tab](./phasepawley.md)
40+
* [Pawley tab](./phasepawley.md)
41+
* [Layers tab](./phaselayers.md)
3642
* [Wave Data tab](./phasewave.md)
3743
* [MC/SA tab](./phasemcsa.md)
3844
* [RMC tab](./phaseRMC.md)

MDhelp/docs/phase.md

Lines changed: 0 additions & 305 deletions
This file was deleted.

MDhelp/docs/phaseRB.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<a name="Phase-RB_Models"></a>
2+
# **RB Models** phase tab
3+
4+
A rigid body is a collection of atoms that is treated as a group in GSAS-II. The position and orientation of the group can be refined and some other simplified parameters can also be varied, such as dihedral angles. Use of a rigid body requires two actions. First the rigid body must be defined for the project, see the [Rigid bodies tree item](./commontreeitems.md#Rigidbodies) for details on that. Then the rigid body must be inserted into a phase, which is done here, from the phases's RB Models tab. In this process, a number of parameters are defined for each body that determine how the rigid body is placed in the cell: the location in the cell for the rigid body origin, a rotation angle and orientation vector. These can be modified while being visualized, using the mouse by holding down the Alt key.
5+
6+
<H3 style="color:blue;font-size:1.1em">What can I do here?</H3>
7+
8+
A rigid body can be inserted into a phase using the "Locate & Insert Rigid Body" command in the "Edit Body" menu.
9+
10+
Once a body has been inserted into a structure, this tab provides access to the rigid body placement parameters, as well controls that determine how the rigid body is refined. Note that the selected rigid body can be positioned and oriented in the unit cell by holding down the Alt key (option on Mac) while "dragging" the mouse (moving the mouse while holding a mouse button down.) Dragging the mouse without the Alt key repositions the view of the cell.
11+
12+
<H3 style="color:blue;font-size:1.1em">What can I do with the plot?</H3>
13+
14+
Use of the mouse buttons when viewing a crystal structure changes the view of the structure. On a Mac with a one-button mouse, [some alternate actions must be used](./others.md#MacOS).
15+
16+
* **Left drag**: Holding down left button rotates axes around screen x & y
17+
* **Right drag**: Holding down right button translates the fractional coordinates assigned to the viewpoint (which is kept at the center of the plot). The structure will appear to translate. The viewpoint can also be entered directly in the Draw Options.
18+
* **Middle drag**: Holding down center button rotates axes around screen z (direction perpendicular to screen).
19+
* **Mouse Wheel**: Rotating the scroll wheel changes "camera distance" (zoom in/out).
20+
21+
Use of the Alt key causes the above mouse movements to reposition the rigid body rather than change the view of the crystal structure. This can be done when the rigid body is being added to a model or later by selecting the body.
22+
23+
When the rigid body is being initially inserted into a structure, both the rigid body and the crystal structure are displayed. The rigid body will be displayed with a "Balls-and-Sticks" model but bonds will be drawn in green. It is useful to plan for this by preselecting the atoms in the Draw Atoms list and to have atoms displayed as "Sticks" or "Balls-and-Sticks" etc. so that it is easy to differentiate positions of atoms already in the model from the new rigid body location.
24+
25+
When the rigid body has already been placed in the model, the rendering of the structure works a bit differently. As the rigid body is repositioned via Alt+mouse drag, all atoms in the Draw Atoms array are deleted and only the atoms in the asymmetric unit are displayed. The mode used to draw them will depend on the selection made on this window; (the default selection is "Balls-and-Sticks".) When the mouse button is released, if the "Fill cell" option is selected, the symmetry replicants of the atoms in the asymmetric falling inside the unit cell are placed into the Draw Atoms array.
26+
27+
Actions to reposition the rigid body in either mode are:
28+
29+
* **Alt+Left drag**: Holding Alt (Opt on Mac) while dragging the mouse with the left button down rotates the rigid body around screen x & y axes
30+
* **Alt+Middle drag**: Holding Alt while dragging the mouse with the middle button down rotates the rigid body around screen z (out of screen) axis. On the Mac hold down the Alt and Command buttons together.
31+
* **Alt+Right drag**: Holding Alt while dragging the mouse with the right button down (use Control+Opt on Mac with a single-button mouse) translates the rigid body in the screen x & y directions (rotate the plot to see and move in the rigid body in the third direction.) Selecting the "Lock" checkbox next to the origin location, or unselecting the "Refine?" button locks the origin from being changed via mouse dragging when the location should be fixed by symmetry.
32+

MDhelp/docs/phaseRMC.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<a name="Phase-RMC"></a>
2+
# **RMC** phase tab
3+
4+
This tab is used for access to three different programs, [RMCProfile](#rmcprofile), [fullrmc](#fullrmc) and [PDFfit](#pdffit),
5+
that are used for fitting structural models to pair distribution functions (PDF).
6+
RMCProfile and fullrmc are "big box" modelling routines and PDFfit is a "small box" modelling routine.
7+
Select the program you wish to use from radio button at the top of the window. Three
8+
different windows are displayed depending on that selection.
9+
10+
[Tutorials](https://advancedphotonsource.github.io/GSAS-II-tutorials/tutorials.html) for using RMCProfile and PDFfit can be accessed from the Tutorials menu item in the GSAS-II Help menu. These routines all run as stand-alone applications which are initiated by GSAS-II. When finished, GSAS-II processes their output files to update parameters that are within the GSAS-II project. The two big box routines can have very long running times; they run as separate console programs. GSAS-II is active while they are running and can "interrogate" them for intermediate results. PDFfit has a short running time and GSAS-II is "locked out" until it finishes; its result can be examined after.
11+
12+
<H3 style="color:blue;font-size:1.1em">What can I do here?</H3>
13+
14+
**Operations** Menu –
15+
16+
* **Setup RMC** – this builds the input files and python script (if needed) for running the selected PDF modeling program.
17+
* **Execute** – this executes the chosen program in a new console which will vanish when finishes (after a "press any key" command). When finished, GSAS-II will extract results and place them in appropriate places in the project.
18+
* **Stop run** – only valid for fullrmc; stops the RMC run & saves progress so it can be continued later.
19+
* **Plot** – this displays the resulting graphical output from the PDF modeling run. For RMCProfile and fullrmc this can be 5 or more plots, for PDFfit it is only the observed and calculated G(r) plot with a difference curve.
20+
21+
For each program, the setup page is similar. There is a block for "metadata" items for your convenience; they have no impact on the calculations. Next is timing controls for the big box programs (PDFfit has none). Then is structural information and finally the data section for the patterns to be fitted. The big box programs are for only single runs while PDFfit can be used to process a sequence of G(r) data collected as a function of, e.g., temperature (giving Sequential PDFfit2 results).
22+
23+
<a name="fullrmc"></a>
24+
### fullrmc
25+
26+
The fullrmc program is a large-box pair distribution function modeling library developed by Bachir Aoun [Fullrmc, a Rigid Body Reverse Monte Carlo Modeling Package Enabled with Machine Learning and Artificial Intelligence", B. Aoun, Jour. Comp. Chem. (2016), 37, 1102-1111. [DOI: 10.1002/jcc.24304](https://doi.org/10.1002/jcc.24304)]. Extensive information about fullrmc is found, including a number of explanatory videos, along with older source code on GitHub: [https://bachiraoun.github.io/fullrmc/](https://bachiraoun.github.io/fullrmc/). Note that the GSAS-II implementation is not compatible with the open-source version of fullrmc, but rather the new version 5.0 must be used, which is distributed as a compiled versions for 64-bit Intel-compatible processors running Windows, Linux and MacOS from website [https://github.com/bachiraoun/fullrmc/tree/master/standalones](https://github.com/bachiraoun/fullrmc/tree/master/standalones). Note that an even newer and more powerful version of fullrmc is available for cloud computing by subscription at [https://fullrmc.com](https://fullrmc.com).
27+
28+
When fullrmc is selected in this tab, GSAS-II will locate an executable for fullrmc using the [GSAS-II configuration variable](./others.md#config) `fullrmc_exec`, which if defined points to a Python image with fullrmc. Otherwise GSAS-II will look in the following places, in the order specified, for a Python image for a file named `fullrmc5*64bit` (MacOS or Linux) or `fullrmc5*.exe` (Windows):
29+
30+
1. The location where GSAS-II is installed,
31+
2. The location where Python is installed,
32+
3. The location where the GSAS-II binaries are found,
33+
4. the current default location
34+
5. and all directories in the system path.
35+
36+
<a name="rmcprofile"></a>
37+
### RMCProfile
38+
The [RMCProfile program](http://rmcprofile.org/) fits large-box atomic models to x-ray & neutron PDF and S(Q) "data" as well as other types of observations.
39+
When RMCProfile is selected in this tab, GSAS-II will see if an RMCProfile
40+
executable can located using the [GSAS-II configuration variable](./others.md#config) `rmcprofile_exec`, which if defined should have the name of the RMCProfile program. If that is not defined, the following locations are searched:
41+
42+
1. The location where GSAS-II is installed,
43+
2. The location where Python is installed,
44+
3. The location where the GSAS-II binaries are found,
45+
4. the current default location
46+
5. and all directories in the system path.
47+
48+
<a name="pdffit"></a>
49+
### PDFfit2
50+
The [PDFfit2](https://www.diffpy.org/diffpy.pdffit2/) program fits small-box atomic models to x-ray & neutron PDFs.
51+
When PDFfitis selected in this tab, GSAS-II will see if PDFfit2 can be loaded as a package in the current Python installation (use of PDFfit2 in this manner is not recommended as this invites conflicts in the packages used by GSAS-II and PDFfit2) if that fails, GSAS-II will attempt to use a Python executable for PDFfit2 using the [GSAS-II configuration variable](./others.md#config) `pdffit_exec`, which if defined points to a Python image with PDFfit2fullrmc. Optionally, if the Python installation used with GSAS-II uses conda (which is the case for the [gsas2main installer](https://advancedphotonsource.github.io/GSAS-II-tutorials/install.html#gsas2main-installer)), GSAS-II can download and install a separate conda environment with PDFfit2 installed.

MDhelp/docs/phaseatoms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ graphics window's structure drawing that is marked by crossing , red, green and
6363
<a name="Phase-mouse-plotopts"></a>
6464
<H3 style="color:blue;font-size:1.1em">What can I do with the plot?</H3>
6565

66-
A drawing of the crystal structure will be displayed in the [Graphics Window](./applicationwindow.md#Plots) only if the [Draw Options](./phasedrawopts.md) or [Draw Atoms](./phasedrawatoms.md) tab has been visited first prior to selecting the Atoms tab. When back at the Atoms tab, the following actions and keypress commands are available, when use of the mouse buttons changes the view of the structure and can be used to select atoms. On MacOS and a one-button mouse, [some alternate actions must be used](./others.md#MacOS)
66+
A drawing of the crystal structure will be displayed in the [Graphics Window](./applicationwindow.md#Plots) only if the [Draw Options](./phasedrawopts.md) or [Draw Atoms](./phasedrawatoms.md) tab has been visited first prior to selecting the Atoms tab. When back at the Atoms tab, the following actions and keypress commands are available, when use of the mouse buttons changes the view of the structure and can be used to select atoms. On a Mac with a one-button mouse, [some alternate actions must be used](./others.md#MacOS)
6767

6868
* **Left drag**: Holding down left button rotates axes around screen x & y
6969
* **Right drag**: Holding down right button translates the fractional coordinates assigned to the viewpoint (which is kept at the center of the drawing). The structure will appear to translate. The viewpoint can also be entered directly in the [Draw Options](./phasedrawopts.md)..

MDhelp/docs/phasedata.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ For single crystal data, the only parameters are scale, extinction and disordere
4141
* **Hydrostatic/elastic strain** – This shifts the lattice constants for the contribution of a phase into a histogram. The values are added to the [reciprocal lattice parameter tensor terms](http://gsas-ii.readthedocs.io/en/latest/GSASIIutil.html#gsasiilattice-unit-cell-computations). They must be refined in sequential refinements or where the lattice constants are slightly different in different histograms (as an example see the [Combined X-ray/CW-neutron refinement of \(\rm PbSO_4\) tutorial](https://advancedphotonsource.github.io/GSAS-II-tutorials/CWCombined/Combined%20refinement.htm). But these values and the phase's lattice parameters (on the General tab) should not be refined at the same time. When the values are non-zero, the lattice constants after application of these strain tensor terms is shown.
4242

4343
<a name="Phase-Preferred_orientation"></a>
44-
* <a id="preferred_orientation"></a>**Preferred Orientation** – Preferred orientation (texture) can be treated in one of two different sections of GSAS-II, either the Preferred Orientation correction here in the Data tab, or the "[Texture](#TBD)" tab, depending on what is desired.
44+
<a name="preferred_orientation"></a>
45+
* **Preferred Orientation** – Preferred orientation (texture) can be treated in one of two different sections of GSAS-II, either the Preferred Orientation correction here in the Data tab, or the "[Texture](#TBD)" tab, depending on what is desired.
4546
The Preferred Orientation correction here is typically used for crystallographic studies, where intensity corrections are desired to repair for undesired texture in the sample, while the Texture tab is used for studies where the goal is to characterize preferred orientation in a sample.
4647

4748
The preferred orientation correction, here in the Phase/Data tab, can apply one of two different types of intensity corrections. One is to apply a cylindrical (wire symmetry) spherical harmonics orientational distribution function and the other is a simpler, single-parameter model, known as **March-Dollase**. Note either of these is applied to only a single histogram.

MDhelp/docs/phasedysnomia.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<a name="Phase-Dysnomia"></a>
2+
# **Dysnomia** phase tab
3+
4+
This is displayed if the **Use Dysnomia** box in the General tab is checked. [Dysnomia](https://doi.org/10.1017/S088571561300002X) is a maximum entropy method for improving Fourier density maps. The Dysnomia tab provides access to controls used in its operation.
5+
6+
<H3 style="color:blue;font-size:1.1em">What can I do here?</H3>
7+
8+
* **Operations** menu –
9+
* **Load from Dysnomia file** – as previously saved set of controls.
10+
* **Save Dysnomia file** – saves data needed to run Dysnomia
11+
* **Run Dysnomia** – execute the routine from GSAS-II (not a separate console). Replaces existing map with one improved by maximum entropy.

MDhelp/docs/phaseisodistort.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<a name="Phase-ISODISTORT"></a>
2+
# **ISODISTORT** phase tab
3+
4+
This displays the setup for using the web-based application, [ISODISTORT](https://iso.byu.edu/iso/isodistort.php), to identify the possible mode distortions of a parent structure. To use it you must be connected to the internet. Two ISODISTORT Methods are supported in GSAS-II:
5+
6+
* Method 1: identifies all possible subgroups that result from simple mode distortions that are associated with a single irreducible representation.
7+
* Method 4: is more useful in that it finds the mode decomposition of a parent structure to give a specified distorted structure and is set up to find only atom displacement modes.
8+
9+
See help pages for [ISODISTORT](https://iso.byu.edu/iso/isodistort.php) for more information. The ultimate product of using ISODISTORT is a special CIF file with constraints describing the mode distortions; this is imported into GSAS-II to form a new phase with these constraints.
10+
11+
<H3 style="color:blue;font-size:1.1em">What can I do here?</H3>
12+
13+
If this is a freshly created phase (not an imported ISODISTORT CIF) then you can choose the Method (4 is default) and select parent structure and distorted child structure (for Method 4).
14+
15+
If you chose Method 1 & run ISODISTORT, a table of possible substructures is displayed; a CIF file with mode distortion constraints can be produced from your selection. The table can be filtered by crystal class.
16+
17+
If this is a phase imported from an ISODISTORT CIF file, the mode displacements are shown with sliders to allow visualization of the displacements in a drawing of the crystal structure (prepare this first before trying a slider). A structure refinement using this phase will employ the mode distortions as constraints on the atom coordinates; there should be as many as there are free variable coordinates in the structure. The values (in Å) represent the largest atom shift associated with the mode; shown is a list of atom coordinates affected by each mode.
18+
19+
* **Operations** menu –
20+
21+
* **Run ISODISTORT** – run this from the web site with the controls as shown.
22+
* **Make cif file** – active after table from Method 1 is displayed; generate CIF file by ISODISTORT web site with mode distortion constraints.
23+
* **Make PDFfit phase** – active when mode distortions are shown. Makes new phase specific for fitting PDF data via PDFfit2.
24+
* **Show modes** – active when mode distortions are shown. Displays mode names & values.
25+
* **Show relationships** - active when mode distortions are shown. Displays constraint equations associated with mode distortions.
26+
27+

0 commit comments

Comments
 (0)