Changeset 5eb9154 in sasview for sansmodels/src/sans/models/c_models/StickyHS.cpp
- Timestamp:
- Aug 31, 2009 5:25:44 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:
- 5be36bb
- Parents:
- 572beba
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/c_models/StickyHS.cpp
r25579e8 r5eb9154 33 33 34 34 StickyHSStructure :: StickyHSStructure() { 35 radius = Parameter(50.0, true);36 radius.set_min(0.0);35 effect_radius = Parameter(50.0, true); 36 effect_radius.set_min(0.0); 37 37 volfraction = Parameter(0.10, true); 38 38 volfraction.set_min(0.0); 39 39 perturb = Parameter(0.05, true); 40 40 perturb.set_min(0.0); 41 stickiness = Parameter(0.20, true);; 41 stickiness = Parameter(0.20, true);; 42 42 stickiness.set_min(0.0); 43 43 } … … 54 54 // Fill parameter array for IGOR library 55 55 // Add the background after averaging 56 dp[0] = radius();56 dp[0] = effect_radius(); 57 57 dp[1] = volfraction(); 58 58 dp[2] = perturb(); … … 61 61 // Get the dispersion points for the radius 62 62 vector<WeightPoint> weights_rad; 63 radius.get_weights(weights_rad);63 effect_radius.get_weights(weights_rad); 64 64 65 65 // Perform the computation, with all weight points … … 87 87 StickyHSParameters dp; 88 88 // Fill parameter array 89 dp. radius =radius();89 dp.effect_radius = effect_radius(); 90 90 dp.volfraction = volfraction(); 91 91 dp.perturb = perturb(); … … 94 94 // Get the dispersion points for the radius 95 95 vector<WeightPoint> weights_rad; 96 radius.get_weights(weights_rad);96 effect_radius.get_weights(weights_rad); 97 97 98 98 // Perform the computation, with all weight points … … 102 102 // Loop over radius weight points 103 103 for(int i=0; i<weights_rad.size(); i++) { 104 dp. radius = weights_rad[i].value;104 dp.effect_radius = weights_rad[i].value; 105 105 106 106 double _ptvalue = weights_rad[i].weight … … 128 128 return (*this).operator()(qx, qy); 129 129 } 130 /** 131 * Function to calculate effective radius 132 * @param pars: parameters of the sphere 133 * @return: effective radius value 134 */ 135 double StickyHSStructure :: calculate_ER() { 136 //NOT implemented yet!!! 137 }
Note: See TracChangeset
for help on using the changeset viewer.