Changeset 9188cc1 in sasview
- Timestamp:
- Aug 4, 2009 6:29:56 PM (15 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:
- 8344c50
- Parents:
- 8dc0b746
- Location:
- sansmodels/src/sans/models
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/LamellarPSHGModel.py
r27a0771 r9188cc1 55 55 self.name = "LamellarPSHGModel" 56 56 ## Model description 57 self.description =""" Calculates the scattered intensity from a concentrated lamellar phase""" 57 self.description ="""[Concentrated Lamellar (head+tail) Form Factor]: Calculates the 58 intensity from a lyotropic lamellar phase. 59 The intensity (form factor and structure factor) 60 calculated is for lamellae of two-layer scattering 61 length density that are randomly distributed in 62 solution (a powder average). The scattering 63 length density of the tail region, headgroup 64 region, and solvent are taken to be different. 65 The model can also be applied to large, 66 multi-lamellar vesicles. 67 No resolution smeared version is included 68 in the structure factor of this model. 69 *Parameters: spacing = repeat spacing, 70 deltaT = tail length, 71 deltaH = headgroup thickness, 72 n_plates = # of Lamellar plates 73 caille = Caille parameter (<0.8 or <1) 74 background = incoherent bgd 75 scale = scale factor ...""" 58 76 59 77 ## Parameter details [units, min, max] … … 71 89 72 90 ## fittable parameters 73 self.fixed=['deltaT.wi th', 'deltaH.with']91 self.fixed=['deltaT.width', 'deltaH.width', 'spacing.width'] 74 92 75 93 ## parameters with orientation -
sansmodels/src/sans/models/LamellarPSModel.py
rfbe5d3e r9188cc1 53 53 self.name = "LamellarPSModel" 54 54 ## Model description 55 self.description ="""Calculates the scattered intensity from a lyotropic lamellar phase. 56 The intensity (form factor and structure factor) 57 calculated is for lamellae of uniform scattering 58 length density that are randomly distributed in 59 solution (a powder average). The lamellae 60 thickness is polydisperse. The model can also 55 self.description ="""[Concentrated Lamellar Form Factor] Calculates the scattered 56 intensity from a lyotropic lamellar phase. 57 The intensity (form factor and structure 58 factor)calculated is for lamellae of 59 uniform scattering length density that 60 are randomly distributed in solution 61 (a powder average). The lamellae thickness 62 is polydisperse. The model can also 61 63 be applied to large, multi-lamellar vesicles. 62 64 No resolution smeared version is included … … 83 85 84 86 ## fittable parameters 85 self.fixed=['spacing.wi th']87 self.fixed=['spacing.width'] 86 88 87 89 ## parameters with orientation -
sansmodels/src/sans/models/OblateModel.py
r27a0771 r9188cc1 55 55 self.name = "OblateModel" 56 56 ## Model description 57 self.description =""" Calculates the form factor for an oblate ellipsoid particle with a core/shell structure. 58 Note:It is the users' responsibility to ensure that shell radii are larger than core radii, and""" 57 self.description ="""[OblateCoreShellModel] Calculates the form factor for an oblate 58 ellipsoid particle with a core_shell structure. 59 The form factor is averaged over all possible 60 orientations of the ellipsoid such that P(q) 61 = scale*<f^2>/Vol + bkg, where f is the 62 single particle scattering amplitude. 63 [Parameters]: 64 major_core = radius of major_core, 65 minor_core = radius of minor_core, 66 major_shell = radius of major_shell, 67 minor_shell = radius of minor_shell, 68 contrast = SLD_core - SLD_shell 69 sld_solvent = SLD_solvent 70 background = Incoherent bkg 71 scale =scale 72 Note:It is the users' responsibility to ensure 73 that shell radii are larger than core radii.""" 59 74 60 75 ## Parameter details [units, min, max] … … 72 87 73 88 ## fittable parameters 74 self.fixed=[' axis_phi.width', 'axis_theta.width', 'major_core.width', 'minor_core.width', 'major_shell', 'minor_shell']89 self.fixed=['major_core.width', 'minor_core.width', 'major_shell.width', 'minor_shell.width'] 75 90 76 91 ## parameters with orientation 77 self.orientation_params =[ 'axis_phi', 'axis_theta', 'axis_phi.width', 'axis_theta.width']92 self.orientation_params =[] 78 93 79 94 def clone(self): -
sansmodels/src/sans/models/ProlateModel.py
r72a90bd r9188cc1 40 40 sld_solvent = 6.3e-006 [1/A²] 41 41 background = 0.001 [1/cm] 42 axis_theta = 1.0 [rad]43 axis_phi = 1.0 [rad]44 42 45 43 """ … … 55 53 self.name = "ProlateModel" 56 54 ## Model description 57 self.description =""" Calculates the form factor for a monodisperse prolate ellipsoid particle with a 58 core/shell structure 59 Note:It is the users' responsibility to ensure that shell radii are larger than core radii, and""" 55 self.description ="""[ProlateCoreShellModel] Calculates the form factor for a prolate 56 ellipsoid particle with a core_shell structure. 57 The form factor is averaged over all possible 58 orientations of the ellipsoid such that P(q) 59 = scale*<f^2>/Vol + bkg, where f is the 60 single particle scattering amplitude. 61 [Parameters]: 62 major_core = radius of major_core, 63 minor_core = radius of minor_core, 64 major_shell = radius of major_shell, 65 minor_shell = radius of minor_shell, 66 contrast = SLD_core - SLD_shell 67 sld_solvent = SLD_solvent 68 background = Incoherent bkg 69 scale = scale 70 Note:It is the users' responsibility to ensure 71 that shell radii are larger than core radii.""" 60 72 61 73 ## Parameter details [units, min, max] … … 69 81 self.details['sld_solvent'] = ['[1/A²]', None, None] 70 82 self.details['background'] = ['[1/cm]', None, None] 71 self.details['axis_theta'] = ['[rad]', None, None]72 self.details['axis_phi'] = ['[rad]', None, None]73 83 74 84 ## fittable parameters 75 self.fixed=[' axis_phi.width', 'axis_theta.width', 'major_core.width', 'minor_core.width', 'major_shell', 'minor_shell']85 self.fixed=['major_core.width', 'minor_core.width', 'major_shell.width', 'minor_shell.width'] 76 86 77 87 ## parameters with orientation 78 self.orientation_params =[ 'axis_phi', 'axis_theta', 'axis_phi.width', 'axis_theta.width']88 self.orientation_params =[] 79 89 80 90 def clone(self): -
sansmodels/src/sans/models/c_models/binaryHS.cpp
r3d25331f r9188cc1 31 31 32 32 BinaryHSModel :: BinaryHSModel() { 33 33 34 34 l_radius = Parameter(160.0, true); 35 35 l_radius.set_min(0.0); … … 62 62 dp[5] = ss_sld(); 63 63 dp[6] = solvent_sld(); 64 dp[7] = background();65 64 dp[7] = 0.0; 65 66 66 67 67 // Get the dispersion points for the large radius … … 80 80 for(int i=0; i< (int)weights_l_radius.size(); i++) { 81 81 dp[0] = weights_l_radius[i].value; 82 82 83 83 // Loop over small radius weight points 84 84 for(int j=0; j< (int)weights_s_radius.size(); j++) { -
sansmodels/src/sans/models/c_models/binaryHS_PSF11.cpp
r2c4b289 r9188cc1 31 31 32 32 BinaryHSPSF11Model :: BinaryHSPSF11Model() { 33 33 34 34 l_radius = Parameter(160.0, true); 35 35 l_radius.set_min(0.0); … … 62 62 dp[5] = ss_sld(); 63 63 dp[6] = solvent_sld(); 64 dp[7] = background();65 64 dp[7] = 0.0; 65 66 66 67 67 // Get the dispersion points for the large radius … … 80 80 for(int i=0; i< (int)weights_l_radius.size(); i++) { 81 81 dp[0] = weights_l_radius[i].value; 82 82 83 83 // Loop over small radius weight points 84 84 for(int j=0; j< (int)weights_s_radius.size(); j++) { -
sansmodels/src/sans/models/c_models/hollowcylinder.cpp
r27fea3f r9188cc1 60 60 dp[3] = length(); 61 61 dp[4] = contrast(); 62 dp[5] = background();62 dp[5] = 0.0; 63 63 64 64 // Get the dispersion points for the core radius … … 117 117 dp.length = length(); 118 118 dp.contrast = contrast(); 119 dp.background = background();119 dp.background = 0.0; 120 120 dp.axis_theta = axis_theta(); 121 121 dp.axis_phi = axis_phi(); -
sansmodels/src/sans/models/c_models/stackeddisks.cpp
r5068697 r9188cc1 19 19 * 20 20 * TODO: refactor so that we pull in the old sansmodels.c_extensions 21 * TODO: add 2d 21 * TODO: add 2d 22 22 */ 23 23 … … 71 71 dp[7] = nlayers(); 72 72 dp[8] = spacing(); 73 dp[9] = background();73 dp[9] = 0.0; 74 74 75 75 // Get the dispersion points for the length … … 129 129 dp.nlayers = nlayers(); 130 130 dp.spacing = spacing(); 131 dp.background = background();131 dp.background = 0.0; 132 132 dp.axis_theta = axis_theta(); 133 133 dp.axis_phi = axis_phi(); -
sansmodels/src/sans/models/c_models/triaxialellipsoid.cpp
r5068697 r9188cc1 62 62 dp[3] = semi_axisC(); 63 63 dp[4] = contrast(); 64 dp[5] = background();64 dp[5] = 0.0; 65 65 66 66 // Get the dispersion points for the semi axis A -
sansmodels/src/sans/models/c_models/vesicle.cpp
r42f193a r9188cc1 57 57 dp[3] = core_sld(); 58 58 dp[4] = shell_sld(); 59 dp[5] = background();59 dp[5] = 0.0; 60 60 61 61
Note: See TracChangeset
for help on using the changeset viewer.