[27a0771] | 1 | /* |
---|
| 2 | TODO: Add 2D model |
---|
| 3 | */ |
---|
| 4 | |
---|
| 5 | #if !defined(lamellarPS_h) |
---|
| 6 | #define lamellarPS_h |
---|
| 7 | /** Structure definition for concentrated lamellar form factor parameters |
---|
| 8 | * [PYTHONCLASS] = LamellarPSModel |
---|
[c1c29b6] | 9 | * [DISP_PARAMS] = delta, spacing |
---|
[96b59384] | 10 | [DESCRIPTION] = <text>[Concentrated Lamellar Form Factor] Calculates the scattered |
---|
| 11 | intensity from a lyotropic lamellar phase. |
---|
| 12 | The intensity (form factor and structure |
---|
| 13 | factor)calculated is for lamellae of |
---|
| 14 | uniform scattering length density that |
---|
| 15 | are randomly distributed in solution |
---|
| 16 | (a powder average). The lamellae thickness |
---|
| 17 | is polydisperse. The model can also |
---|
[b4679de] | 18 | be applied to large, multi-lamellar vesicles. |
---|
| 19 | No resolution smeared version is included |
---|
| 20 | in the structure factor of this model. |
---|
| 21 | *Parameters: spacing = repeat spacing, |
---|
| 22 | delta = bilayer thickness, |
---|
| 23 | contrast = SLD_solvent - SLD_bilayer |
---|
| 24 | n_plate = # of Lamellar plates |
---|
| 25 | caille = Caille parameter (<0.8 or <1) |
---|
| 26 | background = incoherent bgd |
---|
| 27 | scale = scale factor |
---|
| 28 | </text> |
---|
[c1c29b6] | 29 | [FIXED]= <text>delta.width; spacing.width</text> |
---|
[b4679de] | 30 | [ORIENTATION_PARAMS]= |
---|
[27a0771] | 31 | |
---|
| 32 | **/ |
---|
| 33 | typedef struct { |
---|
| 34 | /// Scale factor |
---|
| 35 | // [DEFAULT]=scale=1.0 |
---|
| 36 | double scale; |
---|
| 37 | /// repeat spacing of the lamellar [A] |
---|
| 38 | // [DEFAULT]=spacing=400 [A] |
---|
| 39 | double spacing; |
---|
| 40 | /// bilayer thicknes [A] |
---|
| 41 | // [DEFAULT]=delta=30 [A] |
---|
| 42 | double delta; |
---|
[27972c1d] | 43 | /// Contrast [1/A^(2)] |
---|
| 44 | // [DEFAULT]=contrast=5.3e-6 [1/A^(2)] |
---|
[27a0771] | 45 | double contrast; |
---|
| 46 | /// Number of lamellar plates |
---|
| 47 | // [DEFAULT]=n_plates=20 |
---|
| 48 | double n_plates; |
---|
| 49 | /// caille parameters |
---|
| 50 | // [DEFAULT]=caille=0.1 |
---|
| 51 | double caille; |
---|
[b4679de] | 52 | /// Incoherent Background [1/cm] |
---|
[27a0771] | 53 | // [DEFAULT]=background=0.0 [1/cm] |
---|
| 54 | double background; |
---|
[b4679de] | 55 | |
---|
[27a0771] | 56 | } LamellarPSParameters; |
---|
| 57 | |
---|
[c1c29b6] | 58 | /// kernel |
---|
| 59 | double LamellarPS_kernel(double dp[], double q); |
---|
[27a0771] | 60 | /// 1D scattering function |
---|
| 61 | double lamellarPS_analytical_1D(LamellarPSParameters *pars, double q); |
---|
| 62 | |
---|
| 63 | /// 2D scattering function |
---|
| 64 | double lamellarPS_analytical_2D(LamellarPSParameters *pars, double q, double phi); |
---|
| 65 | double lamellarPS_analytical_2DXY(LamellarPSParameters *pars, double qx, double qy); |
---|
| 66 | |
---|
| 67 | #endif |
---|