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