[27fea3f] | 1 | #if !defined(hollow_cylinder_h) |
---|
| 2 | #define hollow_cylinder_h |
---|
| 3 | |
---|
| 4 | /** |
---|
| 5 | * Structure definition for hollow cylinder parameters |
---|
| 6 | */ |
---|
| 7 | //[PYTHONCLASS] = HollowCylinderModel |
---|
[e2afadf] | 8 | //[DISP_PARAMS] = core_radius, radius, length, axis_theta, axis_phi |
---|
[7ad9887] | 9 | //[DESCRIPTION] = <text> P(q) = scale*<f*f>/Vol + bkg, where f is the scattering amplitude. |
---|
| 10 | // core_radius = the radius of core |
---|
| 11 | // radius = the radius of shell |
---|
| 12 | // length = the total length of the cylinder |
---|
[f10063e] | 13 | // sldCyl = SLD of the shell |
---|
| 14 | // sldSolv = SLD of the solvent |
---|
[7ad9887] | 15 | // background = incoherent background |
---|
| 16 | // </text> |
---|
[e2afadf] | 17 | //[FIXED]= <text> axis_phi.width; axis_theta.width; length.width;core_radius.width; radius</text> |
---|
[27fea3f] | 18 | //[ORIENTATION_PARAMS]= axis_phi; axis_theta;axis_phi.width; axis_theta.width |
---|
| 19 | |
---|
| 20 | |
---|
| 21 | typedef struct { |
---|
| 22 | /// Scale factor |
---|
| 23 | // [DEFAULT]=scale=1.0 |
---|
| 24 | double scale; |
---|
| 25 | |
---|
| 26 | /// Core radius [A] |
---|
| 27 | // [DEFAULT]=core_radius=20.0 [A] |
---|
| 28 | double core_radius; |
---|
| 29 | |
---|
| 30 | /// Shell radius [A] |
---|
[e2afadf] | 31 | // [DEFAULT]=radius=30.0 [A] |
---|
| 32 | double radius; |
---|
[27fea3f] | 33 | |
---|
| 34 | /// Hollow cylinder length [A] |
---|
| 35 | // [DEFAULT]=length=400.0 [A] |
---|
| 36 | double length; |
---|
| 37 | |
---|
[f10063e] | 38 | /// SLD_cylinder [1/A^(2)] |
---|
| 39 | // [DEFAULT]=sldCyl=6.3e-6 [1/A^(2)] |
---|
| 40 | double sldCyl; |
---|
| 41 | |
---|
| 42 | /// SLD_solvent [1/A^(2)] |
---|
| 43 | // [DEFAULT]=sldSolv=1.0e-6 [1/A^(2)] |
---|
| 44 | double sldSolv; |
---|
[27fea3f] | 45 | |
---|
| 46 | /// Incoherent Background [1/cm] |
---|
| 47 | // [DEFAULT]=background=0.01 [1/cm] |
---|
| 48 | double background; |
---|
| 49 | |
---|
[4628e31] | 50 | /// Orientation of the long axis of the hollow cylinder w/respect incoming beam [deg] |
---|
| 51 | // [DEFAULT]=axis_theta=90.0 [deg] |
---|
[27fea3f] | 52 | double axis_theta; |
---|
| 53 | |
---|
[4628e31] | 54 | /// Orientation of the long axis of the hollow cylinder in the plane of the detector [deg] |
---|
| 55 | // [DEFAULT]=axis_phi=0.0 [deg] |
---|
[27fea3f] | 56 | double axis_phi; |
---|
| 57 | |
---|
| 58 | } HollowCylinderParameters; |
---|
| 59 | |
---|
| 60 | |
---|
| 61 | |
---|
| 62 | /// 1D scattering function |
---|
| 63 | double hollow_cylinder_analytical_1D(HollowCylinderParameters *pars, double q); |
---|
| 64 | |
---|
| 65 | /// 2D scattering function |
---|
| 66 | double hollow_cylinder_analytical_2D(HollowCylinderParameters *pars, double q, double phi); |
---|
| 67 | double hollow_cylinder_analytical_2DXY(HollowCylinderParameters *pars, double qx, double qy); |
---|
| 68 | double hollow_cylinder_analytical_2D_scaled(HollowCylinderParameters *pars, double q, double q_x, double q_y); |
---|
| 69 | |
---|
| 70 | #endif |
---|