Changeset 3451
- Timestamp:
- Jun 25, 2018 4:23:51 PM (5 years ago)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Tutorials/SeqRefine/SequentialTutorial.htm
r3089 r3451 1609 1609 the<b> </b></span><b><span style='font-family:"Calibri",sans-serif;mso-ascii-theme-font: 1610 1610 major-latin;mso-hansi-theme-font:major-latin'>Constraints</span> </b><span 1611 style='mso-bidi-font-weight:bold'>item</span> in the data tree and the <b><span 1612 style='font-family:"Calibri",sans-serif;mso-ascii-theme-font:major-latin; 1613 mso-hansi-theme-font:major-latin'>Select tab/Histogram/Phase</span> </b><span 1611 style='mso-bidi-font-weight:bold'>item</span> in the data tree and 1612 then in the <b>Select tab</b> menu use the <b>Histogram/Phase</b> <span 1614 1613 style='mso-bidi-font-weight:bold'>menu item</span>, and then <span 1615 1614 style='mso-bidi-font-weight:bold'>click on the<b> </b></span><b><span … … 1812 1811 style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]>There 1813 1812 are several additional variables that should now be added. One should always 1814 refine a sample displacement parameter or rarely a zero correction.In this1813 refine a sample displacement parameter (or rarely one refines a zero correction.) In this 1815 1814 case, the best choice is to <span style='mso-bidi-font-weight:bold'>add the<b> </b></span><b><span 1816 1815 style='font-family:"Calibri",sans-serif;mso-ascii-theme-font:major-latin; … … 2042 2041 style='mso-bidi-font-weight:bold'> terms</span> to refine the lattice strain 2043 2042 terms. While here, to simplify convergence for the sequential refinement, where 2044 lattice constants change significantly, < span style='mso-bidi-font-weight:bold'>turn2045 off the refinement of the three size and mustrain terms and the phase fraction</span>.2043 lattice constants change significantly, <B>turn 2044 off</B> the refinement of the <b>three size and mustrain terms and the phase fraction</b>. 2046 2045 The <b style='mso-bidi-font-weight:normal'><span style='font-family:"Calibri",sans-serif; 2047 2046 mso-ascii-theme-font:major-latin;mso-hansi-theme-font:major-latin'>Data</span></b> … … 2734 2733 <p class=MsoListParagraphCxSpFirst style='text-indent:-.25in;mso-list:l1 level1 lfo16'><![if !supportLists]><span 2735 2734 style='mso-fareast-font-family:"Times New Roman"'><span style='mso-list:Ignore'>2.<span 2736 style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]>Likewise, 2735 style='font:7.0pt "Times New Roman"'> 2736 </span></span></span><![endif]>Likewise, in the Sample Parameters tree item 2737 2737 <span style='mso-bidi-font-weight:bold'>include the<b> </b></span><b><span 2738 2738 style='font-family:"Calibri",sans-serif;mso-ascii-theme-font:major-latin; … … 2747 2747 style='mso-fareast-font-family:"Times New Roman"'><span style='mso-list:Ignore'>3.<span 2748 2748 style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]>For 2749 Phase parameters <span style='mso-bidi-font-weight:bold'>add the three 2749 Phase parameters <span style='mso-bidi-font-weight:bold'> in the Data 2750 section, add the three 2750 2751 broadening terms</span> for the CuCr<sub>2</sub>O<sub>4</sub> phase and do <b 2751 2752 style='mso-bidi-font-weight:normal'><span style='font-family:"Calibri",sans-serif; 2752 2753 mso-ascii-theme-font:major-latin;mso-hansi-theme-font:major-latin;mso-bidi-theme-font: 2753 2754 major-latin'>Edit Phase/Copy flags</span></b>. (Important: not Copy!) For the <span 2754 style='mso-bidi-font-weight:bold'>CuO phase, add the single sample broadening2755 style='mso-bidi-font-weight:bold'>CuO phase, add refinement of the single sample broadening 2755 2756 term and the remaining lattice parameter</span> via the <b style='mso-bidi-font-weight: 2756 2757 normal'><span style='font-family:"Calibri",sans-serif;mso-ascii-theme-font: … … 2773 2774 values between 13.8 and 17.</p> 2774 2775 2776 <h1>Step 8: Further sequential refinements. </h1> 2777 2775 2778 <p class=MsoListParagraphCxSpMiddle><o:p> </o:p></p> 2776 2779 … … 2781 2784 style='mso-bidi-font-weight:normal'><span style='font-family:"Calibri",sans-serif; 2782 2785 mso-ascii-theme-font:major-latin;mso-hansi-theme-font:major-latin'>Phase 2783 fraction</span></b> checkbox and do <b style='mso-bidi-font-weight:normal'><span 2784 style='font-family:"Calibri",sans-serif;mso-ascii-theme-font:major-latin; 2785 mso-hansi-theme-font:major-latin;mso-bidi-theme-font:major-latin'>Edit Phase/C</span></b><b 2786 fraction</span></b> checkbox in the Phase/Data tab. Do this for each 2787 Phase followed by use of <b style='mso-bidi-font-weight:normal'><span 2788 style='font-family:"Calibri",sans-serif;mso-ascii-theme-font:major-latin; 2789 mso-hansi-theme-font:major-latin;mso-bidi-theme-font:major-latin'>Edit Phase/</span></b><b 2786 2790 style='mso-bidi-font-weight:normal'><span style='font-family:"Calibri",sans-serif; 2787 mso-ascii-theme-font:major-latin;mso-hansi-theme-font:major-latin'>opy Flags</span></b> 2788 from the menu for both phases. However, if the refinement is attempted it will 2789 proceed but will not constrain the two phase fractions to sum to one for all 2790 but the 1<sup>st</sup> histogram. See <b style='mso-bidi-font-weight:normal'><span 2791 style='font-family:"Calibri",sans-serif;mso-ascii-theme-font:major-latin; 2792 mso-hansi-theme-font:major-latin;mso-bidi-theme-font:major-latin'>::constr0</span></b>, 2793 <b style='mso-bidi-font-weight:normal'><span style='font-family:"Calibri",sans-serif; 2794 mso-ascii-theme-font:major-latin;mso-hansi-theme-font:major-latin;mso-bidi-theme-font: 2795 major-latin'>1:*:Scale</span></b> and <b style='mso-bidi-font-weight:normal'><span 2796 style='font-family:"Calibri",sans-serif;mso-ascii-theme-font:major-latin; 2797 mso-hansi-theme-font:major-latin;mso-bidi-theme-font:major-latin'>0:*:Scale</span></b> 2798 below.</p> 2799 2800 <p class=MsoListParagraphCxSpMiddle><span style='mso-fareast-language:EN-US; 2801 mso-no-proof:yes'><!--[if gte vml 1]><v:shape id="Picture_x0020_82" o:spid="_x0000_i1032" 2802 type="#_x0000_t75" style='width:6in;height:247.5pt;visibility:visible; 2803 mso-wrap-style:square'> 2804 <v:imagedata src="SequentialTutorial_files/image048.png" o:title=""/> 2805 </v:shape><![endif]--><![if !vml]><img width=576 height=330 2806 src="SequentialTutorial_files/image080.png" v:shapes="Picture_x0020_82"><![endif]></span></p> 2807 2808 <p class=MsoListParagraphCxSpLast><o:p> </o:p></p> 2809 2810 <p class=MsoNormal style='margin-left:.5in'>To fix this, one additional step is 2811 needed to switch the constraints to work properly. Note that constraint we 2812 defined before (on <b style='mso-bidi-font-weight:normal'><span 2813 style='font-family:"Calibri",sans-serif;mso-ascii-theme-font:major-latin; 2814 mso-hansi-theme-font:major-latin'>0:0:Scale</span></b> and <b style='mso-bidi-font-weight: 2815 normal'><span style='font-family:"Calibri",sans-serif;mso-ascii-theme-font: 2816 major-latin;mso-hansi-theme-font:major-latin'>1:0:Scale</span></b>) pertains 2817 only to the first histogram. Also a constraint is ignored if none of the 2818 variables in it are included in the refinement, so this constraint only affects 2819 the first histogram. We could set up a constraint for each histogram that has 2820 been added, but this would be rather tedious to set up. The alternate is to set 2821 up a constraint where a wildcard (<span style='font-family:Courier'>*</span>) 2822 is used. Wildcards only apply to sequential fits and causes the current 2823 histogram number to be inserted for the <span style='font-family:Courier'>*</span> 2824 when each histogram is used. </p> 2791 mso-ascii-theme-font:major-latin;mso-hansi-theme-font:major-latin'>Copy 2792 Flags</span></b>. However, a constraint is still needed as before, but 2793 to be applied to each histogram. Constraints entered with a specific histogram 2794 number, as was done before, will be ignored. For sequential 2795 refinements, only constraints where the histogram number is specified 2796 as "*" are used. 2825 2797 2826 2798 <p class=MsoListParagraphCxSpFirst><o:p> </o:p></p> … … 2879 2851 <p class=MsoListParagraphCxSpMiddle><o:p> </o:p></p> 2880 2852 2881 <p class=MsoListParagraphCxSpMiddle>These two constraints will interfere when 2882 refining the with first histogram, so <span style='mso-bidi-font-weight:bold'>press 2883 the </span><b><span style='font-family:"Calibri",sans-serif;mso-ascii-theme-font: 2853 <p class=MsoListParagraphCxSpMiddle>These two constraints do not 2854 interfere, since the first will be used during a non-sequential 2855 refinement and the second is used only for sequential fits, but if 2856 desired the first constraint can be deleted by pressing the </span><b><span style='font-family:"Calibri",sans-serif;mso-ascii-theme-font: 2884 2857 major-latin;mso-hansi-theme-font:major-latin'>Delete</span></b><span 2885 2858 style='mso-bidi-font-weight:bold'> button for the first</span> one to remove 2886 it.</p> 2887 2888 <p class=MsoListParagraphCxSpMiddle><span style='mso-spacerun:yes'> </span><span 2889 style='mso-fareast-language:EN-US;mso-no-proof:yes'><!--[if gte vml 1]><v:shape 2890 id="Picture_x0020_86" o:spid="_x0000_i1028" type="#_x0000_t75" style='width:6in; 2891 height:137.25pt;visibility:visible;mso-wrap-style:square'> 2892 <v:imagedata src="SequentialTutorial_files/image055.png" o:title=""/> 2893 </v:shape><![endif]--><![if !vml]><img width=576 height=183 2894 src="SequentialTutorial_files/image083.png" v:shapes="Picture_x0020_86"><![endif]></span></p> 2859 it, but this is optional.</p> 2895 2860 2896 2861 <p class=MsoListParagraphCxSpMiddle><o:p> </o:p></p> … … 2902 2867 mso-ascii-theme-font:major-latin;mso-hansi-theme-font:major-latin'>Calculate/Sequential 2903 2868 refine</span> </b><span style='mso-bidi-font-weight:bold'>menu item<b>.</b></span> 2904 Three new columns appear at the end of the table for <b style='mso-bidi-font-weight:2869 Five new columns appear at the end of the table for <b style='mso-bidi-font-weight: 2905 2870 normal'><span style='font-family:"Calibri",sans-serif;mso-ascii-theme-font: 2906 2871 major-latin;mso-hansi-theme-font:major-latin'>::constr0</span></b> (generated 2907 by the constraint) and the initialvariables, <b style='mso-bidi-font-weight:2872 by the constraint) and the selected variables, <b style='mso-bidi-font-weight: 2908 2873 normal'><span style='font-family:"Calibri",sans-serif;mso-ascii-theme-font: 2909 2874 major-latin;mso-hansi-theme-font:major-latin'>0:*:Scale</span></b> and <b 2910 2875 style='mso-bidi-font-weight:normal'><span style='font-family:"Calibri",sans-serif; 2911 mso-ascii-theme-font:major-latin;mso-hansi-theme-font:major-latin'>1:*:Scale</span></b>. 2876 mso-ascii-theme-font:major-latin;mso-hansi-theme-font:major-latin'>1:*:Scale</span></b>. Also 2877 included are the weight fractions for each phase. Note that the phase 2878 fractions all add to one. 2912 2879 Changes to the R<sub>wp</sub> values are quite small, even though the value for 2913 2880 the minor phase changes significantly. This indicates that the refinement is 2914 relatively insensitive to these values. There are now values for all three2915 columns and the two scales add to one.</p>2881 relatively insensitive to these values. 2882 </p> 2916 2883 2917 2884 <p class=MsoListParagraphCxSpMiddle><span style='mso-fareast-language:EN-US; … … 2922 2889 </v:shape><![endif]--><![if !vml]><img width=576 height=264 2923 2890 src="SequentialTutorial_files/image084.png" v:shapes="Picture_x0020_88"><![endif]></span></p> 2891 2892 <h1>Step 9: Complete the sequential refinement. </h1> 2893 2894 <p class=MsoListParagraphCxSpFirst><o:p> </o:p></p> 2924 2895 2925 2896 <p class=MsoListParagraphCxSpMiddle>The last thing we will add to the -
trunk/GSASIIdataGUI.py
r3450 r3451 6924 6924 for phase in Phases: 6925 6925 var = str(Phases[phase]['pId'])+':*:Scale' 6926 if var not in combinedVaryList+ depValDict.keys(): continue6926 if var not in combinedVaryList+list(depValDict.keys()): continue 6927 6927 wtFrList = [] 6928 6928 sigwtFrList = []
Note: See TracChangeset
for help on using the changeset viewer.