Changeset 1233 for trunk/GSASIIsasd.py


Ignore:
Timestamp:
Mar 3, 2014 9:16:53 AM (8 years ago)
Author:
vondreele
Message:

replace wx.Align_CENTER_VERTICAL with WACV in G2pwdGUI & G2phsGUI
start on SASD modelling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIsasd.py

    r1230 r1233  
    5555npT2q = lambda tth,wave: 2.0*np.pi*npT2stl(tth,wave)
    5656   
     57###############################################################################
     58#### Particle form factors & volumes
     59###############################################################################
     60
     61def SpheroidFF(Q,R,AR):
     62    '''
     63    '''
     64    QR = Q*R
     65    if 0.98 < AR < 1.02:
     66        return (3./(QR**3))*(np.sin(QR)-(QR*np.cos(QR)))
     67       
     68   
     69def SpheroidVol(R,AR):
     70    ''' Compute volume of cylindrically symmetric ellipsoid (spheroid)
     71    - can use numpy arrays for R & AR; will return corresponding numpy array
     72    param float R: radius along 2 axes of spheroid
     73    param float AR: aspect ratio so 3rd axis = R*AR
     74    returns float: volume
     75    '''
     76    return AR*(4./3.)*np.pi*R**3
     77   
     78def SizeDistribution(Profile,Limits,Substances,Sample,data):
     79    print data['Size']
     80#    print Limits
     81#    print Substances
     82#    print Sample
     83#    print Profile
     84   
Note: See TracChangeset for help on using the changeset viewer.