[8c8cb05] | 1 | #if !defined(o_h) |
---|
| 2 | #define pearl_necklace_h |
---|
| 3 | |
---|
| 4 | /** |
---|
| 5 | * Structure definition for sphere parameters |
---|
| 6 | */ |
---|
| 7 | //[PYTHONCLASS] = PearlNecklaceModel |
---|
| 8 | //[DISP_PARAMS] = radius, edge_separation |
---|
| 9 | //[DESCRIPTION] =<text>Calculate form factor for Pearl Necklace Model |
---|
| 10 | // [Macromol. Symp. 2004, 211, 25-42] |
---|
| 11 | // Parameters: |
---|
| 12 | // background:background |
---|
| 13 | // scale: scale factor |
---|
| 14 | // sld_pearl: the SLD of the pearl spheres |
---|
| 15 | // sld_string: the SLD of the strings |
---|
| 16 | // sld_solv: the SLD of the solvent |
---|
| 17 | // num_pearls: number of the pearls |
---|
| 18 | // radius: the radius of a pearl |
---|
| 19 | // edge_separation: the length of sring segment; surface to surface |
---|
| 20 | // thick_string: thickness (ie, diameter) of the string |
---|
| 21 | // </text> |
---|
| 22 | //[FIXED]= <text>radius.width; edge_separation.width</text> |
---|
| 23 | //[NON_FITTABLE_PARAMS]= <text></text> |
---|
| 24 | //[ORIENTATION_PARAMS]= <text> </text> |
---|
| 25 | |
---|
| 26 | typedef struct { |
---|
| 27 | /// Scale factor |
---|
| 28 | // [DEFAULT]=scale= 1.0 |
---|
| 29 | double scale; |
---|
| 30 | /// radius [A] |
---|
| 31 | // [DEFAULT]=radius=80.0 [A] |
---|
| 32 | double radius; |
---|
| 33 | /// edge_separation |
---|
| 34 | // [DEFAULT]=edge_separation= 350 [A] |
---|
| 35 | double edge_separation; |
---|
| 36 | /// thick_string [A] |
---|
| 37 | // [DEFAULT]=thick_string= 2.5 [A] |
---|
| 38 | double thick_string; |
---|
| 39 | /// num_pearls |
---|
| 40 | // [DEFAULT]=num_pearls= 3 |
---|
| 41 | double num_pearls; |
---|
| 42 | /// sld_pearl |
---|
| 43 | // [DEFAULT]=sld_pearl= 1.0e-06 [1/A^(2)] |
---|
| 44 | double sld_pearl; |
---|
| 45 | /// sld_string |
---|
[463eb76e] | 46 | // [DEFAULT]=sld_string= 1.0e-06 [1/A^(2)] |
---|
[8c8cb05] | 47 | double sld_string; |
---|
| 48 | /// sld_solv |
---|
[463eb76e] | 49 | // [DEFAULT]=sld_solv= 6.3e-06 [1/A^(2)] |
---|
[8c8cb05] | 50 | double sld_solv; |
---|
| 51 | /// Background |
---|
| 52 | // [DEFAULT]=background=0 |
---|
| 53 | double background; |
---|
| 54 | |
---|
| 55 | }PeralNecklaceParameters; |
---|
| 56 | |
---|
| 57 | double pearl_necklace_kernel(double dq[], double q); |
---|
| 58 | |
---|
| 59 | /// 1D scattering function |
---|
| 60 | double pearl_necklace_analytical_1D(PeralNecklaceParameters *pars, double q); |
---|
| 61 | |
---|
| 62 | /// 2D scattering function |
---|
| 63 | double pearl_necklace_analytical_2D(PeralNecklaceParameters *pars, double q, double phi); |
---|
| 64 | double pearl_necklace_analytical_2DXY(PeralNecklaceParameters *pars, double qx, double qy); |
---|
| 65 | |
---|
| 66 | #endif |
---|