Changeset becded3 in sasmodels for sasmodels/models/barbell.c
- Timestamp:
- Oct 17, 2017 6:21:27 PM (7 years ago)
- 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
- 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 8 1 #define INVALID(v) (v.radius_bell < v.radius) 9 2 … … 55 48 } 56 49 57 58 doubleform_volume(double radius_bell,59 60 50 static double 51 form_volume(double radius_bell, 52 double radius, 53 double length) 61 54 { 62 55 // bell radius should never be less than radius when this is called … … 69 62 } 70 63 71 double Iq(double q, double sld, double solvent_sld, 72 double radius_bell, double radius, double length) 64 static double 65 Iq(double q, double sld, double solvent_sld, 66 double radius_bell, double radius, double length) 73 67 { 74 68 const double h = -sqrt(radius_bell*radius_bell - radius*radius); … … 95 89 96 90 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)91 static double 92 Iqxy(double qab, double qc, 93 double sld, double solvent_sld, 94 double radius_bell, double radius, double length) 101 95 { 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 107 96 const double h = -sqrt(square(radius_bell) - square(radius)); 108 97 const double Aq = _fq(qab, qc, h, radius_bell, radius, 0.5*length);
Note: See TracChangeset
for help on using the changeset viewer.