source: sasmodels/Kernel-Lamellar.cpp @ 8a21ba3

core_shell_microgelscostrafo411magnetic_modelrelease_v0.94release_v0.95ticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change on this file since 8a21ba3 was 496b252, checked in by HMP1 <helen.park@…>, 10 years ago

core shell cylinder is fixed; float converted to real so is interchangeable

  • Property mode set to 100644
File size: 388 bytes
Line 
1
2__kernel void LamellarKernel(__global const real *qx, global const real *qy, __global real *ret, const real bi_thick,
3 const real scale, const real sub, const int length)
4{
5    int i = get_global_id(0);
6    if(i < length)
7    {
8        real q = sqrt(qx[i]*qx[i]+qy[i]*qy[i]);
9        ret[i] = 2.0*4.0*atan(1.0)*scale*2.0*sub*(sub/q)/q*(1.0-cos(q*bi_thick))/(q*q)/bi_thick*1.0e8 ;
10    }
11}
Note: See TracBrowser for help on using the repository browser.