Changeset 6246e00 in sasview for sansmodels/src/sans/models/media/model_functions.html
- Timestamp:
- May 2, 2012 8:57:52 AM (13 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, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 19e614a
- Parents:
- 8df5faa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/media/model_functions.html
r543d1bd r6246e00 471 471 <a href="#BEPolyelectrolyte">BEPolyelectrolyte</a>, 472 472 <a href="#BroadPeak">BroadPeak,<span style="text-decoration: none;"> </span><span style="color: windowtext; text-decoration: none;"><u><span style="color: blue;">CorrLength</span></u></span><span style="color: windowtext; text-decoration: none;">,</span></a> 473 <a href="#DAB_Model">DAB_Model</a>, <a href="#Debye">Debye</a>, <a href="#Number_Density_Fractal">FractalModel</a>, <a href="#FractalCoreShell">FractalCoreShell</a>, <a href="#GaussLorentzGel">GaussLorentzGel</a>, <a href="#Guinier">Guinier</a>, <a href="#GuinierPorod">GuinierPorod</a>, <a href="#Lorentz">Lorentz</a>, <a href="#Mass_Fractal">MassFractalModel</a>, <a href="#MassSurface_Fractal">MassSurfaceFractal</a>, <a href="#Peak%20Gauss%20Model">PeakGaussModel</a>, <a href="#Peak%20Lorentz%20Model">PeakLorentzModel</a>, <a href="#Poly_GaussCoil">Poly_GaussCoil</a>, <a href="#PolymerExclVolume">PolyExclVolume</a>, <a href="#PorodModel">PorodModel</a>, <a href="#RPA10Model">RPA10Model</a>, <a href="#Surface_Fractal">SurfaceFractalModel</a>, 474 <a href="#Teubner%20Strey">Teubner Strey</a>, <a href="#TwoLorentzian">TwoLorentzian</a>, <a href="#TwoPowerLaw">TwoPowerLaw</a>, <a href="#UnifiedPowerRg">UnifiedPowerRg</a>, <a href="#LineModel">LineModel</a>.</li> 473 <a href="#DAB_Model">DAB_Model</a>, <a href="#Debye">Debye</a>, <a href="#Number_Density_Fractal">FractalModel</a>, <a href="#FractalCoreShell">FractalCoreShell</a>, <a href="#GaussLorentzGel">GaussLorentzGel</a>, <a href="#Guinier">Guinier</a>, <a href="#GuinierPorod">GuinierPorod</a>, <a href="#Lorentz">Lorentz</a>, <a href="#Mass_Fractal">MassFractalModel</a>, <a href="#MassSurface_Fractal">MassSurfaceFractal</a>, <a href="#Peak%20Gauss%20Model">PeakGaussModel</a>, <a href="#Peak%20Lorentz%20Model">PeakLorentzModel</a>, <a href="#Poly_GaussCoil">Poly_GaussCoil</a>, <a href="#PolymerExclVolume">PolyExclVolume</a>, <a href="#PorodModel">PorodModel</a>, <a href="#RPA10Model">RPA10Model</a><a href="model_functions.html#ReflectivityIIModel">, </a><a href="#Surface_Fractal">SurfaceFractalModel</a>, 474 <a href="#Teubner%20Strey">Teubner Strey</a>, <a href="#TwoLorentzian">TwoLorentzian</a>, <a href="#TwoPowerLaw">TwoPowerLaw</a>, <a href="#UnifiedPowerRg">UnifiedPowerRg</a>, <a href="#LineModel">LineModel</a>, <a href="#ReflectivityModel">ReflectivityModel</a>, 475 <a href="#ReflectivityIIModel">ReflectivityIIModel</a>.</li> 475 476 <li class="MsoNormal" style="line-height: 115%;"><a href="#Model"><b>Customized Models</b></a>: 476 <a href="#A+Bcos%282x%29+Csin%282x%29">A+Bcos(2x)+Csin(2x)</a>, 477 <a href="#sinpoly_poly">sin(poly)/(poly)</a>, <a href="#CM+PEV">CM+PEV</a>, <a href="#A*CM+%281-A%29*PEV">A*CM+(1-A)*PEV</a>, <a href="#polynomial5">polynomial5</a>, <a href="#C*sph_jn%28Ax+B%29+D">C*sph_jn(Ax+B)+D</a>, <a href="#ReflectivityModel">ReflectivityModel</a>, <a href="#ReflectivityIIModel">ReflectivityIIModel</a>.</li> 477 <a href="#testmodel">testmodel</a>, <a href="#testmodel_2">testmodel_2</a>, <a href="#sum_p1_p2">sum_p1_p2</a>, <a href="#sum_Ap1_1_Ap2">sum_Ap1_1_Ap2</a>, <a href="#polynomial5">polynomial5</a>, <a href="#sph_bessel_jn">sph_bessel_jn</a>.</li> 478 478 <li class="MsoNormal" style="line-height: 115%;"><a href="#Structure_Factors"><b>Structure Factors</b></a>: 479 479 <a href="#HardsphereStructure">HardSphereStructure</a>, … … 3347 3347 with a core-shell scattering length density profile. The form factor is 3348 3348 normalized by the particle volume. This model is a more general case of 3349 <a href="#CoreShellCylinderModel"> 3350 core-shell cylindermodel </a> (see above and reference below) in3349 <a href="#CoreShellCylinderModel">core-shell cylinder 3350 model </a> (see above and reference below) in 3351 3351 that the parameters of the shell are separated into a face-shell and 3352 3352 a rim-shell so that users can set different values of the thicknesses … … 10726 10726 </table> 10727 10727 </div> 10728 <p class="MsoNormal" style="margin-left: 0.25in;"><b><span style="font-size: 14pt;"> </span></b></p> 10729 <p class="MsoNormal"><b><span style="font-size: 14pt;"> </span></b></p> 10730 <p class="MsoNormal"><b><span style="font-size: 14pt;"> </span></b></p> 10731 <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-size: 16pt;">4.</span></b><b><span style="font-size: 7pt;"> 10732 </span></b><a name="Model"><b><span style="font-size: 16pt;">Customized 10733 Models </span></b></a></p> 10734 <p class="MsoNormal" style="margin-left: 0.25in;"><b><span style="font-size: 14pt;"> </span></b></p> 10735 <p class="MsoBodyText" style="margin-left: 0.25in;">Customized 10736 model functions can be 10737 redefined or added by users (See SansView tutorial for details). </p> 10738 <p class="MsoBodyText" style="margin-left: 0.25in;"> </p> 10739 <p class="MsoListParagraph" style="margin-left: 0.55in; text-indent: -0.3in;"><b><span style="font-size: 14pt;">4.1.</span></b><b><span style="font-size: 7pt;"> 10740 </span></b><a name="A+Bcos(2x)+Csin(2x)"><b><span style="font-size: 14pt;">A+Bcos(2x)+Csin(2x)</span></b></a></p> 10741 <p class="MsoListParagraph" style="margin-left: 0.55in;"><b><span style="font-size: 14pt;"> </span></b></p> 10742 <p class="MsoNormal">This function, as an example of a 10743 user defined function, calculates 10744 the intensity = A + Bcos(2q) + Csin(2q).</p> 10745 <p class="MsoNormal"> </p> 10746 <p class="MsoNormal"> </p> 10747 <p class="MsoListParagraph" style="margin-left: 0.55in; text-indent: -0.3in;"><b><span style="font-size: 14pt;">4.2.</span></b><b><span style="font-size: 7pt;"> 10748 </span></b><a name="sin(poly)/(poly)"><b><span style="font-size: 14pt;">sin(poly)/poly 10749 </span></b></a></p> 10750 <p class="MsoNormal"><b> </b></p> 10751 <p class="MsoNormal">This function, as an example of a 10752 user defined function, 10753 calculates the intensity = scale * sin(f)/f, where f = A + Bq 10754 + Cq<sup>2</sup> 10755 + Dq<sup>3 </sup>+ Eq<sup>4</sup> + Fq<sup>5</sup>.</p> 10756 <p class="MsoNormal"> </p> 10757 <p class="MsoNormal"> </p> 10758 <p class="MsoListParagraph" style="margin-left: 0.55in; text-indent: -0.3in;"><b><span style="font-size: 14pt;">4.3.</span></b><b><span style="font-size: 7pt;"> 10759 </span></b><a name="CM+PEV"><b><span style="font-size: 14pt;">CM+PEV 10760 </span></b></a></p> 10761 <p class="MsoNormal"><b> </b></p> 10762 <p class="MsoNormal">This function, as an example of a 10763 user defined function, 10764 calculates the intensity = scale_factor * (CylinderModel + 10765 PolymerExclVolume model). 10766 To make your own sum(P1+P2) model, select 'Easy Custom Sum' from the 10767 Fitting menu, or modify and compile the file named 'sum_p1_p2.py' from 10768 'Edit Custom Model' in the 'Fitting' menu. It works only for single 10769 functional models. 10770 </p> 10771 <p class="MsoNormal"> </p> 10772 <p class="MsoNormal"> </p> 10773 <p class="MsoListParagraph" style="margin-left: 0.55in; text-indent: -0.3in;"><b><span style="font-size: 14pt;">4.4.</span></b><b><span style="font-size: 7pt;"> 10774 </span></b><a name="A*CM+(1-A)*PEV"><b><span style="font-size: 14pt;">A*CM+(1-A)*PEV 10775 </span></b></a></p> 10776 <p class="MsoNormal"><b> </b></p> 10777 <p class="MsoNormal">This function, as an example of a 10778 user defined function, 10779 calculates the intensity = (scale_factor * CylinderModel + 10780 (1-scale_factor) * PolymerExclVolume model). 10781 To make your own A*p1+(1-A)*p2 model, modify and compile the file named 10782 'sum_Ap1_1_Ap2.py' from 'Edit Custom Model' in the 'Fitting' menu. It 10783 works only for single functional models. 10784 </p> 10785 <p class="MsoNormal"> </p> 10786 <p class="MsoNormal"> </p> 10787 <p class="MsoListParagraph" style="margin-left: 0.55in; text-indent: -0.3in;"><b><span style="font-size: 14pt;">4.5.</span></b><b><span style="font-size: 7pt;"> 10788 </span></b><a name="polynomial5"><b><span style="font-size: 14pt;">polynomial5 10789 </span></b></a></p> 10790 <p class="MsoNormal"><b> </b></p> 10791 <p class="MsoNormal">This function, as an example of a 10792 user defined function, 10793 calculates the intensity = A + Bq + Cq<sup>2</sup> 10794 + Dq<sup>3 </sup>+ Eq<sup>4</sup> + Fq<sup>5</sup>. 10795 This model can be modified and compiled from 'Edit Custom Model' in the 10796 'Fitting' menu. 10797 </p> 10798 <p class="MsoNormal"> </p> 10799 <p class="MsoNormal"> </p> 10800 <p class="MsoListParagraph" style="margin-left: 0.55in; text-indent: -0.3in;"><b><span style="font-size: 14pt;">4.6.</span></b><b><span style="font-size: 7pt;"> 10801 </span></b><a name="C*sph_jn(Ax+B)+D"><b><span style="font-size: 14pt;">C*sph_jn(Ax+B)+D 10802 </span></b></a></p> 10803 <p class="MsoNormal"><b> </b></p> 10804 <p class="MsoNormal">This function, as an example of a 10805 user defined function, 10806 calculates the intensity = C*sph_jn(Ax+B)+D where the sph_jn 10807 is spherical Bessel function of the order n. 10808 This model can be modified and compiled from 'Edit Custom Model' in the 10809 'Fitting' menu. 10810 </p> 10811 <p class="MsoNormal"> </p> 10812 <p class="MsoNormal"> </p> 10813 <p class="MsoListParagraph" style="margin-left: 0.55in; text-indent: -0.3in;"><b><span style="font-size: 14pt;">4.7.</span></b><b><span style="font-size: 7pt;"> 10728 <p class="MsoNormal"> </p> 10729 <p class="MsoListParagraph" style="margin-left: 0.55in; text-indent: -0.3in;"><b><span style="font-size: 14pt;"></span></b></p> 10730 <p class="MsoListParagraph" style="margin-left: 0.55in; text-indent: -0.3in;"><b><span style="font-size: 14pt;">3.27.</span></b><b><span style="font-size: 7pt;"> 10814 10731 </span></b><a name="ReflectivityModel"><b><span style="font-size: 14pt;">ReflectivityModel</span></b></a></p> 10815 10732 <p class="MsoListParagraph" style="margin-left: 0.55in; text-indent: -0.3in;"><b><span style="font-size: 14pt;"> </span></b></p> … … 10832 10749 This model was contributed by an interested user. </p> 10833 10750 <p> </p> 10834 <p> </p>10835 10751 <p align="center"> <img src="image231.bmp"></p> 10836 10752 <p class="MsoNormal" style=""> </p> … … 10846 10762 <p> </p> 10847 10763 <p> </p> 10764 <p class="MsoListParagraph" style="margin-left: 0.55in; text-indent: -0.3in;"></p> 10848 10765 <p class="MsoListParagraph" style="margin-left: 0.55in; text-indent: -0.3in;"> </p> 10849 <p class="MsoListParagraph" style="margin-left: 0.55in; text-indent: -0.3in;"> </p> 10850 <p class="MsoListParagraph" style="margin-left: 0.55in; text-indent: -0.3in;"> </p> 10851 <p class="MsoListParagraph" style="margin-left: 0.55in; text-indent: -0.3in;"><b><span style="font-size: 14pt;">4.8.</span></b><b><span style="font-size: 7pt;"> 10766 <p class="MsoListParagraph" style="margin-left: 0.55in; text-indent: -0.3in;"><b><span style="font-size: 14pt;">3.28.</span></b><b><span style="font-size: 7pt;"> 10852 10767 </span></b><a name="ReflectivityIIModel"><b><span style="font-size: 14pt;">ReflectivityIIModel</span></b></a></p> 10853 10768 <p class="MsoListParagraph" style="margin-left: 0.55in; text-indent: -0.3in;"><b><span style="font-size: 14pt;"> </span></b></p> 10854 <p class="MsoNormal">Same as the ReflectivityModel except 10769 <p class="MsoNormal"> Same 10770 as the ReflectivityModel except 10855 10771 that the it is more 10856 10772 customizable. More interfacial functions are supplied. The number of 10857 10773 points 10858 (npts_inter) for each interface can be choosen. The constant (A below 10774 (npts_inter) for each interface can be choosen. 10775 The constant (A below 10859 10776 but 'nu' as 10860 10777 a parameter name of the model) for exp, erf, or power-law is an input. … … 10874 10791 <p> <span><img src="image049.gif"></span></p> 10875 10792 <p> </p> 10876 <p> </p> 10877 <p> </p> 10878 <p> </p> 10879 <p class="MsoNormal">Note: This 10793 <p class="MsoNormal"> Note: 10794 This 10880 10795 model was implemented by an interested user. </p> 10881 <p> </p> 10882 <p> </p> 10883 <p> </p> 10884 <p> </p> 10796 <p class="MsoNormal"><b><span style="font-size: 14pt;"> </span></b></p> 10797 <p class="MsoNormal"><b><span style="font-size: 14pt;"></span></b></p> 10798 <p class="MsoNormal"><b><span style="font-size: 14pt;"></span></b></p> 10799 <p class="MsoNormal"><b><span style="font-size: 14pt;"> </span></b></p> 10800 <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-size: 16pt;">4.</span></b><b><span style="font-size: 7pt;"> 10801 </span></b><a name="Model"><b><span style="font-size: 16pt;">Customized 10802 Models </span></b></a></p> 10803 <p class="MsoNormal" style="margin-left: 0.25in;"><b><span style="font-size: 14pt;"> </span></b></p> 10804 <p class="MsoBodyText" style="margin-left: 0.25in;">Customized 10805 model functions can be 10806 redefined or added by users (See SansView tutorial for details). </p> 10807 <p class="MsoBodyText" style="margin-left: 0.25in;"> </p> 10808 <p class="MsoListParagraph" style="margin-left: 0.55in; text-indent: -0.3in;"><b><span style="font-size: 14pt;">4.1.</span></b><b><span style="font-size: 7pt;"> </span></b><a name="testmodel"><b><span style="font-size: 14pt;">testmodel</span></b></a></p> 10809 <p class="MsoListParagraph" style="margin-left: 0.55in;"><b><span style="font-size: 14pt;"> </span></b></p> 10810 <p class="MsoNormal">This function, as an example of a 10811 user defined function, calculates 10812 the intensity = A + Bcos(2q) + Csin(2q).</p> 10813 <p class="MsoNormal"> </p> 10814 <p class="MsoNormal"> </p> 10815 <p class="MsoListParagraph" style="margin-left: 0.55in; text-indent: -0.3in;"><b><span style="font-size: 14pt;">4.2.</span></b><b><span style="font-size: 7pt;"> </span></b><a name="testmodel_2"><b><span style="font-size: 14pt;">testmodel_2 10816 </span></b></a></p> 10817 <p class="MsoNormal"><b> </b></p> 10818 <p class="MsoNormal">This function, as an example of a 10819 user defined function, 10820 calculates the intensity = scale * sin(f)/f, where f = A + Bq 10821 + Cq<sup>2</sup> 10822 + Dq<sup>3 </sup>+ Eq<sup>4</sup> + Fq<sup>5</sup>.</p> 10823 <p class="MsoNormal"> </p> 10824 <p class="MsoNormal"> </p> 10825 <p class="MsoListParagraph" style="margin-left: 0.55in; text-indent: -0.3in;"><b><span style="font-size: 14pt;">4.3.</span></b><b><span style="font-size: 7pt;"> 10826 </span></b><a name="sum_p1_p2"><b><span style="font-size: 14pt;">sum_p1_p2 10827 </span></b></a></p> 10828 <p class="MsoNormal"><b> </b></p> 10829 <p class="MsoNormal">This function, as an example of a 10830 user defined function, 10831 calculates the intensity = scale_factor * (CylinderModel + 10832 PolymerExclVolume model). 10833 To make your own sum(P1+P2) model, select 'Easy Custom Sum' from the 10834 Fitting menu, or modify and compile the file named 'sum_p1_p2.py' from 10835 'Edit Custom Model' in the 'Fitting' menu. It works only for single 10836 functional models. 10837 </p> 10838 <p class="MsoNormal"> </p> 10839 <p class="MsoNormal"> </p> 10840 <p class="MsoListParagraph" style="margin-left: 0.55in; text-indent: -0.3in;"><b><span style="font-size: 14pt;">4.4.</span></b><b><span style="font-size: 7pt;"> </span></b><a name="sum_Ap1_1_Ap2"><b><span style="font-size: 14pt;">sum_Ap1_1_Ap2 10841 </span></b></a></p> 10842 <p class="MsoNormal"><b> </b></p> 10843 <p class="MsoNormal">This function, as an example of a 10844 user defined function, 10845 calculates the intensity = (scale_factor * CylinderModel + 10846 (1-scale_factor) * PolymerExclVolume model). 10847 To make your own A*p1+(1-A)*p2 model, modify and compile the file named 10848 'sum_Ap1_1_Ap2.py' from 'Edit Custom Model' in the 'Fitting' menu. It 10849 works only for single functional models. 10850 </p> 10851 <p class="MsoNormal"> </p> 10852 <p class="MsoNormal"> </p> 10853 <p class="MsoListParagraph" style="margin-left: 0.55in; text-indent: -0.3in;"><b><span style="font-size: 14pt;">4.5.</span></b><b><span style="font-size: 7pt;"> 10854 </span></b><a name="polynomial5"><b><span style="font-size: 14pt;">polynomial5 10855 </span></b></a></p> 10856 <p class="MsoNormal"><b> </b></p> 10857 <p class="MsoNormal">This function, as an example of a 10858 user defined function, 10859 calculates the intensity = A + Bq + Cq<sup>2</sup> 10860 + Dq<sup>3 </sup>+ Eq<sup>4</sup> + Fq<sup>5</sup>. 10861 This model can be modified and compiled from 'Edit Custom Model' in the 10862 'Fitting' menu. 10863 </p> 10864 <p class="MsoNormal"> </p> 10865 <p class="MsoNormal"> </p> 10866 <p class="MsoListParagraph" style="margin-left: 0.55in; text-indent: -0.3in;"><b><span style="font-size: 14pt;">4.6.</span></b><b><span style="font-size: 7pt;"> </span></b><a name="sph_bessel_jn"><b><span style="font-size: 14pt;">sph_bessel_jn 10867 </span></b></a></p> 10868 <p class="MsoNormal"><b> </b></p> 10869 <p class="MsoNormal">This function, as an example of a 10870 user defined function, 10871 calculates the intensity = C*sph_jn(Ax+B)+D where the sph_jn 10872 is spherical Bessel function of the order n. 10873 This model can be modified and compiled from 'Edit Custom Model' in the 10874 'Fitting' menu. 10875 </p> 10876 <p class="MsoNormal"> </p> 10885 10877 <p class="MsoListParagraph" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-size: 16pt;">5.</span></b><b><span style="font-size: 7pt;"> 10886 10878 </span></b><a name="Structure_Factors"><b><span style="font-size: 16pt;">Structure
Note: See TracChangeset
for help on using the changeset viewer.