Changeset 278


Ignore:
Timestamp:
Feb 19, 2008 12:30:43 PM (15 years ago)
Author:
srkline
Message:

changed variable name in hsStruct calculation to avoid conflict with new Igor function (beta)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v4.00/HardSphereStruct_v40.ipf

    r252 r278  
    7575 
    7676// Local variables 
    77         Variable denom,dnum,alpha,beta,gamm,q,a,asq,ath,afor,rca,rsa 
     77        Variable denom,dnum,alpha,fbeta,gamm,q,a,asq,ath,afor,rca,rsa 
    7878        Variable calp,cbeta,cgam,prefac,c,vstruc 
    7979//  COMPUTE CONSTANTS 
     
    8282      DNUM = (1.0 + 2.0*PHI)^2 
    8383      ALPHA = DNUM/DENOM 
    84       BETA = -6.0*PHI*((1.0 + PHI/2.0)^2)/DENOM 
     84      fBETA = -6.0*PHI*((1.0 + PHI/2.0)^2)/DENOM 
    8585      GAMM = 0.50*PHI*DNUM/DENOM 
    8686// 
     
    9898        RSA = SIN(A) 
    9999        CALP = ALPHA*(RSA/ASQ - RCA/A) 
    100         CBETA = BETA*(2.0*RSA/ASQ - (ASQ - 2.0)*RCA/ATH - 2.0/ATH) 
     100        CBETA = fBETA*(2.0*RSA/ASQ - (ASQ - 2.0)*RCA/ATH - 2.0/ATH) 
    101101        CGAM = GAMM*(-RCA/A + (4.0/A)*((3.0*ASQ - 6.0)*RCA/AFOR + (ASQ - 6.0)*RSA/ATH + 6.0/AFOR)) 
    102102        PREFAC = -24.0*PHI/A 
Note: See TracChangeset for help on using the changeset viewer.