Changeset 27f1ddb in sasview


Ignore:
Timestamp:
Dec 23, 2011 9:02:06 AM (12 years ago)
Author:
Jae Cho <jhjcho@…>
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:
e9bd127
Parents:
e9f6979
Message:

added custom models

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansmodels/src/sans/models/media/model_functions.html

    r28c9e5a r27f1ddb  
    508508 <li class=MsoNormal style='line-height:115%'><a href="#Model"><b>Customized 
    509509     Models</b></a>: <a href="#A+Bcos(2x)+Csin(2x)">A+Bcos(2x)+Csin(2x)</a>, <a 
    510      href="#sinpoly_poly">sin(poly)/(poly)</a>, <a href="#Sum[P1(Cyl), P2(PEV)]">Sum[P1(Cyl), P2(PEV)]</a>, <a href="#ReflectivityModel">ReflectivityModel</a>, 
     510     href="#sinpoly_poly">sin(poly)/(poly)</a>, <a href="#CM+PEV">CM+PEV</a>,  
     511     <a href="#A*CM+(1-A)*PEV">A*CM+(1-A)*PEV</a>, 
     512          <a href="#polynomial5">polynomial5</a>, 
     513               <a href="#C*sph_jn(Ax+B)+D">C*sph_jn(Ax+B)+D</a>, 
     514      <a href="#ReflectivityModel">ReflectivityModel</a>, 
    511515     <a href="#ReflectivityIIModel">ReflectivityIIModel</a>.</li> 
    512516 <li class=MsoNormal style='line-height:115%'><a href="#Structure_Factors"><b>Structure 
     
    28822886 
    28832887<p class=MsoNormal>Once the <i><span style='font-family:Symbol'>r</span><sub>inter_i</sub></i> 
    2884 is found at the boundary of the sub-layer of the interface, we can find the its 
     2888is found at the boundary of the sub-layer of the interface, we can find its 
    28852889contribution to the form factor P(q);</p> 
    28862890 
     
    1402614030<p class=MsoListParagraph style='margin-left:.55in;text-indent:-.3in'><b><span 
    1402714031style='font-size:14.0pt'>4.3.</span></b><b><span style='font-size:7.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    14028 </span></b><a name="Sum[P1(Cyl), P2(PEV)]"><b><span style='font-size:14.0pt'>Sum[P1(Cyl), P2(PEV)] 
     14032</span></b><a name="CM+PEV"><b><span style='font-size:14.0pt'>CM+PEV 
    1402914033</span></b></a></p> 
    1403014034 
     
    1403314037<p class=MsoNormal>This function, as an example of a user defined function, 
    1403414038calculates the intensity =&nbsp; scale_factor * (CylinderModel + PolymerExclVolume model). 
    14035 To make your own sum(P1+P2) model, modify and save the file named 'sum_p1_p2.py' in the SansView/plugins/ folder  
    14036 by changing the model names in the 'from' and 'import' statement, and the self.name if desired. It works only for single functional models. 
     14039To make your own sum(P1+P2) model, select 'Easy Custom Sum' from the Fitting menu, or modify and compile the file named 'sum_p1_p2.py' from 'Edit Custom Model' in the 'Fitting' menu. 
     14040 It works only for single functional models. 
    1403714041</p> 
    1403814042<p class=MsoNormal>&nbsp;</p> 
     
    1404214046<p class=MsoListParagraph style='margin-left:.55in;text-indent:-.3in'><b><span 
    1404314047style='font-size:14.0pt'>4.4.</span></b><b><span style='font-size:7.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
     14048</span></b><a name="A*CM+(1-A)*PEV"><b><span style='font-size:14.0pt'>A*CM+(1-A)*PEV 
     14049</span></b></a></p> 
     14050 
     14051<p class=MsoNormal><b>&nbsp;</b></p> 
     14052 
     14053<p class=MsoNormal>This function, as an example of a user defined function, 
     14054calculates the intensity =&nbsp; (scale_factor * CylinderModel + (1-scale_factor) * PolymerExclVolume model). 
     14055To make your own A*p1+(1-A)*p2 model, modify and compile the file named 'sum_Ap1_1_Ap2.py' from 'Edit Custom Model' in the 'Fitting' menu. It works only for single functional models. 
     14056</p> 
     14057<p class=MsoNormal>&nbsp;</p> 
     14058 
     14059<p class=MsoNormal>&nbsp;</p> 
     14060 
     14061<p class=MsoListParagraph style='margin-left:.55in;text-indent:-.3in'><b><span 
     14062style='font-size:14.0pt'>4.5.</span></b><b><span style='font-size:7.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
     14063</span></b><a name="polynomial5"><b><span style='font-size:14.0pt'>polynomial5 
     14064</span></b></a></p> 
     14065 
     14066<p class=MsoNormal><b>&nbsp;</b></p> 
     14067 
     14068<p class=MsoNormal>This function, as an example of a user defined function, 
     14069calculates the intensity =&nbsp; A + Bq + Cq<sup>2</sup> 
     14070+ Dq<sup>3 </sup>+ Eq<sup>4</sup> + Fq<sup>5</sup>. 
     14071This model can be modified and compiled from 'Edit Custom Model' in the 'Fitting' menu. 
     14072</p> 
     14073<p class=MsoNormal>&nbsp;</p> 
     14074 
     14075<p class=MsoNormal>&nbsp;</p> 
     14076<p class=MsoListParagraph style='margin-left:.55in;text-indent:-.3in'><b><span 
     14077style='font-size:14.0pt'>4.6.</span></b><b><span style='font-size:7.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
     14078</span></b><a name="C*sph_jn(Ax+B)+D"><b><span style='font-size:14.0pt'>C*sph_jn(Ax+B)+D 
     14079</span></b></a></p> 
     14080 
     14081<p class=MsoNormal><b>&nbsp;</b></p> 
     14082 
     14083<p class=MsoNormal>This function, as an example of a user defined function, 
     14084calculates the intensity =&nbsp; C*sph_jn(Ax+B)+D where the sph_jn is spherical Bessel function of the order n. 
     14085This model can be modified and compiled from 'Edit Custom Model' in the 'Fitting' menu. 
     14086</p> 
     14087<p class=MsoNormal>&nbsp;</p> 
     14088 
     14089<p class=MsoNormal>&nbsp;</p> 
     14090<p class=MsoListParagraph style='margin-left:.55in;text-indent:-.3in'><b><span 
     14091style='font-size:14.0pt'>4.7.</span></b><b><span style='font-size:7.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    1404414092</span></b><a name=ReflectivityModel><b><span style='font-size:14.0pt'>ReflectivityModel</span></b></a></p> 
    1404514093 
     
    1408314131 
    1408414132<p class=MsoListParagraph style='margin-left:.55in;text-indent:-.3in'><b><span 
    14085 style='font-size:14.0pt'>4.5.</span></b><b><span style='font-size:7.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
     14133style='font-size:14.0pt'>4.8.</span></b><b><span style='font-size:7.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    1408614134</span></b><a name=ReflectivityIIModel><b><span style='font-size:14.0pt'>ReflectivityIIModel</span></b></a></p> 
    1408714135 
Note: See TracChangeset for help on using the changeset viewer.