Changeset becded3 in sasmodels for sasmodels/models/hollow_cylinder.c


Ignore:
Timestamp:
Oct 17, 2017 6:21:27 PM (7 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
8698a0d
Parents:
2a602c7
Message:

update oriented models to new interface (which will be in the next commit)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/hollow_cylinder.c

    r2a0b2b1 rbecded3  
    1 double form_volume(double radius, double thickness, double length); 
    2 double Iq(double q, double radius, double thickness, double length, double sld, 
    3     double solvent_sld); 
    4 double Iqxy(double qx, double qy, double radius, double thickness, double length, double sld, 
    5     double solvent_sld, double theta, double phi); 
    6  
    71//#define INVALID(v) (v.radius_core >= v.radius) 
    82 
     
    2822} 
    2923 
    30 double 
     24static double 
    3125form_volume(double radius, double thickness, double length) 
    3226{ 
     
    3630 
    3731 
    38 double 
     32static double 
    3933Iq(double q, double radius, double thickness, double length, 
    4034    double sld, double solvent_sld) 
     
    5751} 
    5852 
    59 double 
    60 Iqxy(double qx, double qy, 
     53static double 
     54Iqxy(double qab, double qc, 
    6155    double radius, double thickness, double length, 
    62     double sld, double solvent_sld, double theta, double phi) 
     56    double sld, double solvent_sld) 
    6357{ 
    64     double q, sin_alpha, cos_alpha; 
    65     ORIENT_SYMMETRIC(qx, qy, theta, phi, q, sin_alpha, cos_alpha); 
    66     const double qab = q*sin_alpha; 
    67     const double qc = q*cos_alpha; 
    68  
    6958    const double form = _fq(qab, qc, radius, thickness, length); 
    7059 
Note: See TracChangeset for help on using the changeset viewer.