1 | #if !defined(bcc_h) |
---|
2 | #define bcc_h |
---|
3 | |
---|
4 | /** |
---|
5 | * Structure definition for BCC_ParaCrystal parameters |
---|
6 | */ |
---|
7 | //[PYTHONCLASS] = BCCrystalModel |
---|
8 | //[DISP_PARAMS] = radius,phi, psi, theta |
---|
9 | //[DESCRIPTION] =<text>P(q)=(scale/Vp)*V_lattice*P(q)*Z(q)+bkg where scale is the volume |
---|
10 | // fraction of sphere, |
---|
11 | // Vp = volume of the primary particle, |
---|
12 | // V_lattice = volume correction for |
---|
13 | // for the crystal structure, |
---|
14 | // P(q)= form factor of the sphere (normalized), |
---|
15 | // Z(q)= paracrystalline structure factor |
---|
16 | // for a face centered cubic structure. |
---|
17 | // [Body Centered Cubic ParaCrystal Model] |
---|
18 | // Parameters; |
---|
19 | // scale: volume fraction of spheres |
---|
20 | // bkg:background, R: radius of sphere |
---|
21 | // dnn: Nearest neighbor distance |
---|
22 | // d_factor: Paracrystal distortion factor |
---|
23 | // radius: radius of the spheres |
---|
24 | // sldSph: SLD of the sphere |
---|
25 | // sldSolv: SLD of the solvent |
---|
26 | // |
---|
27 | // </text> |
---|
28 | //[FIXED]= radius.width;phi.width;psi.width; theta.width |
---|
29 | //[ORIENTATION_PARAMS]= <text> phi;psi; theta; phi.width;psi.width; theta.width</text> |
---|
30 | |
---|
31 | typedef struct { |
---|
32 | /// Scale factor |
---|
33 | // [DEFAULT]=scale= 1.0 |
---|
34 | double scale; |
---|
35 | |
---|
36 | /// Nearest neighbor distance [A] |
---|
37 | // [DEFAULT]=dnn=220.0 [A] |
---|
38 | double dnn; |
---|
39 | |
---|
40 | /// Paracrystal distortion factor g |
---|
41 | // [DEFAULT]=d_factor=0.06 |
---|
42 | double d_factor; |
---|
43 | |
---|
44 | /// Radius of sphere [A] |
---|
45 | // [DEFAULT]=radius=40.0 [A] |
---|
46 | double radius; |
---|
47 | |
---|
48 | /// sldSph [1/A^(2)] |
---|
49 | // [DEFAULT]=sldSph= 3.0e-6 [1/A^(2)] |
---|
50 | double sldSph; |
---|
51 | |
---|
52 | /// sldSolv [1/A^(2)] |
---|
53 | // [DEFAULT]=sldSolv= 6.3e-6 [1/A^(2)] |
---|
54 | double sldSolv; |
---|
55 | |
---|
56 | /// Incoherent Background [1/cm] |
---|
57 | // [DEFAULT]=background=0 [1/cm] |
---|
58 | double background; |
---|
59 | /// Orientation of the a1 axis w/respect incoming beam [deg] |
---|
60 | // [DEFAULT]=theta=0.0 [deg] |
---|
61 | double theta; |
---|
62 | /// Orientation of the a2 in the plane of the detector [deg] |
---|
63 | // [DEFAULT]=phi=0.0 [deg] |
---|
64 | double phi; |
---|
65 | /// Orientation of the a3 in the plane of the detector [deg] |
---|
66 | // [DEFAULT]=psi=0.0 [deg] |
---|
67 | double psi; |
---|
68 | |
---|
69 | } BCParameters; |
---|
70 | |
---|
71 | |
---|
72 | |
---|
73 | /// 1D scattering function |
---|
74 | double bc_analytical_1D(BCParameters *pars, double q); |
---|
75 | |
---|
76 | /// 2D scattering function |
---|
77 | double bc_analytical_2D(BCParameters *pars, double q, double phi); |
---|
78 | double bc_analytical_2DXY(BCParameters *pars, double qx, double qy); |
---|
79 | double bc_analytical_2D_scaled(BCParameters *pars, double q, double q_x, double q_y); |
---|
80 | |
---|
81 | #endif |
---|