Changeset 6cf1cb3 in sasmodels for sasmodels/models/hollow_cylinder.c
- Timestamp:
- Nov 17, 2015 2:57:11 PM (8 years ago)
- 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:
- 48be770
- Parents:
- 143d596
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/hollow_cylinder.c
r84e6942 r6cf1cb3 4 4 double form_volume(double radius, double core_radius, double length); 5 5 double Iq(double q, double radius, double core_radius, double length, double sld, 6 double solvent_sld , double axis_theta, double axis_phi);6 double solvent_sld); 7 7 double Iqxy(double qx, double qy, double radius, double core_radius, double length, double sld, 8 double solvent_sld, double axis_theta, double axis_phi);8 double solvent_sld, double theta, double phi); 9 9 10 10 // From Igor library … … 48 48 } 49 49 50 //FIXME: Returning values 10^12 times too high51 50 double Iq(double q, double radius, double core_radius, double length, double sld, 52 double solvent_sld , double axis_theta, double axis_phi)51 double solvent_sld) 53 52 { 54 53 int i; … … 74 73 //normalize by volume 75 74 volume = form_volume(radius, core_radius, length); 76 //convert to [cm-1] 77 convert = 1.0e 8;78 answer = norm*scale* volume*convert;75 //convert to [cm-1] given sld*1e6 76 convert = 1.0e-4; 77 answer = norm*scale*convert*volume*volume; 79 78 80 79 return(answer); … … 83 82 //TODO: Add this in 84 83 double Iqxy(double qx, double qy, double radius, double core_radius, double length, double sld, 85 double solvent_sld, double axis_theta, double axis_phi)84 double solvent_sld, double theta, double phi) 86 85 { 87 86 return(0.0);
Note: See TracChangeset
for help on using the changeset viewer.