Changeset becded3 in sasmodels for sasmodels/models/barbell.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/barbell.c

    r2a0b2b1 rbecded3  
    1 double form_volume(double radius_bell, double radius, double length); 
    2 double Iq(double q, double sld, double solvent_sld, 
    3         double radius_bell, double radius, double length); 
    4 double Iqxy(double qx, double qy, double sld, double solvent_sld, 
    5         double radius_bell, double radius, double length, 
    6         double theta, double phi); 
    7  
    81#define INVALID(v) (v.radius_bell < v.radius) 
    92 
     
    5548} 
    5649 
    57  
    58 double form_volume(double radius_bell, 
    59         double radius, 
    60         double length) 
     50static double 
     51form_volume(double radius_bell, 
     52    double radius, 
     53    double length) 
    6154{ 
    6255    // bell radius should never be less than radius when this is called 
     
    6962} 
    7063 
    71 double Iq(double q, double sld, double solvent_sld, 
    72           double radius_bell, double radius, double length) 
     64static double 
     65Iq(double q, double sld, double solvent_sld, 
     66    double radius_bell, double radius, double length) 
    7367{ 
    7468    const double h = -sqrt(radius_bell*radius_bell - radius*radius); 
     
    9589 
    9690 
    97 double Iqxy(double qx, double qy, 
    98         double sld, double solvent_sld, 
    99         double radius_bell, double radius, double length, 
    100         double theta, double phi) 
     91static double 
     92Iqxy(double qab, double qc, 
     93    double sld, double solvent_sld, 
     94    double radius_bell, double radius, double length) 
    10195{ 
    102     double q, sin_alpha, cos_alpha; 
    103     ORIENT_SYMMETRIC(qx, qy, theta, phi, q, sin_alpha, cos_alpha); 
    104     const double qab = q*sin_alpha; 
    105     const double qc = q*cos_alpha; 
    106  
    10796    const double h = -sqrt(square(radius_bell) - square(radius)); 
    10897    const double Aq = _fq(qab, qc, h, radius_bell, radius, 0.5*length); 
Note: See TracChangeset for help on using the changeset viewer.