Ignore:
Timestamp:
Aug 31, 2009 5:25:44 PM (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:
5be36bb
Parents:
572beba
Message:

calculation of the effective radius are added

File:
1 edited

Legend:

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

    r25579e8 r5eb9154  
    3333 
    3434StickyHSStructure :: 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); 
    3737        volfraction = Parameter(0.10, true); 
    3838        volfraction.set_min(0.0); 
    3939        perturb = Parameter(0.05, true); 
    4040        perturb.set_min(0.0); 
    41         stickiness = Parameter(0.20, true);;     
     41        stickiness = Parameter(0.20, true);; 
    4242        stickiness.set_min(0.0); 
    4343} 
     
    5454        // Fill parameter array for IGOR library 
    5555        // Add the background after averaging 
    56         dp[0] = radius(); 
     56        dp[0] = effect_radius(); 
    5757        dp[1] = volfraction(); 
    5858        dp[2] = perturb(); 
     
    6161        // Get the dispersion points for the radius 
    6262        vector<WeightPoint> weights_rad; 
    63         radius.get_weights(weights_rad); 
     63        effect_radius.get_weights(weights_rad); 
    6464 
    6565        // Perform the computation, with all weight points 
     
    8787        StickyHSParameters dp; 
    8888        // Fill parameter array 
    89         dp.radius      = radius(); 
     89        dp.effect_radius      = effect_radius(); 
    9090        dp.volfraction = volfraction(); 
    9191        dp.perturb = perturb(); 
     
    9494        // Get the dispersion points for the radius 
    9595        vector<WeightPoint> weights_rad; 
    96         radius.get_weights(weights_rad); 
     96        effect_radius.get_weights(weights_rad); 
    9797 
    9898        // Perform the computation, with all weight points 
     
    102102        // Loop over radius weight points 
    103103        for(int i=0; i<weights_rad.size(); i++) { 
    104                 dp.radius = weights_rad[i].value; 
     104                dp.effect_radius = weights_rad[i].value; 
    105105 
    106106                                        double _ptvalue = weights_rad[i].weight 
     
    128128        return (*this).operator()(qx, qy); 
    129129} 
     130/** 
     131 * Function to calculate effective radius 
     132 * @param pars: parameters of the sphere 
     133 * @return: effective radius value 
     134 */ 
     135double StickyHSStructure :: calculate_ER() { 
     136//NOT implemented yet!!! 
     137} 
Note: See TracChangeset for help on using the changeset viewer.