Changeset 318b5bbb in sasview for sansmodels/src/sans/models
- Timestamp:
- Dec 18, 2012 10:55:24 AM (12 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:
- 6550b64
- Parents:
- 0203ade
- Location:
- sansmodels/src/sans/models
- Files:
-
- 14 added
- 51 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/BaseComponent.py
r7fdb332 r318b5bbb 39 39 ## parameters with orientation 40 40 self.orientation_params = [] 41 ## magnetic parameters 42 self.magnetic_params = [] 41 43 ## store dispersity reference 42 44 self._persistency_dict = {} -
sansmodels/src/sans/models/CoreMultiShellModel.py
r279e371 r318b5bbb 13 13 def __init__(self, multfactor=1): 14 14 BaseComponent.__init__(self) 15 """ 16 :param n_shells: number of shells in the model, assumes 1<= n_shells <=4. 17 """ 15 18 16 19 ## Setting model name model description 20 self.description="" 17 21 model = CoreFourShellModel() 18 22 self.model = model 19 23 self.name = "CoreMultiShellModel" 20 self.description =""24 self.description="" 21 25 self.n_shells = multfactor 22 26 ## Define parameters … … 39 43 #list of parameter that can be fitted 40 44 self._set_fixed_params() 45 self.orientation_params = [] 46 self.magnetic_params = [] 41 47 42 48 ## functional multiplicity info of the model … … 45 51 self.multiplicity_info = [max_nshells, "No. of Shells:", [], ['Radius']] 46 52 47 ## parameters with orientation: 48 for item in self.model.orientation_params:49 self.orientation_params.append(item)53 ## parameters with orientation: can be removed since there is no orientational params 54 self._set_orientation_params() 55 50 56 51 57 def _clone(self, obj): … … 62 68 return obj 63 69 70 64 71 def _set_dispersion(self): 65 72 """ … … 70 77 for name , value in self.model.dispersion.iteritems(): 71 78 nshell = 0 72 if name.split('_') [0] == 'thick':79 if name.split('_').count('thick') > 0: 73 80 while nshell < self.n_shells: 74 81 nshell += 1 75 if name.split('_')[ 1] == 'shell%s' % str(nshell):82 if name.split('_')[-1] == 'shell%s' % str(nshell): 76 83 self.dispersion[name] = value 77 84 else: … … 79 86 else: 80 87 self.dispersion[name] = value 81 88 89 def _set_orientation_params(self): 90 """ 91 model orientation and magnetic parameters, same params for this model 92 """ 93 ##set dispersion from model 94 for param in self.model.orientation_params: 95 nshell = 0 96 if param.split('_')[-1].count('shell') < 1: 97 #print "param", param, param.split('_')[-1].count('shell') 98 self.orientation_params.append(param) 99 self.magnetic_params.append(param) 100 continue 101 while nshell < self.n_shells: 102 nshell += 1 103 if param.split('_')[-1] == 'shell%s' % str(nshell): 104 self.orientation_params.append(param) 105 self.magnetic_params.append(param) 106 continue 82 107 83 108 def _set_params(self): … … 89 114 for name , value in self.model.params.iteritems(): 90 115 nshell = 0 91 if name.split('_')[0] == 'thick' or name.split('_')[0] == 'sld': 92 if name.split('_')[1] == 'solv' \ 93 or name.split('_')[1] == 'core0': 94 self.params[name] = value 116 if name.split('_').count('thick') > 0 or \ 117 name.split('_').count('sld') > 0 or \ 118 name[0] == 'M': 119 if name.split('_')[-1] == 'solv' or \ 120 name.split('_')[-1] == 'core0': 121 self.params[name]= value 95 122 continue 96 123 while nshell < self.n_shells: 97 124 nshell += 1 98 if name.split('_')[ 1] == 'shell%s' % str(nshell):99 self.params[name] 125 if name.split('_')[-1] == 'shell%s' % str(nshell): 126 self.params[name]= value 100 127 continue 101 128 else: 102 self.params[name] = value 103 129 self.params[name]= value 104 130 105 131 # set constrained values for the original model params … … 113 139 for name ,detail in self.model.details.iteritems(): 114 140 if name in self.params.iterkeys(): 115 self.details[name] 141 self.details[name]= detail 116 142 117 143 … … 123 149 for key in self.model.params.iterkeys(): 124 150 if key not in self.params.keys(): 125 if key.split('_') [0] == 'thick':151 if key.split('_').count('thick') > 0: 126 152 self.model.setParam(key, 0) 127 153 continue 128 154 129 155 for nshell in range(self.n_shells,max_nshells): 130 if key.split('_')[0] == 'sld'and \131 key.split('_')[1] == 'shell%s' % str(nshell+1):156 if key.split('_').count('sld') > 0 and \ 157 key.split('_')[-1] == 'shell%s' % str(nshell+1): 132 158 try: 133 value = self.model.params['sld_solv'] 134 self.model.setParam(key, value) 135 except: 136 message = "CoreMultiShellModel evaluation problem" 137 raise RuntimeError, message 159 if key[0] != 'M': 160 value = self.model.params['sld_solv'] 161 self.model.setParam(key, value) 162 else: 163 self.model.setParam(key, 0.0) 164 except: pass 165 138 166 139 167 def getProfile(self): … … 187 215 ## setParam to model 188 216 if name == 'sld_solv': 189 # the sld_*** model.params not in params 190 # must set to value of sld_solv 217 # the sld_*** model.params not in params must set to value of sld_solv 191 218 for key in self.model.params.iterkeys(): 192 if key not in self.params.keys()and key.split('_')[0] == 'sld': 193 self.model.setParam(key, value) 219 if key not in self.params.keys(): 220 if key.split('_')[0] == 'sld': 221 self.model.setParam(key, value) 222 elif key.split('_')[1] == 'sld': 223 # mag params 224 self.model.setParam(key, 0.0) 194 225 self.model.setParam( name, value) 195 226 … … 213 244 return 214 245 215 raise ValueError, "Model does not contain parameter %s" % name246 #raise ValueError, "Model does not contain parameter %s" % name 216 247 217 248 … … 250 281 ## Now (May27,10) directly uses the model eval function 251 282 ## instead of the for-loop in Base Component. 252 def evalDistribution(self, x ):283 def evalDistribution(self, x = []): 253 284 """ 254 285 Evaluate the model in cartesian coordinates … … 259 290 # set effective radius and scaling factor before run 260 291 return self.model.evalDistribution(x) 261 292 293 def calculate_ER(self): 294 """ 295 Calculate the effective radius for P(q)*S(q) 296 297 :return: the value of the effective radius 298 299 """ 300 return self.model.calculate_ER() 301 302 def calculate_VR(self): 303 """ 304 Calculate the volf ratio for P(q)*S(q) 305 306 :return: the value of the volf ratio 307 308 """ 309 return self.model.calculate_VR() 310 262 311 def set_dispersion(self, parameter, dispersion): 263 312 """ -
sansmodels/src/sans/models/MultiplicationModel.py
rae4c139 r318b5bbb 36 36 self.p_model = p_model 37 37 self.s_model = s_model 38 38 self.magnetic_params = [] 39 39 ## dispersion 40 40 self._set_dispersion() … … 53 53 for item in self.p_model.orientation_params: 54 54 self.orientation_params.append(item) 55 55 for item in self.p_model.magnetic_params: 56 self.magnetic_params.append(item) 56 57 for item in self.s_model.orientation_params: 57 58 if not item in self.orientation_params: -
sansmodels/src/sans/models/media/model_functions.html
r657e52c r318b5bbb 7 7 <ul style="margin-top: 0in;" type="disc"> 8 8 <li style="line-height: 115%;"><a href="#Introduction"><strong>Introduction</strong></a></li> 9 <li style="line-height: 115%;"><a href="#Shapes"><strong>Shapes</strong></a>: <a href="#SphereModel">SphereModel </a>, <a href="#BinaryHSModel">BinaryHSModel</a>, <a href="#FuzzySphereModel">FuzzySphereModel</a>, <a href="#RaspBerryModel">RaspBerryModel</a>, <a href="#CoreShellModel">CoreShellModel</a>, <a href="#Core2ndMomentModel">Core2ndMomentModel</a>, <a href="#CoreMultiShellModel">CoreMultiShellModel</a>, <a href="#VesicleModel">VesicleModel</a>, <a href="#MultiShellModel">MultiShellModel</a>, <a href="#OnionExpShellModel">OnionExpShellModel</a>, <a href="#SphericalSLDModel">SphericalSLDModel</a>, <a href="#LinearPearlsModel">LinearPearlsModel</a>, <a href="#PearlNecklaceModel">PearlNecklaceModel</a> , <a href="#CylinderModel">CylinderModel</a>, <a href="#CoreShellCylinderModel">CoreShellCylinderModel</a>, <a href="#CoreShellBicelleModel">CoreShellBicelleModel</a>,<a href="#HollowCylinderModel">HollowCylinderModel</a>, <a href="#FlexibleCylinderModel">FlexibleCylinderModel</a>, <a href="#FlexibleCylinderModel">FlexCylEllipXModel</a>, <a href="#StackedDisksModel">StackedDisksModel</a>, <a href="#ParallelepipedModel">ParallelepipedModel</a>, <a href="#CSParallelepipedModel">CSParallelepipedModel</a>, <a href="#EllipticalCylinderModel">EllipticalCylinderModel</a>, <a href="#BarBellModel">BarBellModel</a>, <a href="#CappedCylinderModel">CappedCylinderModel</a>, <a href="#EllipsoidModel">EllipsoidModel</a>, <a href="#CoreShellEllipsoidModel">CoreShellEllipsoidModel</a>, <a href="#TriaxialEllipsoidModel">TriaxialEllipsoidModel</a>, <a href="#LamellarModel">LamellarModel</a>, <a href="#LamellarFFHGModel">LamellarFFHGModel</a>, <a href="#LamellarPSModel">LamellarPSModel</a>, <a href="#LamellarPSHGModel">LamellarPSHGModel</a>, <a href="#LamellarPCrystalModel">LamellarPCrystalModel</a>, <a href="#SCCrystalModel">SCCrystalModel</a>, <a href="#FCCrystalModel">FCCrystalModel</a>, <a href="#BCCrystalModel">BCCrystalModel</a>.</li>10 <li style="line-height: 115%;"><a href="#Shape-Independent"><strong>Shape-Independent</strong></a>: <a href="#Absolute%20Power_Law">AbsolutePower_Law</a>, <a href="#BEPolyelectrolyte">BEPolyelectrolyte</a>, <a href="#BroadPeakModel">BroadPeakModel,<span><span style="text-decoration: underline;"><span style="color: blue;">CorrLength</span></span></span><span>,</span></a> <a href="#DABModel">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="#StarPolymer">StarPolymer</a>, <a href="#Surface_Fractal">SurfaceFractalModel</a>, <a href="#TeubnerStreyModel">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>, <a href="#ReflectivityIIModel">ReflectivityIIModel</a>, <a href="#GelFitModel">GelFitModel</a>.</li>9 <li style="line-height: 115%;"><a href="#Shapes"><strong>Shapes</strong></a>: <a href="#SphereModel">SphereModel (Magnetic 2D Model)</a>, <a href="#BinaryHSModel">BinaryHSModel</a>, <a href="#FuzzySphereModel">FuzzySphereModel</a>, <a href="#RaspBerryModel">RaspBerryModel</a>, <a href="#CoreShellModel">CoreShellModel (Magnetic 2D Model)</a>, <a href="#Core2ndMomentModel">Core2ndMomentModel</a>, <a href="#CoreMultiShellModel">CoreMultiShellModel (Magnetic 2D Model)</a>, <a href="#VesicleModel">VesicleModel</a>, <a href="#MultiShellModel">MultiShellModel</a>, <a href="#OnionExpShellModel">OnionExpShellModel</a>, <a href="#SphericalSLDModel">SphericalSLDModel</a>, <a href="#LinearPearlsModel">LinearPearlsModel</a>, <a href="#PearlNecklaceModel">PearlNecklaceModel</a> , <a href="#CylinderModel">CylinderModel (Magnetic 2D Model)</a>, <a href="#CoreShellCylinderModel">CoreShellCylinderModel</a>, <a href="#CoreShellBicelleModel">CoreShellBicelleModel</a>,<a href="#HollowCylinderModel">HollowCylinderModel</a>, <a href="#FlexibleCylinderModel">FlexibleCylinderModel</a>, <a href="#FlexibleCylinderModel">FlexCylEllipXModel</a>, <a href="#StackedDisksModel">StackedDisksModel</a>, <a href="#ParallelepipedModel">ParallelepipedModel (Magnetic 2D Model)</a>, <a href="#CSParallelepipedModel">CSParallelepipedModel</a>, <a href="#EllipticalCylinderModel">EllipticalCylinderModel</a>, <a href="#BarBellModel">BarBellModel</a>, <a href="#CappedCylinderModel">CappedCylinderModel</a>, <a href="#EllipsoidModel">EllipsoidModel</a>, <a href="#CoreShellEllipsoidModel">CoreShellEllipsoidModel</a>, <a href="#TriaxialEllipsoidModel">TriaxialEllipsoidModel</a>, <a href="#LamellarModel">LamellarModel</a>, <a href="#LamellarFFHGModel">LamellarFFHGModel</a>, <a href="#LamellarPSModel">LamellarPSModel</a>, <a href="#LamellarPSHGModel">LamellarPSHGModel</a>, <a href="#LamellarPCrystalModel">LamellarPCrystalModel</a>, <a href="#SCCrystalModel">SCCrystalModel</a>, <a href="#FCCrystalModel">FCCrystalModel</a>, <a href="#BCCrystalModel">BCCrystalModel</a>.</li> 10 <li style="line-height: 115%;"><a href="#Shape-Independent"><strong>Shape-Independent</strong></a>: <a href="#Absolute%20Power_Law">AbsolutePower_Law</a>, <a href="#BEPolyelectrolyte">BEPolyelectrolyte</a>, <a href="#BroadPeakModel">BroadPeakModel,<span><span style="text-decoration: underline;"><span style="color: blue;">CorrLength</span></span></span><span>,</span></a> <a href="#DABModel">DABModel</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="#StarPolymer">StarPolymer</a>, <a href="#Surface_Fractal">SurfaceFractalModel</a>, <a href="#TeubnerStreyModel">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>, <a href="#ReflectivityIIModel">ReflectivityIIModel</a>, <a href="#GelFitModel">GelFitModel</a>.</li> 11 11 <li style="line-height: 115%;"><a href="#Model"><strong>Customized Models</strong></a>: <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> 12 12 <li style="line-height: 115%;"><a href="#Structure_Factors"><strong>Structure Factors</strong></a>: <a href="#HardsphereStructure">HardSphereStructure</a>, <a href="#SquareWellStructure">SquareWellStructure</a>, <a href="#HayterMSAStructure">HayterMSAStructure</a>, <a href="#StickyHSStructure">StickyHSStructure</a>.</li> … … 17 17 <p> Many of our models use the form factor calculations implemented in a c-library provided by the NIST Center for Neutron Research and thus some content and figures in this document are originated from or shared with the NIST Igor analysis package.</p> 18 18 <p style="margin-left: 0.25in; text-indent: -0.25in;"><strong><span style="font-size: 16pt;">2.</span></strong><strong><span style="font-size: 7pt;"> </span></strong><a name="Shapes"></a><strong><span style="font-size: 16pt;">Shapes (Scattering Intensity Models)</span></strong></p> 19 <p>This software provides form factors for various particle shapes. After giving a mathematical definition of each model, we draw the list of parameters available to the user. Validation plots for each model are also presented. Instructions on how to use the software is available with the source code , available from SVN:</p>20 <p style="text-indent: 0.25in;"><em>https://sansviewproject.svn.sourceforge.net/svnroot/sansviewproject/</em></p> 19 <p>This software provides form factors for various particle shapes. After giving a mathematical definition of each model, we draw the list of parameters available to the user. Validation plots for each model are also presented. Instructions on how to use the software is available with the source code.</p> 20 21 21 <p>To easily compare to the scattering intensity measured in experiments, we normalize the form factors by the volume of the particle:</p> 22 22 <p style="text-align: center;" align="center"><span style="position: relative; top: 12pt;"><img src="img/image001.PNG" alt="" /></span> </p> … … 27 27 <p>Our so-called 1D scattering intensity functions provide <em>P(q) </em>for the case where the scatterer is randomly oriented. In that case, the scattering intensity only depends on the length of q. The intensity measured on the plane of the SANS detector will have an azimuthal symmetry around <em>q</em>=0.</p> 28 28 <p>Our so-called 2D scattering intensity functions provide <em>P(q, </em><em><span style="font-family: 'Arial','sans-serif';">φ</span>)</em> for an oriented system as a function of a q-vector in the plane of the detector. We define the angle <span style="font-family: 'Arial','sans-serif';">φ</span> as the angle between the q vector and the horizontal (x) axis of the plane of the detector.</p> 29 <p style="margin-left: 0.55in; text-indent: -0.3in;"><strong><span style="font-size: 14pt;">2.1.</span></strong><strong><span style="font-size: 7pt;"> </span></strong><a name="SphereModel"></a><strong><span style="font-size: 14pt;">Sphere Model </span></strong></p>29 <p style="margin-left: 0.55in; text-indent: -0.3in;"><strong><span style="font-size: 14pt;">2.1.</span></strong><strong><span style="font-size: 7pt;"> </span></strong><a name="SphereModel"></a><strong><span style="font-size: 14pt;">Sphere Model (Magnetic 2D Model)</span></strong></p> 30 30 <p>This model provides the form factor, P(q), for a monodisperse spherical particle with uniform scattering length density. The form factor is normalized by the particle volume as described below.</p> 31 For magnetic scattering, please see the '<a href="polar_mag_help.html">Polarization/Magnetic Scattering</a>' in Fitting Help. 31 32 <p style="margin-left: 0.85in; text-indent: -0.35in;"><strong>1.1.</strong><strong><span style="font-size: 7pt;"> </span>Definition</strong></p> 32 33 <p>The 1D scattering intensity is calculated in the following way (Guinier, 1955):</p> … … 242 243 <p>where the amplitude A(q) is given as the typical sphere scattering convoluted with a Gaussian to get a gradual drop-off in the scattering length density:</p> 243 244 <p style="text-align: center;" align="center"><span style="position: relative; top: 18pt;"><img src="img/image011.PNG" alt="" /></span></p> 244 <br>245 245 <p>Here A2(q) is the form factor, P(q). The ‘scale’ is equivalent to the volume fraction of spheres, each of volume, V. Contrast (<em><span style="font-family: 'Arial','sans-serif';">Δ</span>ρ</em> ) is the difference of scattering length densities of the sphere and the surrounding solvent.</p> 246 246 <p>The poly-dispersion in radius and in fuzziness is provided.</p> … … 453 453 <p style="text-align: center;" align="center"> </p> 454 454 <p> </p> 455 <p style="margin-left: 0.55in; text-indent: -0.3in;"><strong><span style="font-size: 14pt;">2.5.</span></strong><strong><span style="font-size: 7pt;"> </span></strong><a name="CoreShellModel"></a><strong><span style="font-size: 14pt;">Core Shell (Sphere) Model </span></strong></p>455 <p style="margin-left: 0.55in; text-indent: -0.3in;"><strong><span style="font-size: 14pt;">2.5.</span></strong><strong><span style="font-size: 7pt;"> </span></strong><a name="CoreShellModel"></a><strong><span style="font-size: 14pt;">Core Shell (Sphere) Model (Magnetic 2D Model)</span></strong></p> 456 456 <p>This model provides the form factor, P(<em>q</em>), for a spherical particle with a core-shell structure. The form factor is normalized by the particle volume.</p> 457 For magnetic scattering, please see the '<a href="polar_mag_help.html">Polarization/Magnetic Scattering</a>' in Fitting Help. 457 458 <p style="margin-left: 0.85in; text-indent: -0.35in;"><strong>1.1.</strong><strong><span style="font-size: 7pt;"> </span>Definition</strong></p> 458 459 <p>The 1D scattering intensity is calculated in the following way (Guinier, 1955):</p> … … 686 687 <p> </p> 687 688 <p style="text-align: center; page-break-after: avoid;" align="center"><img style="width: 526px; height: 333px;" src="img/secongm_fig1.jpg" alt="core_scondmoment_1D_validation" /></p> 688 <p style="margin-left: 0.55in; text-indent: -0.3in;"><strong><span style="font-size: 14pt;">2.7.</span></strong><strong><span style="font-size: 7pt;"> </span></strong><a name="CoreMultiShellModel"></a><strong><span style="font-size: 14pt;">CoreMultiShell(Sphere)Model </span></strong></p>689 <p style="margin-left: 0.55in; text-indent: -0.3in;"><strong><span style="font-size: 14pt;">2.7.</span></strong><strong><span style="font-size: 7pt;"> </span></strong><a name="CoreMultiShellModel"></a><strong><span style="font-size: 14pt;">CoreMultiShell(Sphere)Model (Magnetic 2D Model)</span></strong></p> 689 690 <p>This model provides the scattering from spherical core with from 1 up to 4 shell structures. It has a core of a specified radius, with four shells. The SLDs of the core and each shell are individually specified. </p> 691 For magnetic scattering, please see the '<a href="polar_mag_help.html">Polarization/Magnetic Scattering</a>' in Fitting Help. 690 692 <p style="margin-left: 0.85in; text-indent: -0.35in;"><strong>1.1.</strong><strong><span style="font-size: 7pt;"> </span>Definition</strong></p> 691 693 <p>The returned value is scaled to units of [cm-1sr-1], absolute scale.</p> … … 1707 1709 <p><a name="PearlNecklaceModel"></a>R. Schweins and K. Huber, ‘Particle Scattering Factor of Pearl Necklace Chains’, Macromol. Symp., 211, 25-42, 2004.</p> 1708 1710 <p><a name="PearlNecklaceModel"></a> </p> 1709 <p style="margin-left: 0.55in; text-indent: -0.3in;"><a name="PearlNecklaceModel"></a><strong><span style="font-size: 14pt;">2.14.</span></strong><strong><span style="font-size: 7pt;"> </span></strong><a name="CylinderModel"></a><strong><span style="font-size: 14pt;">Cylinder Model </span></strong></p>1711 <p style="margin-left: 0.55in; text-indent: -0.3in;"><a name="PearlNecklaceModel"></a><strong><span style="font-size: 14pt;">2.14.</span></strong><strong><span style="font-size: 7pt;"> </span></strong><a name="CylinderModel"></a><strong><span style="font-size: 14pt;">Cylinder Model (Magnetic 2D Model)</span></strong></p> 1710 1712 <p>This model provides the form factor for a right circular cylinder with uniform scattering length density. The form factor is normalized by the particle volume.</p> 1713 For magnetic scattering, please see the '<a href="polar_mag_help.html">Polarization/Magnetic Scattering</a>' in Fitting Help. 1711 1714 <p style="margin-left: 0.85in; text-indent: -0.35in;"><strong>1.1.</strong><strong><span style="font-size: 7pt;"> </span>Definition</strong></p> 1712 1715 <p>The output of the 2D scattering intensity function for oriented cylinders is given by (Guinier, 1955):</p> … … 1715 1718 <p>where <span style="font-family: 'Arial','sans-serif';">α</span> is the angle between the axis of the cylinder and the q-vector, V is the volume of the cylinder, L is the length of the cylinder, r is the radius of the cylinder, and <em><span style="font-family: 'Arial','sans-serif';">Δ</span>ρ</em> (contrast) is the scattering length density difference between the scatterer and the solvent. J1 is the first order Bessel function.</p> 1716 1719 <p>To provide easy access to the orientation of the cylinder, we define the axis of the cylinder using two angles theta and phi. Those angles are defined on Figure 2.</p> 1717 <p style="text-align: center; page-break-after: avoid;" align="center"><img src="img/image061.jpg" alt="cylinderangles.gif" width="478" height="258" /></p> 1718 <p style="text-align: center;" align="center"><a name="_Ref173213915"></a><a name="_Ref173306040"></a>Figure 2a. Definition of the angles for oriented cylinders.</p> 1719 <p style="text-align: center;" align="center"><img src="img/image062.jpg" alt="cylinderangles2.gif" width="464" height="313" /></p> 1720 <p style="text-align: center;" align="center">Figure 2b. Examples of the angles for oriented cylinders against the detector plane.</p> 1720 <p style="text-align: center; page-break-after: avoid;" align="center"><img src="img/image061.jpg" /></p> 1721 <p style="text-align: center;" align="center"><a name="_Ref173213915"></a><a name="_Ref173306040"></a>Figure 2. Definition of the angles for oriented cylinders.</p> 1722 1723 <p style="text-align: center;" align="center"><img src="img/image062.jpg" alt="" width="379" height="256" /></p> 1724 <p style="text-align: center;" align="center">Figure. Examples of the angles for oriented pp against the detector plane.</p> 1725 1726 1721 1727 <p>For P*S: The 2nd virial coefficient of the cylinder is calculate based on the radius and length values, and used as the effective radius toward S(Q) when P(Q)*S(Q) is applied.</p> 1722 1728 <p>The returned value is scaled to units of [cm-1] and the parameters of the cylinder model are the following:</p> … … 1981 1987 <p style="text-align: center; page-break-after: avoid;" align="center"> </p> 1982 1988 <p><a name="_Ref173307204"></a>Figure 9: Comparison of the intensity for uniformly distributed core-shell cylinders calculated from our 2D model and the intensity from the NIST SANS analysis software. The parameters used were: Scale=1.0, Radius=20 Å, Thickness=10 Å, Length=400 Å, Core_sld=1e-6 Å -2, Shell_sld=4e-6 Å -2, Solvent_sld=1e-6 Å -2, and Background=0.0 cm -1.</p> 1989 1990 <p style="text-align: center; page-break-after: avoid;" align="center"><img src="img/image061.jpg" /></p> 1991 <p style="text-align: center;" align="center"><a name="_Ref173213915"></a><a name="_Ref173306040"></a>Figure. Definition of the angles for oriented core-shell cylinders.</p> 1992 <p style="text-align: center;" align="center"><img src="img/image062.jpg" alt="" width="379" height="256" /></p> 1993 <p style="text-align: center;" align="center">Figure. Examples of the angles for oriented pp against the detector plane.</p> 1994 1983 1995 <p style="margin-left: 0.55in; text-indent: -0.3in;"><strong><span style="font-size: 14pt;">2.16.</span></strong><strong><span style="font-size: 7pt;"> </span></strong><a name="CoreShellBicelleModel"></a><strong><span style="font-size: 14pt;">Core-Shell (Cylinder) Bicelle Model</span></strong></p> 1984 1996 <p>This model provides the form factor for a circular cylinder with a core-shell scattering length density profile. The form factor is normalized by the particle volume. This model is a more general case of <a href="#CoreShellCylinderModel">core-shell cylinder model </a> (see above and reference below) in that the parameters of the shell are separated into a face-shell and a rim-shell so that users can set different values of the thicknesses and slds. </p> … … 2127 2139 <p style="text-align: center;" align="center"><img id="cscylbicelle" style="width: 512px; height: 377px;" src="img/cscylbicelle_pic.jpg" alt="" /></p> 2128 2140 <p style="text-align: center;" align="center"><strong>Figure. 1D plot using the default values (w/200 data point).</strong></p> 2141 2142 2143 <p style="text-align: center; page-break-after: avoid;" align="center"><img src="img/image061.jpg" /></p> 2144 <p style="text-align: center;" align="center"><a name="_Ref173213915"></a><a name="_Ref173306040"></a>Figure. Definition of the angles for the 2145 oriented Core-Shell Cylinder Bicelle Model.</p> 2146 <p style="text-align: center;" align="center"><img src="img/image062.jpg" alt="" width="379" height="256" /></p> 2147 <p style="text-align: center;" align="center">Figure. Examples of the angles for oriented pp against the detector plane.</p> 2148 2149 2129 2150 <p> REFERENCE<br /> Feigin, L. A, and D. I. Svergun, "Structure Analysis by Small-Angle X-Ray and Neutron Scattering", Plenum Press, New York, (1987).</p> 2130 2151 <p style="margin-left: 0.55in; text-indent: -0.3in;"><strong><span style="font-size: 14pt;">2.17.</span></strong><strong><span style="font-size: 7pt;"> </span></strong><a name="HollowCylinderModel"></a><strong><span style="font-size: 14pt;">HollowCylinderModel</span></strong></p> … … 2237 2258 <p style="text-align: center;" align="center"><strong>Figure. 1D plot using the default values (w/1000 data point).</strong></p> 2238 2259 <p>Our model uses the form factor calculations implemented in a c-library provided by the NIST Center for Neutron Research (Kline, 2006).</p> 2260 2261 <p style="text-align: center; page-break-after: avoid;" align="center"><img src="img/image061.jpg" /></p> 2262 <p style="text-align: center;" align="center"><a name="_Ref173213915"></a><a name="_Ref173306040"></a>Figure. Definition of the angles for the 2263 oriented HollowCylinderModel.</p> 2264 <p style="text-align: center;" align="center"><img src="img/image062.jpg" alt="" width="379" height="256" /></p> 2265 <p style="text-align: center;" align="center">Figure. Examples of the angles for oriented pp against the detector plane.</p> 2266 2239 2267 <p>REFERENCE</p> 2240 2268 <p>Feigin, L. A, and D. I. Svergun, "Structure Analysis by Small-Angle X-Ray and Neutron Scattering", Plenum Press, New York, (1987).</p> … … 2341 2369 <p style="text-align: center;" align="center"><img id="Picture 228" src="img/image076.jpg" alt="" width="465" height="345" /></p> 2342 2370 <p style="text-align: center;" align="center"><strong>Figure. 1D plot using the default values (w/1000 data point).</strong></p> 2371 2343 2372 <p>Our model uses the form factor calculations implemented in a c-library provided by the NIST Center for Neutron Research (Kline, 2006):</p> 2344 2373 <p>From the reference, "Method 3 With Excluded Volume" is used. The model is a parametrization of simulations of a discrete representation of the worm-like chain model of Kratky and Porod applied in the pseudocontinuous limit. See equations (13,26-27) in the original reference for the details.</p> … … 2616 2645 <p style="text-align: center;" align="center"><img src="img/image085.jpg" alt="" width="451" height="334" /></p> 2617 2646 <p style="text-align: center;" align="center"><strong>Figure. 1D plot using the default values (w/1000 data point).</strong></p> 2618 <p style="text-align: center;" align="center"><img id="Picture 101" src="img/image086.jpg" alt="" width="377" height="215"/></p>2647 <p style="text-align: center;" align="center"><img id="Picture 101" src="img/image086.jpg" /></p> 2619 2648 <p style="text-align: center;" align="center">Figure. Examples of the angles for oriented stackeddisks against the detector plane.</p> 2649 2650 <p style="text-align: center;" align="center"><img src="img/image062.jpg" alt="" width="379" height="256" /></p> 2651 <p style="text-align: center;" align="center">Figure. Examples of the angles for oriented pp against the detector plane.</p> 2652 2653 2620 2654 <p>Our model uses the form factor calculations implemented in a c-library provided by the NIST Center for Neutron Research (Kline, 2006):</p> 2621 2655 <p>REFERENCE</p> … … 2623 2657 <p>Kratky, O. and Porod, G., J. Colloid Science, 4, 35, 1949.</p> 2624 2658 <p>Higgins, J.S. and Benoit, H.C., "Polymers and Neutron Scattering", Clarendon, Oxford, 1994.</p> 2625 <p style="margin-left: 0.55in; text-indent: -0.3in;"><strong><span style="font-size: 14pt;">2.21.</span></strong><strong><span style="font-size: 7pt;"> </span></strong><a name="ParallelepipedModel"></a><strong><span style="font-size: 14pt;">ParallelepipedModel </span></strong></p>2659 <p style="margin-left: 0.55in; text-indent: -0.3in;"><strong><span style="font-size: 14pt;">2.21.</span></strong><strong><span style="font-size: 7pt;"> </span></strong><a name="ParallelepipedModel"></a><strong><span style="font-size: 14pt;">ParallelepipedModel (Magnetic 2D Model) </span></strong></p> 2626 2660 <p>This model provides the form factor, P(<em>q</em>), for a rectangular cylinder (below) where the form factor is normalized by the volume of the cylinder. P(q) = scale*<f^2>/V+background where the volume V= ABC and the averaging < > is applied over all orientation for 1D. </p> 2661 For magnetic scattering, please see the '<a href="polar_mag_help.html">Polarization/Magnetic Scattering</a>' in Fitting Help. 2627 2662 <p><span style="font-size: 14pt;"> </span></p> 2628 2663 <p style="text-align: center;" align="center"><img src="img/image087.jpg" alt="" width="326" height="247" /></p> … … 2636 2671 <p>For P*S: The 2nd virial coefficient of the solid cylinder is calculate based on the averaged effective radius (= sqrt(short_a*short_b/pi)) and length( = long_c) values, and used as the effective radius toward S(Q) when P(Q)*S(Q) is applied.</p> 2637 2672 <p>To provide easy access to the orientation of the parallelepiped, we define the axis of the cylinder using two angles θ , <span style="font-family: 'Arial','sans-serif';">φ </span>and<span style="font-family: Symbol;">Y</span>. Similarly to the case of the cylinder, those angles, θ and <span style="font-family: 'Arial','sans-serif';">φ,</span> are defined on Figure 2 of CylinderModel. The angle <span style="font-family: Symbol;">Y </span>is the rotational angle around its own long_c axis against the q plane. For example, <span style="font-family: Symbol;">Y </span>= 0 when the short_b axis is parallel to the x-axis of the detector.</p> 2638 <p style="text-align: center;" align="center"><img src="img/image090.jpg" alt="" width="352" height="264"/></p>2673 <p style="text-align: center;" align="center"><img src="img/image090.jpg"/></p> 2639 2674 <p style="text-align: center;" align="center"><strong>Figure. Definition of angles for 2D</strong>.</p> 2640 2675 <p style="text-align: center;" align="center"><img src="img/image091.jpg" alt="" width="379" height="256" /></p> … … 2749 2784 <p>For P*S: The 2nd virial coefficient of this CSPP is calculate based on the averaged effective radius (= sqrt((short_a+2*rim_a)*(short_b+2*rim_b)/pi)) and length( = long_c+2*rim_c) values, and used as the effective radius toward S(Q) when P(Q)*S(Q) is applied.</p> 2750 2785 <p>To provide easy access to the orientation of the CSparallelepiped, we define the axis of the cylinder using two angles θ , <span style="font-family: 'Arial','sans-serif';">φ </span>and<span style="font-family: Symbol;">Y</span>. Similarly to the case of the cylinder, those angles, θ and <span style="font-family: 'Arial','sans-serif';">φ,</span> are defined on Figure 2 of CylinderModel. The angle <span style="font-family: Symbol;">Y </span>is the rotational angle around its own long_c axis against the q plane. For example, <span style="font-family: Symbol;">Y </span>= 0 when the short_b axis is parallel to the x-axis of the detector.</p> 2751 <p style="text-align: center;" align="center"><img id="Picture 102" src="img/image090.jpg" alt="" width="352" height="264"/></p>2786 <p style="text-align: center;" align="center"><img id="Picture 102" src="img/image090.jpg" /></p> 2752 2787 <p style="text-align: center;" align="center"><strong>Figure. Definition of angles for 2D</strong>.</p> 2753 2788 <p style="text-align: center;" align="center"><img id="Picture 103" src="img/image091.jpg" alt="" width="379" height="256" /></p> … … 2918 2953 <p style="text-align: center;" align="center"><img id="Picture 34" src="img/image097.jpg" alt="" width="451" height="339" /></p> 2919 2954 <p style="text-align: center;" align="center"><strong>Figure. 2D plot using the default values (w/(256X265) data points).</strong></p> 2955 2920 2956 <p>Our model uses the form factor calculations implemented in a c-library provided by the NIST Center for Neutron Research (Kline, 2006):</p> 2921 2957 <p> REFERENCE</p> … … 2940 2976 <p>To provide easy access to the orientation of the elliptical, we define the axis of the cylinder using two angles θ , <span style="font-family: 'Arial','sans-serif';">φ </span>and<span style="font-family: Symbol;">Y</span>. Similarly to the case of the cylinder, those angles, θ and <span style="font-family: 'Arial','sans-serif';">φ,</span> are defined on Figure 2 of CylinderModel. The angle <span style="font-family: Symbol;">Y </span>is the rotational angle around its own long_c axis against the q plane. For example, <span style="font-family: Symbol;">Y </span>= 0 when the r_minor axis is parallel to the x-axis of the detector.</p> 2941 2977 <p>All angle parameters are valid and given only for 2D calculation (Oriented system).</p> 2942 <p style="text-align: center;" align="center"><img id="Picture 105" src="img/image101.jpg" alt="" width="370" height="277"/></p>2978 <p style="text-align: center;" align="center"><img id="Picture 105" src="img/image101.jpg" /></p> 2943 2979 <p style="text-align: center;" align="center"><strong>Figure. Definition of angels for 2D</strong>.</p> 2944 <p style="text-align: center;" align="center"><img id="Picture 114" src="img/image0 91.jpg" alt="" width="379" height="256" /></p>2980 <p style="text-align: center;" align="center"><img id="Picture 114" src="img/image062.jpg" alt="" width="379" height="256" /></p> 2945 2981 <p style="text-align: center;" align="center"><span style="font-size: 12pt;">Figure. Examples of the angles for oriented elliptical cylinders </span></p> 2946 2982 <p style="text-align: center;" align="center"><span style="font-size: 12pt;">against the detector plane.</span></p> … … 3173 3209 <p style="text-align: center;" align="center"><img id="Picture 66" src="img/image111.jpg" alt="" width="425" height="346" /></p> 3174 3210 <p style="text-align: center;" align="center"><strong>Figure. 2D plot (w/(256X265) data points).</strong></p> 3211 3212 <p style="text-align: center; page-break-after: avoid;" align="center"><img src="img/image061.jpg" /></p> 3213 <p style="text-align: center;" align="center"><img src="img/image062.jpg" alt="" width="379" height="256" /></p> 3214 <p style="text-align: center;" align="center">Figure. Examples of the angles for oriented pp against the detector plane.</p> 3215 3216 3217 <p style="text-align: center;" align="center"><a name="_Ref173213915"></a><a name="_Ref173306040"></a>Figure. Definition of the angles for oriented 2D barbells.</p> 3218 3219 3175 3220 <p style="margin-left: 0.55in; text-indent: -0.3in;"><strong><span style="font-size: 14pt;">2.25.</span></strong><strong><span style="font-size: 7pt;"> </span></strong><a name="CappedCylinderModel"></a><strong><span style="font-size: 14pt;">CappedCylinder(/ConvexLens)Model</span></strong></p> 3176 3221 <p>Calculates the scattering from a cylinder with spherical section end-caps(This model simply becomes the ConvexLensModel when the length of the cylinder L = 0. That is, a sphereocylinder with end caps that have a radius larger than that of the cylinder and the center of the end cap radius lies within the cylinder. See the diagram for the details of the geometry and restrictions on parameter values.</p> … … 3295 3340 <p style="text-align: center;" align="center"><img id="Picture 71" src="img/image118.jpg" alt="" width="402" height="334" /></p> 3296 3341 <p style="text-align: center;" align="center"><strong>Figure. 2D plot (w/(256X265) data points).</strong></p> 3342 <p style="text-align: center; page-break-after: avoid;" align="center"><img src="img/image061.jpg" /></p> 3343 <p style="text-align: center;" align="center"><a name="_Ref173213915"></a><a name="_Ref173306040"></a>Figure. Definition of the angles for oriented 2D cylinders.</p> 3344 <p style="text-align: center;" align="center"><img src="img/image062.jpg" alt="" width="379" height="256" /></p> 3345 <p style="text-align: center;" align="center">Figure. Examples of the angles for oriented pp against the detector plane.</p> 3346 3347 3348 3297 3349 <p style="margin-left: 0.55in; text-indent: -0.3in;"><strong><span style="font-size: 14pt;">2.26.</span></strong><strong><span style="font-size: 7pt;"> </span></strong><a name="EllipsoidModel"></a><strong><span style="font-size: 14pt;">Ellipsoid Model</span></strong></p> 3298 3350 <p>This model provides the form factor for an ellipsoid (ellipsoid of revolution) with uniform scattering length density. The form factor is normalized by the particle volume.</p> … … 3414 3466 <p>The output of the 1D scattering intensity function for randomly oriented ellipsoids is then given by the equation above.</p> 3415 3467 <p>The <em>axis_theta</em> and axis<em>_phi</em> parameters are not used for the 1D output. Our implementation of the scattering kernel and the 1D scattering intensity use the c-library from NIST.</p> 3416 <p style="text-align: center;" align="center"><img src="img/image122.jpg" alt="" width="3 96" height="297"/></p>3417 <p style="text-align: center;" align="center"><span style="font-size: 12pt;">Figure. Examples of the angles for oriented ellipsoid </span></p>3418 <p style="text-align: center;" align="center"><span style="font-size: 12pt;">against the detector plane</span>.</p> 3468 <p style="text-align: center;" align="center"><img src="img/image122.jpg" alt="" width="379" height="256"/></p> 3469 <p style="text-align: center;" align="center"><span style="font-size: 12pt;">Figure. The angles for oriented ellipsoid </span></p> 3470 3419 3471 <p style="margin-left: 0.85in; text-indent: -0.35in;"><strong>2.1.</strong><strong><span style="font-size: 7pt;"> </span>Validation of the ellipsoid model</strong></p> 3420 3472 <p>Validation of our code was done by comparing the output of the 1D model to the output of the software provided by the NIST (Kline, 2006). Figure 5 shows a comparison of the 1D output of our model and the output of the NIST software.</p> … … 3558 3610 <p style="text-align: center;" align="center"><strong>Figure. 1D plot using the default values (w/1000 data point).</strong></p> 3559 3611 <p style="text-align: center;" align="center"><strong> </strong></p> 3560 <p style="text-align: center;" align="center"><img src="img/image122.jpg" alt="" width="3 96" height="297"/></p>3561 <p style="text-align: center;" align="center">Figure. Examples of the angles for oriented coreshellellipsoid against the detector plane where a =polar axis.</p>3612 <p style="text-align: center;" align="center"><img src="img/image122.jpg" alt="" width="379" height="256"/></p> 3613 <p style="text-align: center;" align="center">Figure. The angles for oriented coreshellellipsoid .</p> 3562 3614 <p>Our model uses the form factor calculations implemented in a c-library provided by the NIST Center for Neutron Research (Kline, 2006):</p> 3563 3615 <p>REFERENCE</p> … … 3674 3726 <p style="text-align: center;" align="center"><img src="img/image131.gif" alt="" width="438" height="272" /></p> 3675 3727 <p style="text-align: center;" align="center"><strong>Figure. Comparison between 1D and averaged 2D.</strong></p> 3676 <p style="text-align: center;" align="center"><img src="img/image132.jpg" alt="" width="3 96" height="297" /></p>3677 <p style="text-align: center;" align="center">Figure. Examples of the angles for oriented ellipsoid against the detector plane.</p>3728 <p style="text-align: center;" align="center"><img src="img/image132.jpg" alt="" width="379" height="256" /></p> 3729 <p style="text-align: center;" align="center">Figure. The angles for oriented ellipsoid.</p> 3678 3730 <p>Our model uses the form factor calculations implemented in a c-library provided by the NIST Center for Neutron Research (Kline, 2006):</p> 3679 3731 <p>REFERENCE</p> … … 4368 4420 <p style="text-align: center;" align="center"><strong>Figure. 1D plot in the linear scale using the default values (w/200 data point).</strong></p> 4369 4421 <p> The 2D (Anisotropic model) is based on the reference (above) which I(q) is approximated for 1d scattering. Thus the scattering pattern for 2D may not be accurate. Note that we are not responsible for any incorrectness of the 2D model computation.</p> 4370 <p style="text-align: center;" align="center"><img id="Object 23" src="img/image156. gif" alt="" width="304" height="321" /></p>4422 <p style="text-align: center;" align="center"><img id="Object 23" src="img/image156.jpg" /></p> 4371 4423 <p style="text-align: center;" align="center"> </p> 4372 4424 <p> </p> … … 4493 4545 <p style="text-align: center;" align="center"><strong>Figure. 1D plot in the linear scale using the default values (w/200 data point).</strong></p> 4494 4546 <p> The 2D (Anisotropic model) is based on the reference (above) in which I(q) is approximated for 1d scattering. Thus the scattering pattern for 2D may not be accurate. Note that we are not responsible for any incorrectness of the 2D model computation.</p> 4495 <p style="text-align: center;" align="center"><img src="img/image165.gif" alt="" width="304" height="321"/></p>4547 <p style="text-align: center;" align="center"><img src="img/image165.gif" /></p> 4496 4548 <p style="text-align: center;" align="center"> </p> 4497 4549 <p> </p> … … 4617 4669 <p style="text-align: center;" align="center"><strong>Figure. 1D plot in the linear scale using the default values (w/200 data point).</strong></p> 4618 4670 <p> The 2D (Anisotropic model) is based on the reference (1987) in which I(q) is approximated for 1d scattering. Thus the scattering pattern for 2D may not be accurate. Note that we are not responsible for any incorrectness of the 2D model computation.</p> 4619 <p style="text-align: center;" align="center"><img id="Object 31" src="img/image165.gif" alt="" width="304" height="321"/></p>4671 <p style="text-align: center;" align="center"><img id="Object 31" src="img/image165.gif" /></p> 4620 4672 <p style="text-align: center;" align="center"> </p> 4621 4673 <p> </p> -
sansmodels/src/sans/models/media/pd_help.html
r17574ae r318b5bbb 1 <html>2 3 1 <head> 4 2 <meta http-equiv=Content-Type content="text/html; charset=windows-1252"> … … 29 27 style='font-family:"Times New Roman","serif"'>The following five distribution 30 28 functions are provided;</span></p> 31 <p> </p>32 29 <ul> 33 30 <li><a href="#Rectangular">Rectangular distribution</a></li> … … 38 35 </ul> 39 36 <p> </p> 40 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 41 style='font-family:"Times New Roman","serif"'> </span></p> 37 <p><a name="Rectangular"><h4>Rectangular distribution</a></h4></p> 38 <p><img src="./img/pd_image001.png"></p> 39 <p> </p> 40 <p>The x<sub>mean</sub> is the mean 41 of the distribution, w is the half-width, and Norm is a normalization factor 42 which is determined during the numerical calculation. Note that the Sigma and 43 the half width <i>w</i> are different.</p> 44 <p>The standard deviation is </p> 45 <p><img src="./img/pd_image002.png"></p> 46 <p> </p> 47 <p>The PD (polydispersity) is </p> 48 <p><img src="./img/pd_image003.png"></p> 49 <p> </p> 50 <p><img width=511 height=270 51 id="Picture 1" src="./img/pd_image004.jpg" alt=flat.gif></p> 52 <p> </p> 53 <p> </p> 54 <p><a name="Array"><h4>Array distribution</h4></a></p> 42 55 43 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 44 style='font-family:"Times New Roman","serif"'> </span></p> 56 <p>This distribution is to be given 57 by users as a txt file where the array should be defined by two columns in the 58 order of x and f(x) values. The f(x) will be normalized by SansView during the 59 computation.</p> 45 60 46 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 47 style='font-family:"Times New Roman","serif"'><a name="Rectangular"><h4>Rectangular distribution</a></h4></span></p> 61 <p>Example of an array in the file;</p> 48 62 49 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 50 style='font-family:"Times New Roman","serif";position:relative;top:22.0pt'><img 51 width=248 height=67 src="./img/pd_image001.png"></span></p> 63 <p>30 0.1</p> 64 65 <p>32 0.3</p> 66 67 <p>35 0.4</p> 68 69 <p>36 0.5</p> 70 71 <p>37 0.6</p> 72 73 <p>39 0.7</p> 74 75 <p>41 0.9</p> 76 77 <p'> </p> 78 79 <p>We use only these array values in 80 the computation, therefore the mean value given in the control panel, for 81 example radius = 60, will be ignored.</p> 82 <p> </p> 83 84 85 <p><a name="Gaussian"><h4>Gaussian distribution</h4></a></p> 86 <p> </p> 87 88 <p><img src="./img/pd_image005.png"></p> 52 89 53 90 <p> </p> 54 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span55 style='font-family:"Times New Roman","serif"'>The x<sub>mean</sub> is the mean56 of the distribution, w is the half-width, and Norm is a normalization factor57 which is determined during the numerical calculation. Note that the Sigma and58 the half width <i>w</i> are different.</span></p>59 91 60 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 61 style='font-family:"Times New Roman","serif"'>The standard deviation is </span></p> 92 <p>The x<sub>mean</sub> is the mean 93 of the distribution and Norm is a normalization factor which is determined 94 during the numerical calculation.</p> 62 95 63 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 64 style='font-family:"Times New Roman","serif";position:relative;top:4.0pt'><img 65 width=72 height=24 src="./img/pd_image002.png"></span><span 66 style='font-family:"Times New Roman","serif"'>. </span></p> 96 <p> </p> 67 97 68 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 69 style='font-family:"Times New Roman","serif"'> </span></p> 98 <p>The PD (polydispersity) is </p> 70 99 71 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 72 style='font-family:"Times New Roman","serif"'>The PD (polydispersity) is </span></p> 100 <p><img src="./img/pd_image003.png"></p> 73 101 74 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 75 style='font-family:"Times New Roman","serif";position:relative;top:6.0pt'><img 76 width=93 height=24 src="./img/pd_image003.png"></span><span 77 style='font-family:"Times New Roman","serif"'>.</span></p> 102 <p> </p> 78 103 79 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span80 style='font-family:"Times New Roman","serif"'> </span></p>104 <p><img width=518 height=275 105 id="Picture 2" src="./img/pd_image006.jpg" alt=gauss.gif></p> 81 106 82 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 83 style='font-family:"Times New Roman","serif"'><img width=511 height=270 84 id="Picture 1" src="./img/pd_image004.jpg" alt=flat.gif></span></p> 107 <p> </p> 85 108 86 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 87 style='font-family:"Times New Roman","serif"'> </span></p> 109 <p><a name="Lognormal"><h4>Lognormal distribution</h4></a></p> 88 110 89 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 90 style='font-family:"Times New Roman","serif"'> </span></p> 111 <p> </p> 91 112 92 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 93 style='font-family:"Times New Roman","serif"'><a name="Array"><h4>Array distribution</h4></a></span></p> 113 <p><img src="./img/pd_image007.png"></p> 94 114 95 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 96 style='font-family:"Times New Roman","serif"'> </span></p> 115 <p> </p> 97 116 98 99 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 100 style='font-family:"Times New Roman","serif"'>This distribution is to be given 101 by users as a txt file where the array should be defined by two columns in the 102 order of x and f(x) values. The f(x) will be normalized by SansView during the 103 computation.</span></p> 104 105 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 106 style='font-family:"Times New Roman","serif"'> </span></p> 107 108 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 109 style='font-family:"Times New Roman","serif"'>Example of an array in the file;</span></p> 110 111 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 112 style='font-family:"Times New Roman","serif"'> </span></p> 113 114 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 115 style='font-family:"Times New Roman","serif"'>30 0.1</span></p> 116 117 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 118 style='font-family:"Times New Roman","serif"'>32 0.3</span></p> 119 120 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 121 style='font-family:"Times New Roman","serif"'>35 0.4</span></p> 122 123 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 124 style='font-family:"Times New Roman","serif"'>36 0.5</span></p> 125 126 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 127 style='font-family:"Times New Roman","serif"'>37 0.6</span></p> 128 129 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 130 style='font-family:"Times New Roman","serif"'>39 0.7</span></p> 131 132 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 133 style='font-family:"Times New Roman","serif"'>41 0.9</span></p> 134 135 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 136 style='font-family:"Times New Roman","serif"'> </span></p> 137 138 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 139 style='font-family:"Times New Roman","serif"'>We use only these array values in 140 the computation, therefore the mean value given in the control panel, for 141 example radius = 60, will be ignored.</span></p> 142 143 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 144 style='font-family:"Times New Roman","serif"'> </span></p> 145 146 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 147 style='font-family:"Times New Roman","serif"'> </span></p> 148 149 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 150 style='font-family:"Times New Roman","serif"'><a name="Gaussian"><h4>Gaussian distribution</h4></a></span></p> 151 152 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 153 style='font-family:"Times New Roman","serif"'> </span></p> 154 155 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 156 style='font-family:"Times New Roman","serif";position:relative;top:12.0pt'><img 157 width=212 height=44 src="./img/pd_image005.png"></span></p> 158 159 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 160 style='font-family:"Times New Roman","serif"'> </span></p> 161 162 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 163 style='font-family:"Times New Roman","serif"'>The x<sub>mean</sub> is the mean 164 of the distribution and Norm is a normalization factor which is determined 165 during the numerical calculation.</span></p> 166 167 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 168 style='font-family:"Times New Roman","serif"'> </span></p> 169 170 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 171 style='font-family:"Times New Roman","serif"'>The PD (polydispersity) is </span></p> 172 173 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 174 style='font-family:"Times New Roman","serif";position:relative;top:6.0pt'><img 175 width=93 height=24 src="./img/pd_image003.png"></span><span 176 style='font-family:"Times New Roman","serif"'>.</span></p> 177 178 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 179 style='font-family:"Times New Roman","serif"'> </span></p> 180 181 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 182 style='font-family:"Times New Roman","serif"'><img width=518 height=275 183 id="Picture 2" src="./img/pd_image006.jpg" alt=gauss.gif></span></p> 184 185 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 186 style='font-family:"Times New Roman","serif"'> </span></p> 187 188 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 189 style='font-family:"Times New Roman","serif"'> </span></p> 190 191 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 192 style='font-family:"Times New Roman","serif"'><a name="Lognormal"><h4>Lognormal distribution</h4></a></span></p> 193 194 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 195 style='font-family:"Times New Roman","serif"'> </span></p> 196 197 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 198 style='font-family:"Times New Roman","serif"'> </span></p> 199 200 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 201 style='font-family:"Times New Roman","serif";position:relative;top:14.0pt'><img 202 width=236 height=47 src="./img/pd_image007.png"></span></p> 203 204 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 205 style='font-family:"Times New Roman","serif"'> </span></p> 206 207 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 208 style='font-family:"Times New Roman","serif"'>The mu = ln(x<sub>med</sub>), x<sub>med</sub> 117 <p>The μ = ln(x<sub>med</sub>), x<sub>med</sub> 209 118 is the median value of the distribution, and Norm is a normalization factor 210 119 which will be determined during the numerical calculation. The median value is 211 120 the value given in the size parameter in the control panel, for example, 212 radius = 60.</ span></p>121 radius = 60.</p> 213 122 214 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 215 style='font-family:"Times New Roman","serif"'> </span></p> 123 <p > </p> 216 124 217 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 218 style='font-family:"Times New Roman","serif"'>The PD (polydispersity) is given 219 by sigma,</span></p> 125 <p>The PD (polydispersity) is given 126 by σ,</p> 220 127 221 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 222 style='font-family:"Times New Roman","serif";position:relative;top:5.0pt'><img 223 width=55 height=21 src="./img/pd_image008.png"></span><span 224 style='font-family:"Times New Roman","serif"'>.</span></p> 128 <p><img src="./img/pd_image008.png"></p> 225 129 226 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 227 style='font-family:"Times New Roman","serif"'> </span></p> 130 <p> </p> 228 131 229 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 230 style='font-family:"Times New Roman","serif"'>For the angular distribution,</span></p> 132 <p>For the angular distribution,</p> 231 133 232 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 233 style='font-family:"Times New Roman","serif";position:relative;top:6.0pt'><img 234 width=76 height=24 src="./img/pd_image009.png"></span></p> 134 <p><img src="./img/pd_image009.png"></p> 235 135 236 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 237 style='font-family:"Times New Roman","serif"'> </span></p> 136 <p> </p> 238 137 239 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 240 style='font-family:"Times New Roman","serif"'>The mean value is given by x<sub>mean</sub> 241 =exp(mu+p^2/2).</span></p> 138 <p>The mean value is given by x<sub>mean</sub> 139 =exp(μ+p<sup>2</sup>/2).</p> 242 140 243 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 244 style='font-family:"Times New Roman","serif"'>The peak value is given by x<sub>peak</sub>=exp(mu-p^2).</span></p> 141 <p>The peak value is given by x<sub>peak</sub>=exp(μ-p<sup>2</sup>).</span></p> 245 142 246 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 247 style='font-family:"Times New Roman","serif"'> </span></p> 143 <p> </p> 248 144 249 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 250 style='font-family:"Times New Roman","serif"'><img width=450 height=239 251 id="Picture 7" src="./img/pd_image010.jpg" alt=lognormal.gif></span></p> 145 <p><img width=450 height=239 146 id="Picture 7" src="./img/pd_image010.jpg" alt=lognormal.gif></p> 252 147 253 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 254 style='font-family:"Times New Roman","serif"'> </span></p> 148 <p> </p> 255 149 256 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 257 style='font-family:"Times New Roman","serif"'>This distribution function 150 <p>This distribution function 258 151 spreads more and the peak shifts to the left as the p increases, requiring 259 higher values of Nsigmas and Npts.</ span></p>152 higher values of Nsigmas and Npts.</p> 260 153 261 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 262 style='font-family:"Times New Roman","serif"'> </span></p> 154 <p> </p> 263 155 264 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 265 style='font-family:"Times New Roman","serif"'> </span></p> 156 <p><a name="Schulz"><h4>Schulz distribution</h4></a></p> 266 157 267 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 268 style='font-family:"Times New Roman","serif"'><a name="Schulz"><h4>Schulz distribution</h4></a></span></p> 158 <p> </p> 269 159 270 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 271 style='font-family:"Times New Roman","serif"'> </span></p> 160 <p><img src="./img/pd_image011.png"></p> 272 161 273 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 274 style='font-family:"Times New Roman","serif";position:relative;top:15.0pt'><img 275 width=347 height=45 src="./img/pd_image011.png"></span></p> 162 <p> </p> 276 163 277 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 278 style='font-family:"Times New Roman","serif"'> </span></p> 164 <p>The x<sub>mean</sub> is the mean 165 of the distribution and Norm is a normalization factor which is determined 166 during the numerical calculation. </p> 279 167 280 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 281 style='font-family:"Times New Roman","serif"'>The x<sub>mean</sub> is the mean 282 of the distribution and Norm is a normalization factor which is determined 283 during the numerical calculation. </span></p> 168 <p>The z = 1/p<sup>2</sup> 1.</p> 169 <p> </p> 284 170 285 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 286 style='font-family:"Times New Roman","serif"'>The z = 1/p^2 1.</span></p> 287 288 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 289 style='font-family:"Times New Roman","serif"'> </span></p> 290 291 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 292 style='font-family:"Times New Roman","serif"'>The PD (polydispersity) is </span></p> 293 294 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 295 style='font-family:"Times New Roman","serif";position:relative;top:6.0pt'><img 296 width=80 height=24 src="./img/pd_image012.png"></span><span 297 style='font-family:"Times New Roman","serif"'>.</span></p> 298 <p/> 299 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 300 style='font-family:"Times New Roman","serif"'>Note that the higher PD (polydispersity) 171 <p>The PD (polydispersity) is </p> 172 <p'><img src="./img/pd_image012.png"></p> 173 <p>Note that the higher PD (polydispersity) 301 174 might need higher values of Npts and Nsigmas. For example, at PD = 0.7 and radisus = 60 A, 302 Npts >= 160, and Nsigmas >= 15 at least.</ span></p>175 Npts >= 160, and Nsigmas >= 15 at least.</p> 303 176 <p/> 304 <p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span 305 style='font-family:"Times New Roman","serif"'><img width=438 height=232 306 id="Picture 4" src="./img/pd_image013.jpg" alt=schulz.gif></span></p> 177 <p><img width=438 height=232 178 id="Picture 4" src="./img/pd_image013.jpg" alt=schulz.gif></p> 307 179 308 180 </div> 309 181 <br> 310 182 </body> 311 312 </html> -
sansmodels/src/sans/models/media/smear_computation.html
r17574ae r318b5bbb 1 <html>2 1 3 2 <head> … … 30 29 smeared scattering intensity for SANS is defined by</span></p> 31 30 32 <p class=MsoNormal><img width=349 height=4931 <p class=MsoNormal><img 33 32 src="./img/sm_image002.gif" align=left hspace=12></p> 34 33 35 34 <p class=MsoNormal><span style='font-family:"Times New Roman","serif"'> 36 1)</span><br clear=all>35 ---- 1)</span><br clear=all> 37 36 <span style='font-family:"Times New Roman","serif"'>where Norm = <span 38 style='position:relative;top:15.0pt'><img width=137 height=4937 style='position:relative;top:15.0pt'><img 39 38 src="./img/sm_image003.gif"></span>.</span></p> 40 39 <br> 41 40 <p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>The 42 functions <span style='position:relative;top:6.0pt'><img width=43 height=2543 src="./img/sm_image004.gif"></span> and <span style='position:44 relative;top:6.0pt'><img width=43 height=2545 src="./img/sm_image005.gif"></span> refer to the slit width weighting41 functions <span style='position:relative;top:6.0pt'><img 42 src="./img/sm_image004.gif"></span> and <span style='position: 43 relative;top:6.0pt'><img 44 src="./img/sm_image005.gif"></span> refer to the slit width weighting 46 45 function and the slit height weighting determined at the q point, respectively. 47 46 Here, we assumes that the weighting function is described by a rectangular 48 47 function, i.e.,</span></p> 49 48 50 <p class=MsoNormal><span style='position:relative;top:7.0pt'><img width=13451 height=26src="./img/sm_image006.gif">49 <p class=MsoNormal><span style='position:relative;top:7.0pt'><img 50 src="./img/sm_image006.gif"> 52 51 </span><span style='font-family:"Times New Roman","serif";position:relative; 53 top:7.0pt'> 2)</span></p>52 top:7.0pt'> ---- 2)</span></p> 54 53 55 54 <p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>and </span></p> 56 55 57 <p class=MsoNormal><span style='position:relative;top:7.0pt'><img width=136 58 height=26 src="./img/sm_image007.gif"></span>, 59 <span style='font-family:"Times New Roman","serif"'>3)</span></p> 60 61 <p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>so that </span><span 62 style='position:relative;top:6.0pt'><img width=58 height=23 63 src="./img/sm_image008.gif"></span> <span style='position:relative; 64 top:16.0pt'><img width=76 height=51 src="./img/sm_image009.gif"></span> <span 65 style='font-family:"Times New Roman","serif"'>for</span> <span 66 style='position:relative;top:3.0pt'><img width=40 height=15 67 src="./img/sm_image010.gif"></span> <span style='font-family: 68 "Times New Roman","serif"'>and <i>u</i>. The </span><span style='position:relative; 69 top:6.0pt'><img width=28 height=24 src="./img/sm_image011.gif"></span> <span 70 style='font-family:"Times New Roman","serif"'>and </span><span 71 style='position:relative;top:6.0pt'><img width=28 height=24 72 src="./img/sm_image012.gif"> </span><span style='font-family: 73 "Times New Roman","serif"'>stand for the slit height (FWHM/2) and the slit 56 <p class=MsoNormal><span style='position:relative;top:7.0pt'><img 57 src="./img/sm_image007.gif"></span>, 58 <span style='font-family:"Times New Roman","serif"'> ---- 3)</span></p> 59 60 <p>so that <img 61 src="./img/sm_image008.gif"> <img src="./img/sm_image009.gif"> for <img 62 src="./img/sm_image010.gif"> and <i>u</i>. The <img src="./img/sm_image011.gif"> 63 and <img src="./img/sm_image012.gif"> stand for the slit height (FWHM/2) and the slit 74 64 width (FWHM/2) in the q space. Now the integral of Eq. (1) is simplified to</span></p> 75 65 76 <p class=MsoNormal><img width=283 height=5266 <p class=MsoNormal><img 77 67 src="./img/sm_image013.gif" align=left hspace=12><span 78 68 style='font-family:"Times New Roman","serif"'> 79 4)</span></p>69 ---- 4)</span></p> 80 70 81 71 <p class=MsoNormal><span style='font-family:"Times New Roman","serif"; … … 89 79 style='font-family:"Times New Roman","serif"'>1)<span style='font:7.0pt "Times New Roman"'> 90 80 </span></span><span style='font-family:"Times New Roman","serif"'>For </span><span 91 style='position:relative;top:6.0pt'><img width=28 height=2492 src="./img/sm_image01 4.gif"></span>= 0 <span style='font-family:81 style='position:relative;top:6.0pt'><img 82 src="./img/sm_image012.gif"></span>= 0 <span style='font-family: 93 83 "Times New Roman","serif"'>and </span><span style='position:relative; 94 top:6.0pt'><img width=28 height=24 src="./img/sm_image015.gif"></span> =84 top:6.0pt'><img src="./img/sm_image011.gif"></span> = 95 85 <span style='font-family:"Times New Roman","serif"'>constant:</span></p> 96 86 97 <p class=MsoListParagraphCxSpMiddle style='margin-left:.25in'>87 <p> 98 88 <img src="./img/sm_image016.gif"></p> 99 89 100 <p class=MsoListParagraphCxSpMiddle style='margin-left:.25in'><span 101 style='font-family:"Times New Roman","serif"'>For discrete q values, at the q 90 <p> For discrete q values, at the q 102 91 values from the data points and at the q values extended up to q<sub>N</sub>= 103 q<sub>i</sub> + </span><span style='position:relative;top:6.0pt'><img width=28 104 height=24 src="./img/sm_image011.gif"></span><span 105 style='font-family:"Times New Roman","serif"'>, the smeared intensity can be 106 calculated approximately,</span></p> 107 108 <p class=MsoListParagraphCxSpMiddle style='margin-left:.25in'><img 92 q<sub>i</sub> + <img src="./img/sm_image011.gif"> , the smeared intensity can be 93 calculated approximately, </p> 94 95 <p><img 109 96 src="./img/sm_image017.gif">. 110 <span style='font-family:"Times New Roman","serif"'>5)</span></p>111 112 <p class=MsoListParagraphCxSpMiddle style='margin-left:.25in'><span 113 style='position:relative;top:7.0pt'><img width=23 height=2597 ---- 5)</p> 98 99 <p class=MsoListParagraphCxSpMiddle style='margin-left:.25in'><span 100 style='position:relative;top:7.0pt'><img 114 101 src="./img/sm_image018.gif"></span> <span style='font-family: 115 102 "Times New Roman","serif"'>= 0 for <i>I<sub>s</sub></i> in</span> <i><span … … 123 110 style='font-family:"Times New Roman","serif"'>2)<span style='font:7.0pt "Times New Roman"'> 124 111 </span></span><span style='font-family:"Times New Roman","serif"'>For </span><span 125 style='position:relative;top:6.0pt'><img width=28 height=24126 src="./img/sm_image01 4.gif"></span>= <span style='font-family:112 style='position:relative;top:6.0pt'><img 113 src="./img/sm_image012.gif"></span>= <span style='font-family: 127 114 "Times New Roman","serif"'>constant </span> <span style='font-family:"Times New Roman","serif"'>and 128 </span><span style='position:relative;top:6.0pt'><img width=28 height=24129 src="./img/sm_image01 5.gif"></span> = <span style='font-family:115 </span><span style='position:relative;top:6.0pt'><img 116 src="./img/sm_image011.gif"></span> = <span style='font-family: 130 117 "Times New Roman","serif"'>0:</span></p> 131 118 … … 135 122 <p class=MsoListParagraphCxSpMiddle style='margin-left:.25in'> 136 123 <img src="./img/sm_image019.gif"> 137 <span style='font-family:"Times New Roman","serif"'> 6)</span></p>124 <span style='font-family:"Times New Roman","serif"'> ---- 6)</span></p> 138 125 139 126 <p class=MsoListParagraphCxSpMiddle style='margin-left:.25in'><span 140 127 style='font-family:"Times New Roman","serif"'>for q<sub>p</sub> = q<sub>i</sub> 141 - </span><span style='position:relative;top:6.0pt'><img width=28 height=24128 - </span><span style='position:relative;top:6.0pt'><img 142 129 src="./img/sm_image012.gif"></span><span style='font-family: 143 130 "Times New Roman","serif"'> and</span> <span style='font-family:"Times New Roman","serif"'>q<sub>N</sub> 144 131 = q<sub>i</sub> + </span><span style='position:relative;top:6.0pt'><img 145 width=28 height=24src="./img/sm_image012.gif"></span>. <span146 style='position:relative;top:7.0pt'><img width=23 height=25132 src="./img/sm_image012.gif"></span>. <span 133 style='position:relative;top:7.0pt'><img 147 134 src="./img/sm_image018.gif"></span> <span style='font-family: 148 135 "Times New Roman","serif"'>= 0 for <i>I<sub>s</sub></i> in</span> <i><span … … 155 142 style='font-family:"Times New Roman","serif"'>3)<span style='font:7.0pt "Times New Roman"'> 156 143 </span></span><span style='font-family:"Times New Roman","serif"'>For </span><span 157 style='position:relative;top:6.0pt'><img width=28 height=24158 src="./img/sm_image01 4.gif"></span>= <span style='font-family:144 style='position:relative;top:6.0pt'><img 145 src="./img/sm_image011.gif"></span>= <span style='font-family: 159 146 "Times New Roman","serif"'>constant </span> <span style='font-family:"Times New Roman","serif"'>and 160 </span><span style='position:relative;top:6.0pt'><img width=28 height=24161 src="./img/sm_image01 5.gif"></span> = <span style='font-family:147 </span><span style='position:relative;top:6.0pt'><img 148 src="./img/sm_image011.gif"></span> = <span style='font-family: 162 149 "Times New Roman","serif"'>constant:</span></p> 163 150 … … 177 164 <p class=MsoListParagraphCxSpMiddle style='margin-left:.25in'> 178 165 <img src="./img/sm_image020.gif"> <span style='font-family: 179 "Times New Roman","serif"'> (7)</span></p>166 "Times New Roman","serif"'> ---- (7)</span></p> 180 167 181 168 <p class=MsoListParagraphCxSpMiddle style='margin-left:.25in'><span 182 169 style='font-family:"Times New Roman","serif"'>for q<sub>p</sub> = q<sub>i</sub> 183 - </span><span style='position:relative;top:6.0pt'><img width=28 height=24170 - </span><span style='position:relative;top:6.0pt'><img 184 171 src="./img/sm_image012.gif"></span><span style='font-family: 185 172 "Times New Roman","serif"'> and</span> <span style='font-family:"Times New Roman","serif"'>q<sub>N</sub> 186 173 = q<sub>i</sub> + </span><span style='position:relative;top:6.0pt'><img 187 width=28 height=24src="./img/sm_image012.gif"></span>. <span188 style='position:relative;top:7.0pt'><img width=23 height=25174 src="./img/sm_image012.gif"></span>. <span 175 style='position:relative;top:7.0pt'><img 189 176 src="./img/sm_image018.gif"></span> <span style='font-family: 190 177 "Times New Roman","serif"'>= 0 for <i>I<sub>s</sub></i> in</span> <i><span … … 207 194 208 195 <p class=MsoNormal><img src="./img/sm_image021.gif"><span 209 style='font-family:"Times New Roman","serif"'> 196 style='font-family:"Times New Roman","serif"'> ---- (8)</span></p> 210 197 211 198 <p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>For all … … 228 215 229 216 <p class=MsoNormal><img src="./img/sm_image022.gif"><span 230 style='font-family:"Times New Roman","serif"'> 217 style='font-family:"Times New Roman","serif"'> ---- (9)</span></p> 231 218 232 219 <p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>In Eq 233 (9), x<sub>0</sub> = qcos</span><span style='font-family:Symbol'>(theta)</span><span 234 style='font-family:"Times New Roman","serif"'> and y<sub>0</sub>=qsin</span><span 235 style='font-family:Symbol'>(theta)</span><span style='font-family:"Times New Roman","serif"'> 236 , and the primed axes are in the coordinate rotated by an angle </span><span 237 style='font-family:Symbol'>theta</span><span style='font-family:"Times New Roman","serif"'> 238 around z-axis (below) so that x<sub>0</sub> = x<sub>0</sub>cos</span><span 239 style='font-family:Symbol'>(theta) + </span><span style='font-family:"Times New Roman","serif"'>y<sub>0</sub> 240 sin</span><span style='font-family:Symbol'>(theta) </span><span style='font-family: 241 "Times New Roman","serif"'>and y<sub>0</sub> = -x<sub>0</sub>sin</span><span 242 style='font-family:Symbol'>(theta) + </span><span style='font-family:"Times New Roman","serif"'>y<sub>0</sub> 243 cos</span><span style='font-family:Symbol'>(theta) .</span><span style='font-family: 220 (9), x<sub>0</sub> = qcosθ</span><span 221 style='font-family:"Times New Roman","serif"'> and y<sub>0</sub> = qsinθ</span><span style='font-family:"Times New Roman","serif"'> 222 , and the primed axes are in the coordinate rotated by an angle θ</span><span style='font-family:"Times New Roman","serif"'> 223 around z-axis (below) so that x<sub>0</sub> = x<sub>0</sub>cosθ + </span><span style='font-family:"Times New Roman","serif"'>y<sub>0</sub> 224 sinθ </span><span style='font-family: 225 "Times New Roman","serif"'>and y<sub>0</sub> = -x<sub>0</sub>sinθ + </span><span style='font-family:"Times New Roman","serif"'>y<sub>0</sub> 226 cosθ.</span><span style='font-family: 244 227 "Times New Roman","serif"'> Note that the rotation angle is zero for x-y 245 symmetric elliptical Gaussian distribution</span> <span style='font-family:Symbol'>.246 < /span><span style='font-family:"Times New Roman","serif"'>The A is a228 symmetric elliptical Gaussian distribution</span>. 229 <span style='font-family:"Times New Roman","serif"'>The A is a 247 230 normalization factor.</span></p> 248 231 249 232 <p class=MsoNormal align=center style='text-align:center'><span 250 style='font-family:"Times New Roman","serif"'><img width=439 height=376233 style='font-family:"Times New Roman","serif"'><img 251 234 id="Object 1" src="./img/sm_image023.gif"></span></p> 252 235 … … 254 237 255 238 <p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>Now we 256 consider a numerical integration where each bins in </span><span 257 style='font-family:Symbol'>THETA</span><span style='font-family:"Times New Roman","serif"'> 239 consider a numerical integration where each bins in </span> Θ </span><span style='font-family:"Times New Roman","serif"'> 258 240 and R are <b>evenly </b>(this is to simplify the equation below) distributed by 259 </span> <span style='font-family:Symbol'>Delta_THETA</span><span style='font-family:260 "Times New Roman","serif"'>and </span> <span style='font-family:Symbol'>Delta</span><span241 </span>ΔΘ </span><span style='font-family: 242 "Times New Roman","serif"'>and </span> Δ</span><span 261 243 style='font-family:"Times New Roman","serif"'>R, respectively, and it is 262 244 assumed that I(x, y) is constant within the bins which in turn becomes</span></p> … … 265 247 266 248 <p class=MsoNormal> <span 267 style='font-family:"Times New Roman","serif"'> (10)</span></p>249 style='font-family:"Times New Roman","serif"'> ---- (10)</span></p> 268 250 269 251 <p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>Since we 270 252 have found the weighting factor on each bin points, it is convenient to 271 transform x-y back to x-y coordinate (rotating it by -</span><span 272 style='font-family:Symbol'>(theta)</span><span style='font-family:"Times New Roman","serif"'> 253 transform x-y back to x-y coordinate (rotating it by -θ</span><span style='font-family:"Times New Roman","serif"'> 273 254 around z axis). Then, for the polar symmetric smear,</span></p> 274 255 275 256 <p class=MsoNormal><img src="./img/sm_image025.gif"><span 276 style='position:relative;top:35.0pt'> </span>(11)</p>257 style='position:relative;top:35.0pt'> </span> ---- (11)</p> 277 258 278 259 <p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>where,</span></p> 279 260 280 <p class=MsoNormal><img src="./img/sm_image026.gif"> </p>261 <p class=MsoNormal><img src="./img/sm_image026.gif">,</p> 281 262 282 263 <p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>while … … 284 265 285 266 <p class=MsoNormal><img src="./img/sm_image027.gif"><span 286 style='font-family:"Times New Roman","serif"'> 267 style='font-family:"Times New Roman","serif"'> ---- (12)</span></p> 287 268 288 269 <p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>where,</span></p> … … 301 282 </body> 302 283 303 </html>
Note: See TracChangeset
for help on using the changeset viewer.