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/SquareWell.cpp

    r25579e8 r5eb9154  
    3333 
    3434SquareWellStructure :: 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); 
    3737        volfraction = Parameter(0.04, true); 
    3838        volfraction.set_min(0.0); 
     
    5252        // Fill parameter array for IGOR library 
    5353        // Add the background after averaging 
    54         dp[0] = radius(); 
     54        dp[0] = effect_radius(); 
    5555        dp[1] = volfraction(); 
    5656        dp[2] = welldepth(); 
     
    5959        // Get the dispersion points for the radius 
    6060        vector<WeightPoint> weights_rad; 
    61         radius.get_weights(weights_rad); 
     61        effect_radius.get_weights(weights_rad); 
    6262 
    6363        // Perform the computation, with all weight points 
     
    8585        SquareWellParameters dp; 
    8686        // Fill parameter array 
    87         dp.radius      = radius(); 
     87        dp.effect_radius      = effect_radius(); 
    8888        dp.volfraction = volfraction(); 
    8989        dp.welldepth   = welldepth(); 
     
    9292        // Get the dispersion points for the radius 
    9393        vector<WeightPoint> weights_rad; 
    94         radius.get_weights(weights_rad); 
     94        effect_radius.get_weights(weights_rad); 
    9595 
    9696        // Perform the computation, with all weight points 
     
    100100        // Loop over radius weight points 
    101101        for(int i=0; i<weights_rad.size(); i++) { 
    102                 dp.radius = weights_rad[i].value; 
     102                dp.effect_radius = weights_rad[i].value; 
    103103 
    104104                                        double _ptvalue = weights_rad[i].weight 
     
    126126        return (*this).operator()(qx, qy); 
    127127} 
    128  
     128/** 
     129 * Function to calculate effective radius 
     130 * @param pars: parameters of the sphere 
     131 * @return: effective radius value 
     132 */ 
     133double SquareWellStructure :: calculate_ER() { 
     134//NOT implemented yet!!! 
     135} 
    129136// Testing code 
    130137/* 
Note: See TracChangeset for help on using the changeset viewer.