Changeset be5d7df in sasmodels for Kernel-TriaxialEllipse.cpp


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

File:
1 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 
Note: See TracChangeset for help on using the changeset viewer.