Changeset 5eb9154 in sasview for sansmodels/src/sans/models/c_models/SquareWell.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/SquareWell.cpp
r25579e8 r5eb9154 33 33 34 34 SquareWellStructure :: SquareWellStructure() { 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.04, true); 38 38 volfraction.set_min(0.0); … … 52 52 // Fill parameter array for IGOR library 53 53 // Add the background after averaging 54 dp[0] = radius();54 dp[0] = effect_radius(); 55 55 dp[1] = volfraction(); 56 56 dp[2] = welldepth(); … … 59 59 // Get the dispersion points for the radius 60 60 vector<WeightPoint> weights_rad; 61 radius.get_weights(weights_rad);61 effect_radius.get_weights(weights_rad); 62 62 63 63 // Perform the computation, with all weight points … … 85 85 SquareWellParameters dp; 86 86 // Fill parameter array 87 dp. radius =radius();87 dp.effect_radius = effect_radius(); 88 88 dp.volfraction = volfraction(); 89 89 dp.welldepth = welldepth(); … … 92 92 // Get the dispersion points for the radius 93 93 vector<WeightPoint> weights_rad; 94 radius.get_weights(weights_rad);94 effect_radius.get_weights(weights_rad); 95 95 96 96 // Perform the computation, with all weight points … … 100 100 // Loop over radius weight points 101 101 for(int i=0; i<weights_rad.size(); i++) { 102 dp. radius = weights_rad[i].value;102 dp.effect_radius = weights_rad[i].value; 103 103 104 104 double _ptvalue = weights_rad[i].weight … … 126 126 return (*this).operator()(qx, qy); 127 127 } 128 128 /** 129 * Function to calculate effective radius 130 * @param pars: parameters of the sphere 131 * @return: effective radius value 132 */ 133 double SquareWellStructure :: calculate_ER() { 134 //NOT implemented yet!!! 135 } 129 136 // Testing code 130 137 /*
Note: See TracChangeset
for help on using the changeset viewer.