Ignore:
Timestamp:
Aug 4, 2009 11:20:01 AM (15 years ago)
Author:
Jae Cho <jhjcho@…>
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:
8e91f01
Parents:
2cc633b
Message:

some corrections on dips-parameters and adding 2D cal

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansmodels/src/sans/models/c_models/vesicle.cpp

    r3d25331f r42f193a  
    3434        core_radius     = Parameter(100.0, true); 
    3535        core_radius.set_min(0.0); 
    36         thickness  = Parameter(30.0); 
     36        thickness  = Parameter(30.0, true); 
     37        thickness.set_min(0.0); 
    3738        core_sld   = Parameter(6.36e-6); 
    3839        shell_sld   = Parameter(5.0e-7); 
     
    5758        dp[4] = shell_sld(); 
    5859        dp[5] = background(); 
    59          
     60 
    6061 
    6162        // Get the dispersion points for the core radius 
    6263        vector<WeightPoint> weights_core_radius; 
    6364        core_radius.get_weights(weights_core_radius); 
     65        // Get the dispersion points for the thickness 
     66        vector<WeightPoint> weights_thickness; 
     67        thickness.get_weights(weights_thickness); 
    6468 
    6569        // Perform the computation, with all weight points 
     
    7074        for(int i=0; i< (int)weights_core_radius.size(); i++) { 
    7175                dp[1] = weights_core_radius[i].value; 
    72  
    73                 sum += weights_core_radius[i].weight 
    74                         * VesicleForm(dp, q); 
    75                 norm += weights_core_radius[i].weight; 
     76                for(int j=0; j< (int)weights_core_radius.size(); j++) { 
     77                        dp[2] = weights_thickness[j].value; 
     78                        sum += weights_core_radius[i].weight 
     79                                * weights_thickness[j].weight * VesicleForm(dp, q); 
     80                        norm += weights_core_radius[i].weight * weights_thickness[j].weight; 
     81                } 
    7682        } 
    7783        return sum/norm + background(); 
Note: See TracChangeset for help on using the changeset viewer.