Changeset 6aad2e8 in sasview for src/sas/sasgui/perspectives/fitting/media
- Timestamp:
- Apr 6, 2017 10:20:15 AM (8 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 094b9eb, 42281cc
- Parents:
- a2e980b
- Location:
- src/sas/sasgui/perspectives/fitting/media
- Files:
-
- 50 added
- 50 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/media/fitting_help.rst
r5295cf5 r6aad2e8 4 4 .. by S King, ISIS, during SasView CodeCamp-III in Feb 2015. 5 5 6 .. |inlineimage004| image:: sm_image004. gif7 .. |inlineimage005| image:: sm_image005. gif8 .. |inlineimage008| image:: sm_image008. gif9 .. |inlineimage009| image:: sm_image009. gif10 .. |inlineimage010| image:: sm_image010. gif11 .. |inlineimage011| image:: sm_image011. gif12 .. |inlineimage012| image:: sm_image012. gif13 .. |inlineimage018| image:: sm_image018. gif14 .. |inlineimage019| image:: sm_image019. gif6 .. |inlineimage004| image:: sm_image004.png 7 .. |inlineimage005| image:: sm_image005.png 8 .. |inlineimage008| image:: sm_image008.png 9 .. |inlineimage009| image:: sm_image009.png 10 .. |inlineimage010| image:: sm_image010.png 11 .. |inlineimage011| image:: sm_image011.png 12 .. |inlineimage012| image:: sm_image012.png 13 .. |inlineimage018| image:: sm_image018.png 14 .. |inlineimage019| image:: sm_image019.png 15 15 16 16 … … 90 90 *View* option on the menubar, or click on the *Modify* button on the *Fit Page*. 91 91 92 .. image:: cat_fig0. bmp92 .. image:: cat_fig0.png 93 93 94 94 The categorization of all models except the user supplied Plugin Models can be … … 96 96 hidden from view in the drop-down menus. 97 97 98 .. image:: cat_fig1. bmp98 .. image:: cat_fig1.png 99 99 100 100 Changing category … … 105 105 to make the required changes. 106 106 107 .. image:: cat_fig2. bmp107 .. image:: cat_fig2.png 108 108 109 109 To create a category for the selected model, click the *Add* button. In order … … 179 179 GUI using the *New Plugin Model Function*. 180 180 181 .. image:: new_model. bmp181 .. image:: new_model.png 182 182 183 183 When using this feature, be aware that even if your code has errors, including … … 198 198 ^^^^^^^^^^^^^^^^ 199 199 200 .. image:: sum_model. bmp200 .. image:: sum_model.png 201 201 202 202 This option creates a custom Plugin Model of the form:: … … 509 509 at the bottom of that panel and *Send To Fitting*. A *BatchPage* will be created. 510 510 511 .. image:: batch_button_area. bmp511 .. image:: batch_button_area.png 512 512 513 513 *NB: The Batch Page can also be created by checking the Batch Mode radio button* … … 531 531 will all appear on one graph. 532 532 533 .. image:: view_button. bmp533 .. image:: view_button.png 534 534 535 535 *NB: In theory, returning to the BatchPage and changing the name of the I(Q)* … … 567 567 bar. 568 568 569 .. image:: restore_batch_window. bmp569 .. image:: restore_batch_window.png 570 570 571 571 Once a batch fit is completed, all model parameters are displayed but *not* … … 583 583 label. 584 584 585 .. image:: edit_menu. bmp585 .. image:: edit_menu.png 586 586 587 587 *NB: If there is an existing Grid Window and another batch fit is performed,* … … 596 596 *Window* menu bar. The loaded parameters will appear in a new table tab. 597 597 598 .. image:: file_menu. bmp598 .. image:: file_menu.png 599 599 600 600 *NB: Saving the Grid Window does not save any experimental data, residuals* … … 614 614 but different labels and units can be entered manually. 615 615 616 .. image:: plot_button. bmp616 .. image:: plot_button.png 617 617 618 618 The *X/Y-axis Selection Range* can be edited manually. The text control box -
src/sas/sasgui/perspectives/fitting/media/mag_help.rst
reca66a1 r6aad2e8 4 4 .. by S King, ISIS, during SasView CodeCamp-III in Feb 2015. 5 5 6 .. |inlineimage004| image:: sm_image004. gif7 .. |inlineimage005| image:: sm_image005. gif8 .. |inlineimage008| image:: sm_image008. gif9 .. |inlineimage009| image:: sm_image009. gif10 .. |inlineimage010| image:: sm_image010. gif11 .. |inlineimage011| image:: sm_image011. gif12 .. |inlineimage012| image:: sm_image012. gif13 .. |inlineimage018| image:: sm_image018. gif14 .. |inlineimage019| image:: sm_image019. gif6 .. |inlineimage004| image:: sm_image004.png 7 .. |inlineimage005| image:: sm_image005.png 8 .. |inlineimage008| image:: sm_image008.png 9 .. |inlineimage009| image:: sm_image009.png 10 .. |inlineimage010| image:: sm_image010.png 11 .. |inlineimage011| image:: sm_image011.png 12 .. |inlineimage012| image:: sm_image012.png 13 .. |inlineimage018| image:: sm_image018.png 14 .. |inlineimage019| image:: sm_image019.png 15 15 16 16 … … 36 36 scattering length. 37 37 38 .. image:: mag_vector. bmp38 .. image:: mag_vector.png 39 39 40 40 The magnetic scattering length density is then 41 41 42 .. image:: dm_eq. gif42 .. image:: dm_eq.png 43 43 44 44 where |gamma| = -1.913 is the gyromagnetic ratio, |mu|\ :sub:`B` is the … … 53 53 Spin-flips (+ -) and (- +) 54 54 55 .. image:: M_angles_pic. bmp55 .. image:: M_angles_pic.png 56 56 57 57 If the angles of the *Q* vector and the spin-axis (*x'*) to the *x*-axis are |phi| … … 60 60 length density (|beta|\ :sub:`N`) are 61 61 62 .. image:: sld1. gif62 .. image:: sld1.png 63 63 64 64 when there are no spin-flips, and 65 65 66 .. image:: sld2. gif66 .. image:: sld2.png 67 67 68 68 when there are, and 69 69 70 .. image:: mxp. gif70 .. image:: mxp.png 71 71 72 .. image:: myp. gif72 .. image:: myp.png 73 73 74 .. image:: mzp. gif74 .. image:: mzp.png 75 75 76 .. image:: mqx. gif76 .. image:: mqx.png 77 77 78 .. image:: mqy. gif78 .. image:: mqy.png 79 79 80 80 Here, *M*\ :sub:`0x`, *M*\ :sub:`0y` and *M*\ :sub:`0z` are the x, y and z components 81 81 of the magnetization vector given in the laboratory xyz frame given by 82 82 83 .. image:: m0x_eq. gif83 .. image:: m0x_eq.png 84 84 85 .. image:: m0y_eq. gif85 .. image:: m0y_eq.png 86 86 87 .. image:: m0z_eq. gif87 .. image:: m0z_eq.png 88 88 89 89 and the magnetization angles |theta|\ :sub:`M` and |phi|\ :sub:`M` are defined in -
src/sas/sasgui/perspectives/fitting/media/pd_help.rst
rb64b87c r6aad2e8 4 4 .. by S King, ISIS, during SasView CodeCamp-III in Feb 2015. 5 5 6 .. |inlineimage004| image:: sm_image004. gif7 .. |inlineimage005| image:: sm_image005. gif8 .. |inlineimage008| image:: sm_image008. gif9 .. |inlineimage009| image:: sm_image009. gif10 .. |inlineimage010| image:: sm_image010. gif11 .. |inlineimage011| image:: sm_image011. gif12 .. |inlineimage012| image:: sm_image012. gif13 .. |inlineimage018| image:: sm_image018. gif14 .. |inlineimage019| image:: sm_image019. gif6 .. |inlineimage004| image:: sm_image004.png 7 .. |inlineimage005| image:: sm_image005.png 8 .. |inlineimage008| image:: sm_image008.png 9 .. |inlineimage009| image:: sm_image009.png 10 .. |inlineimage010| image:: sm_image010.png 11 .. |inlineimage011| image:: sm_image011.png 12 .. |inlineimage012| image:: sm_image012.png 13 .. |inlineimage018| image:: sm_image018.png 14 .. |inlineimage019| image:: sm_image019.png 15 15 16 16 -
src/sas/sasgui/perspectives/fitting/media/sm_help.rst
r27aabc1 r6aad2e8 4 4 .. by S King, ISIS, during SasView CodeCamp-III in Feb 2015. 5 5 6 .. |inlineimage004| image:: sm_image004. gif7 .. |inlineimage005| image:: sm_image005. gif8 .. |inlineimage008| image:: sm_image008. gif9 .. |inlineimage009| image:: sm_image009. gif10 .. |inlineimage010| image:: sm_image010. gif11 .. |inlineimage011| image:: sm_image011. gif12 .. |inlineimage012| image:: sm_image012. gif13 .. |inlineimage018| image:: sm_image018. gif14 .. |inlineimage019| image:: sm_image019. gif6 .. |inlineimage004| image:: sm_image004.png 7 .. |inlineimage005| image:: sm_image005.png 8 .. |inlineimage008| image:: sm_image008.png 9 .. |inlineimage009| image:: sm_image009.png 10 .. |inlineimage010| image:: sm_image010.png 11 .. |inlineimage011| image:: sm_image011.png 12 .. |inlineimage012| image:: sm_image012.png 13 .. |inlineimage018| image:: sm_image018.png 14 .. |inlineimage019| image:: sm_image019.png 15 15 16 16 … … 57 57 The slit-smeared scattering intensity is defined by 58 58 59 .. image:: sm_image002. gif59 .. image:: sm_image002.png 60 60 61 61 where *Norm* is given by 62 62 63 .. image:: sm_image003. gif63 .. image:: sm_image003.png 64 64 65 65 **[Equation 1]** … … 70 70 function is described by a rectangular function, such that 71 71 72 .. image:: sm_image006. gif72 .. image:: sm_image006.png 73 73 74 74 **[Equation 2]** … … 76 76 and 77 77 78 .. image:: sm_image007. gif78 .. image:: sm_image007.png 79 79 80 80 **[Equation 3]** … … 87 87 This simplifies the integral in Equation 1 to 88 88 89 .. image:: sm_image013. gif89 .. image:: sm_image013.png 90 90 91 91 **[Equation 4]** … … 98 98 **For** |inlineimage012| **= 0 and** |inlineimage011| **= constant.** 99 99 100 .. image:: sm_image016. gif100 .. image:: sm_image016.png 101 101 102 102 For discrete *q* values, at the *q* values of the data points and at the *q* … … 104 104 intensity can be approximately calculated as 105 105 106 .. image:: sm_image017. gif106 .. image:: sm_image017.png 107 107 108 108 **[Equation 5]** … … 138 138 numerical integration for the slit width. Then 139 139 140 .. image:: sm_image020. gif140 .. image:: sm_image020.png 141 141 142 142 **[Equation 7]** … … 158 158 Equation 6 becomes 159 159 160 .. image:: sm_image021. gif160 .. image:: sm_image021.png 161 161 162 162 **[Equation 8]** … … 171 171 Thus 172 172 173 .. image:: sm_image022. gif173 .. image:: sm_image022.png 174 174 175 175 **[Equation 9]** … … 182 182 elliptical Gaussian distribution. The *A* is a normalization factor. 183 183 184 .. image:: sm_image023. gif184 .. image:: sm_image023.png 185 185 186 186 Now we consider a numerical integration where each of the bins in |theta| and *R* are … … 189 189 within the bins. Then 190 190 191 .. image:: sm_image024. gif191 .. image:: sm_image024.png 192 192 193 193 **[Equation 10]** … … 199 199 Then, for a polar symmetric smear 200 200 201 .. image:: sm_image025. gif201 .. image:: sm_image025.png 202 202 203 203 **[Equation 11]** … … 205 205 where 206 206 207 .. image:: sm_image026. gif207 .. image:: sm_image026.png 208 208 209 209 while for a *x-y* symmetric smear 210 210 211 .. image:: sm_image027. gif211 .. image:: sm_image027.png 212 212 213 213 **[Equation 12]** … … 215 215 where 216 216 217 .. image:: sm_image028. gif217 .. image:: sm_image028.png 218 218 219 219 The current version of the SasView uses Equation 11 for 2D smearing, assuming
Note: See TracChangeset
for help on using the changeset viewer.