1 | #if !defined(flexcyl_ellipX_h) |
---|
2 | #define flexcyl_ellipX_h |
---|
3 | |
---|
4 | /** Structure definition for Flexible cylinder w/ EllipX parameters |
---|
5 | * [PYTHONCLASS] = FlexCylEllipXModel |
---|
6 | * [DISP_PARAMS] = length, kuhn_length, radius, axis_ratio |
---|
7 | [DESCRIPTION] = <text> Note : scale and contrast=sldCyl-sldSolv are both multiplicative factors in the |
---|
8 | model and are perfectly correlated. One or |
---|
9 | both of these parameters must be held fixed |
---|
10 | during model fitting. |
---|
11 | </text> |
---|
12 | [FIXED]= <text>length.width; kuhn_length.width; radius.width; axis_ratio.width</text> |
---|
13 | [ORIENTATION_PARAMS]= <text></text> |
---|
14 | |
---|
15 | |
---|
16 | **/ |
---|
17 | typedef struct { |
---|
18 | /// Scale factor |
---|
19 | // [DEFAULT]=scale=1.0 |
---|
20 | double scale; |
---|
21 | /// Length of the flexible cylinder [A] |
---|
22 | // [DEFAULT]=length=1000 [A] |
---|
23 | double length; |
---|
24 | /// Kuhn length of the flexible cylinder [A] |
---|
25 | // [DEFAULT]=kuhn_length=100 [A] |
---|
26 | double kuhn_length; |
---|
27 | /// Radius of the flexible cylinder [A] |
---|
28 | // [DEFAULT]=radius=20.0 [A] |
---|
29 | double radius; |
---|
30 | /// axis_ratio (major_radius/radius |
---|
31 | // [DEFAULT]=axis_ratio=1.5 |
---|
32 | double axis_ratio; |
---|
33 | /// SLD of cylinder [1/A^(2)] |
---|
34 | // [DEFAULT]=sldCyl=1.0e-6 [1/A^(2)] |
---|
35 | double sldCyl; |
---|
36 | /// SLD of solvent [1/A^(2)] |
---|
37 | // [DEFAULT]=sldSolv=6.3e-6 [1/A^(2)] |
---|
38 | double sldSolv; |
---|
39 | /// Incoherent Background [1/cm] |
---|
40 | // [DEFAULT]=background=0.0001 [1/cm] |
---|
41 | double background; |
---|
42 | } FlexCylEXParameters; |
---|
43 | |
---|
44 | |
---|
45 | |
---|
46 | /// 1D scattering function |
---|
47 | double flexcyl_ellipX_analytical_1D(FlexCylEXParameters *pars, double q); |
---|
48 | |
---|
49 | /// 2D scattering function |
---|
50 | double flexcyl_ellipX_analytical_2D(FlexCylEXParameters *pars, double q, double phi); |
---|
51 | double flexcyl_ellipX_analytical_2DXY(FlexCylEXParameters *pars, double qx, double qy); |
---|
52 | |
---|
53 | #endif |
---|