1 | /* |
---|
2 | TODO: Add 2D model |
---|
3 | */ |
---|
4 | |
---|
5 | #if !defined(lamellarPS_HG_h) |
---|
6 | #define lamellarPS_HG_h |
---|
7 | /** Structure definition for concentrated lamellar form factor parameters |
---|
8 | * [PYTHONCLASS] = LamellarPSHGModel |
---|
9 | * [DISP_PARAMS] = deltaT,deltaH |
---|
10 | [DESCRIPTION] = <text> Calculates the scattered intensity from a concentrated lamellar phase</text> |
---|
11 | [FIXED]= deltaT.with;deltaH.with |
---|
12 | [ORIENTATION_PARAMS]= |
---|
13 | |
---|
14 | **/ |
---|
15 | typedef struct { |
---|
16 | /// Scale factor |
---|
17 | // [DEFAULT]=scale=1.0 |
---|
18 | double scale; |
---|
19 | /// repeat spacing of the lamellar [A] |
---|
20 | // [DEFAULT]=spacing=40 [A] |
---|
21 | double spacing; |
---|
22 | /// tail thickness [A] |
---|
23 | // [DEFAULT]=deltaT=10 [A] |
---|
24 | double deltaT; |
---|
25 | /// head thickness [A] |
---|
26 | // [DEFAULT]=deltaH=2.0 [A] |
---|
27 | double deltaH; |
---|
28 | /// scattering density length of tails [1/A²] |
---|
29 | // [DEFAULT]=sld_tail=4e-7 [1/A²] |
---|
30 | double sld_tail; |
---|
31 | /// scattering density length of head [1/A²] |
---|
32 | // [DEFAULT]=sld_head=2e-6 [1/A²] |
---|
33 | double sld_head; |
---|
34 | /// scattering density length of solvent [1/A²] |
---|
35 | // [DEFAULT]=sld_solvent=6e-6 [1/A²] |
---|
36 | double sld_solvent; |
---|
37 | /// Number of lamellar plates |
---|
38 | // [DEFAULT]=n_plates=30 |
---|
39 | double n_plates; |
---|
40 | /// caille parameters |
---|
41 | // [DEFAULT]=caille=0.001 |
---|
42 | double caille; |
---|
43 | /// Incoherent Background [1/cm] |
---|
44 | // [DEFAULT]=background=0.001 [1/cm] |
---|
45 | double background; |
---|
46 | |
---|
47 | } LamellarPSHGParameters; |
---|
48 | |
---|
49 | |
---|
50 | |
---|
51 | /// 1D scattering function |
---|
52 | double lamellarPS_HG_analytical_1D(LamellarPSHGParameters *pars, double q); |
---|
53 | |
---|
54 | /// 2D scattering function |
---|
55 | double lamellarPS_HG_analytical_2D(LamellarPSHGParameters *pars, double q, double phi); |
---|
56 | double lamellarPS_HG_analytical_2DXY(LamellarPSHGParameters *pars, double qx, double qy); |
---|
57 | double lamellarPS_HG_analytical_2D_scaled(LamellarPSHGParameters *pars, double q, double q_x, double q_y); |
---|
58 | |
---|
59 | #endif |
---|