Changeset be5d7df in sasmodels


Ignore:
Timestamp:
Jul 11, 2014 2:50:51 PM (10 years ago)
Author:
HMP1 <helen.park@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
496b252
Parents:
2de9a5e
Message:

Added Triaxial Ellipse Code and Kernel
Functions in Kernel are separated from the rest of Kernel code

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Kernel-TriaxialEllipse.cpp

    r2de9a5e rbe5d7df  
    1111        real q_y = qy[i]/q; 
    1212        real pi = 4.0*atan(1.0); 
     13        real answer=0; 
    1314         
    1415        //convert angle degree to radian 
     
    2122        real cos_nu = (-cos(phi)*sin(psi)*sin(theta)+sin(phi)*cos(psi))*q_x + sin(psi)*cos(theta)*q_y; 
    2223        real cos_mu = (-sin(theta)*cos(psi)*cos(phi)-sin(psi)*sin(phi))*q_x + cos(theta)*cos(psi)*q_y; 
    23  
    24         real answer=0; 
    2524        real t = q*sqrt(axisA*axisA*cos_nu*cos_nu+axisB*axisB*cos_mu*cos_mu+axisC*axisC*cos_val*cos_val); 
    2625 
  • code_triaxialellipse.py

    r2de9a5e rbe5d7df  
    2323 
    2424class GpuTriEllipse: 
    25     PARS = {'scale':1, 'axisA':35, 'axisB':100, 'axisC':400, 'sldEll':1e-6, 'sldSolv':6.3e-6, 'background':0, 'theta':0, 
    26             'phi':0, 'psi':0} 
     25    PARS = {'scale':1, 'axisA':35, 'axisB':100, 'axisC':400, 'sldEll':1e-6, 'sldSolv':6.3e-6, 'background':0, 
     26            'theta':0, 'phi':0, 'psi':0} 
    2727 
    2828    PD_PARS = ['axisA', 'axisB', 'axisC', 'theta', 'phi', 'psi'] 
Note: See TracChangeset for help on using the changeset viewer.