Ignore:
Timestamp:
Nov 18, 2008 3:21:34 PM (14 years ago)
Author:
srkline
Message:

Bug fixes for some of the newly added (2008) Analysis model functions. All are tested now and should be correct.

Also included in these changes are a few bug fixes in the package loader and Correct

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Analysis/Models/NewModels_2008/BCC_ParaCrystal_v40.ipf

    r445 r451  
    3333        Make/O/D/n=(num) xwave_BCC_ParaCrystal, ywave_BCC_ParaCrystal 
    3434        xwave_BCC_ParaCrystal =  alog(log(qmin) + x*((log(qmax)-log(qmin))/num)) 
    35         Make/O/D coef_BCC_ParaCrystal = {1,220,0.06,40,3e-6,0.} 
    36         make/o/t parameters_BCC_ParaCrystal = {"scale","Nearest Neighbor (A)","g","Sphere Radius (A)","Contrast (A-2)", "Background (cm-1)"}     
     35        Make/O/D coef_BCC_ParaCrystal = {1,220,0.06,40,3e-6,6.3e-6,0.0} 
     36        make/o/t parameters_BCC_ParaCrystal = {"scale","Nearest Neighbor (A)","distortion, g","Sphere Radius (A)","SLD Sphere (A-2)","SLD Solvent (A-2)", "Background (cm-1)"}   
    3737        Edit parameters_BCC_ParaCrystal, coef_BCC_ParaCrystal 
    3838         
     
    7373         
    7474        // Setup parameter table for model function 
    75         Make/O/D smear_coef_BCC_ParaCrystal = {1,220,0.06,40,3e-6,0.} 
    76         make/o/t smear_parameters_BCC_ParaCrystal = {"scale","Nearest Neighbor (A)","g","Sphere Radius (A)","Contrast (A-2)", "Background (cm-1)"} 
     75        Make/O/D smear_coef_BCC_ParaCrystal = {1,220,0.06,40,3e-6,6.3e-6,0.0} 
     76        make/o/t smear_parameters_BCC_ParaCrystal = {"scale","Nearest Neighbor (A)","distortion, g","Sphere Radius (A)","SLD Sphere (A-2)","SLD Solvent (A-2)", "Background (cm-1)"} 
    7777        Edit smear_parameters_BCC_ParaCrystal,smear_coef_BCC_ParaCrystal                                        //display parameters in a table 
    7878         
     
    131131         
    132132 
    133         Variable scale,Dnn,gg,Rad,contrast,background,yy,latticeScale 
     133        Variable scale,Dnn,gg,Rad,contrast,background,yy,latticeScale,sld,sldSolv 
    134134        scale = w[0] 
    135135        Dnn = w[1] //Nearest neighbor distance A 
    136136        gg = w[2] //Paracrystal distortion factor 
    137137        Rad = w[3] //Sphere radius 
    138         contrast = w[4] //SLD contrast  
    139         background = w[5]  
     138        sld = w[4] 
     139        sldSolv = w[5] 
     140        background = w[6]  
     141         
     142        contrast = sld - sldSolv 
    140143         
    141144        //Volume fraction calculated from lattice symmetry and sphere radius 
Note: See TracChangeset for help on using the changeset viewer.