Ignore:
Timestamp:
Mar 30, 2010 7:56:04 PM (14 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:
8d97277
Parents:
6e93a02
Message:

Updated the definition of SLD params according to new libigor functions

File:
1 edited

Legend:

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

    rc451be9 rf10063e  
    4343        polar_shell    = Parameter(30.0, true); 
    4444        polar_shell.set_min(0.0); 
    45         contrast   = Parameter(1e-6); 
     45        sld_core   = Parameter(2e-6); 
     46        sld_shell  = Parameter(1e-6); 
    4647        sld_solvent = Parameter(6.3e-6); 
    4748        background = Parameter(0.0); 
     
    5859 */ 
    5960double CoreShellEllipsoidModel :: operator()(double q) { 
    60         double dp[8]; 
     61        double dp[9]; 
    6162 
    6263        // Fill parameter array for IGOR library 
     
    6768        dp[3] = equat_shell(); 
    6869        dp[4] = polar_shell(); 
    69         dp[5] = contrast(); 
    70         dp[6] = sld_solvent(); 
    71         dp[7] = 0.0; 
     70        dp[5] = sld_core(); 
     71        dp[6] = sld_shell(); 
     72        dp[7] = sld_solvent(); 
     73        dp[8] = 0.0; 
    7274 
    7375        // Get the dispersion points for the major core 
     
    110112                                        //Un-normalize  by volume 
    111113                                        sum += weights_equat_core[i].weight* weights_polar_core[j].weight * weights_equat_shell[k].weight 
    112                                                 * weights_polar_shell[l].weight * ProlateForm(dp, q) 
     114                                                * weights_polar_shell[l].weight * OblateForm(dp, q) 
    113115                                                * pow(weights_equat_shell[k].value,2)*weights_polar_shell[l].value; 
    114116                                        //Find average volume 
     
    170172        dp.equat_shell = equat_shell(); 
    171173        dp.polar_shell = polar_shell(); 
    172         dp.contrast = contrast(); 
     174        dp.sld_core = sld_core(); 
     175        dp.sld_shell = sld_shell(); 
    173176        dp.sld_solvent = sld_solvent(); 
    174177        dp.background = 0.0; 
Note: See TracChangeset for help on using the changeset viewer.