Changeset 5067 for trunk/GSASIIobj.py


Ignore:
Timestamp:
Nov 5, 2021 10:11:25 PM (4 years ago)
Author:
toby
Message:

ISODISTORT mode/displacement fixes; allow indexing of all Phases where there are no used histograms (needs to make IndexAllIds? conditional elsewhere?)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/GSASIIobj.py ΒΆ

    r5062 r5067  
    11721172
    11731173Displacive modes are a bit complex in that they relate to delta displacements, relative to an offset value for each coordinate,
    1174 and because the modes are normalized, while GSAS-II also uses displacements, but these are added to the coordinates after
    1175 each refinement cycle and the delta values are set to zero. ISODISTORT uses fixed offsets (subtracted from the actual position
    1176 to obtain the delta values) that are taken from ``_iso_coordinate_formula`` and these are placed in
    1177 ``.Phase['ISODISTORT']['ParentStructure]`` (keyed by atom label). The normalization factors (which the delta values are divided by)
    1178 are taken from ``_iso_displacivemodenorm_value`` and are placed in ``.Phase['ISODISTORT']['NormList']`` in the same order as as
    1179 ``...['IsoModeList']`` and ``...['G2ModeList']``.
     1174and because the modes are normalized. While GSAS-II also uses displacements,  these are added to the coordinates after
     1175each refinement cycle and then the delta values are set to zero.
     1176ISODISTORT uses fixed offsets (subtracted from the actual position
     1177to obtain the delta values) that are taken from the parent structure coordinate and the initial offset value
     1178(in ``_iso_deltacoordinate_value``) and these are placed in
     1179``.Phase['ISODISTORT']['G2coordOffset']`` in the same order as ``.Phase['ISODISTORT']['G2ModeList']`` and
     1180``.Phase['ISODISTORT']['IsoVarList']``.
     1181
     1182The normalization factors (which the delta values are divided by)
     1183are taken from ``_iso_displacivemodenorm_value`` and are placed in ``.Phase['ISODISTORT']['NormList']`` in the same
     1184order as as ``...['IsoModeList']`` and ``...['G2ModeList']``.
    11801185
    11811186The CIF contains a sparse matrix, from the ``loop_`` containing ``_iso_displacivemodematrix_value`` which provides the equations
    11821187for determining the mode values from the coordinates, that matrix is placed in ``.Phase['ISODISTORT']['Mode2VarMatrix']``.
    11831188The matrix is inverted to produce ``.Phase['ISODISTORT']['Var2ModeMatrix']``, which determines how to compute the
    1184 mode values from the delta coordinate values. These values are used for the in :func:`GSASIIconstrGUI.ShowIsoDistortCalc` 
     1189mode values from the delta coordinate values. These values are used for the in :func:`GSASIIconstrGUI.ShowIsoDistortCalc`,
    11851190which shows coordinate and mode values, the latter with s.u. values.
    1186 
    11871191
    11881192------------------------------
Note: See TracChangeset for help on using the changeset viewer.