Changeset f10063e in sasview for sansmodels/src/sans/models/c_models/spheroid.cpp
- Timestamp:
- Mar 30, 2010 7:56:04 PM (14 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:
- 8d97277
- Parents:
- 6e93a02
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/c_models/spheroid.cpp
rc451be9 rf10063e 43 43 polar_shell = Parameter(30.0, true); 44 44 polar_shell.set_min(0.0); 45 contrast = Parameter(1e-6); 45 sld_core = Parameter(2e-6); 46 sld_shell = Parameter(1e-6); 46 47 sld_solvent = Parameter(6.3e-6); 47 48 background = Parameter(0.0); … … 58 59 */ 59 60 double CoreShellEllipsoidModel :: operator()(double q) { 60 double dp[ 8];61 double dp[9]; 61 62 62 63 // Fill parameter array for IGOR library … … 67 68 dp[3] = equat_shell(); 68 69 dp[4] = polar_shell(); 69 dp[5] = contrast(); 70 dp[6] = sld_solvent(); 71 dp[7] = 0.0; 70 dp[5] = sld_core(); 71 dp[6] = sld_shell(); 72 dp[7] = sld_solvent(); 73 dp[8] = 0.0; 72 74 73 75 // Get the dispersion points for the major core … … 110 112 //Un-normalize by volume 111 113 sum += weights_equat_core[i].weight* weights_polar_core[j].weight * weights_equat_shell[k].weight 112 * weights_polar_shell[l].weight * ProlateForm(dp, q)114 * weights_polar_shell[l].weight * OblateForm(dp, q) 113 115 * pow(weights_equat_shell[k].value,2)*weights_polar_shell[l].value; 114 116 //Find average volume … … 170 172 dp.equat_shell = equat_shell(); 171 173 dp.polar_shell = polar_shell(); 172 dp.contrast = contrast(); 174 dp.sld_core = sld_core(); 175 dp.sld_shell = sld_shell(); 173 176 dp.sld_solvent = sld_solvent(); 174 177 dp.background = 0.0;
Note: See TracChangeset
for help on using the changeset viewer.