[503a972] | 1 | #if !defined(lamellarPC_h) |
---|
| 2 | #define lamellarPC_h |
---|
| 3 | #include "parameters.hh" |
---|
| 4 | |
---|
| 5 | /** Structure definition for lamellar_paracrystal parameters |
---|
| 6 | * [PYTHONCLASS] = LamellarPCrystalModel |
---|
| 7 | * [DISP_PARAMS] = thickness |
---|
| 8 | [DESCRIPTION] = <text>[Lamellar ParaCrystal Model] Parameter Definitions: scale = scale factor, |
---|
| 9 | background = incoherent background |
---|
| 10 | thickness = lamellar thickness, |
---|
| 11 | sld_layer = layer scattering length density , |
---|
| 12 | sld_solvent = solvent scattering length density. |
---|
| 13 | Nlayers = no. of lamellar layers |
---|
| 14 | spacing = spacing between layers |
---|
| 15 | pd_spacing = polydispersity of spacing |
---|
| 16 | Note: This model can be used for large |
---|
| 17 | multilamellar vesicles. |
---|
| 18 | |
---|
| 19 | </text> |
---|
| 20 | [FIXED]= thickness.width; |
---|
| 21 | [ORIENTATION_PARAMS]= |
---|
| 22 | **/ |
---|
| 23 | |
---|
| 24 | class LamellarPCrystalModel{ |
---|
| 25 | public: |
---|
| 26 | // Model parameters |
---|
| 27 | /// Scale factor |
---|
| 28 | // [DEFAULT]=scale=1.0 |
---|
| 29 | Parameter scale; |
---|
| 30 | /// thickness |
---|
| 31 | // [DEFAULT]=thickness=33.0 [A] |
---|
| 32 | Parameter thickness; |
---|
| 33 | /// Nlayers |
---|
| 34 | // [DEFAULT]=Nlayers=20.0 |
---|
| 35 | Parameter Nlayers; |
---|
| 36 | /// spacing |
---|
| 37 | // [DEFAULT]=spacing=250.0 [A] |
---|
| 38 | Parameter spacing; |
---|
| 39 | /// poly-dispersity of spacing |
---|
| 40 | // [DEFAULT]=pd_spacing=0.0 |
---|
| 41 | Parameter pd_spacing; |
---|
| 42 | /// layer scrattering length density[1/A^(2)] |
---|
| 43 | // [DEFAULT]=sld_layer=1.0e-6 [1/A^(2)] |
---|
| 44 | Parameter sld_layer; |
---|
| 45 | /// solvent scrattering length density[1/A^(2)] |
---|
| 46 | // [DEFAULT]=sld_solvent=6.34e-6 [1/A^(2)] |
---|
| 47 | Parameter sld_solvent; |
---|
| 48 | /// Incoherent Background [1/cm] 0.00 |
---|
| 49 | // [DEFAULT]=background=0.0 [1/cm] |
---|
| 50 | Parameter background; |
---|
| 51 | |
---|
| 52 | // Constructor |
---|
| 53 | LamellarPCrystalModel(); |
---|
| 54 | |
---|
| 55 | // Operators to get I(Q) |
---|
| 56 | double operator()(double q); |
---|
| 57 | double operator()(double qx, double qy); |
---|
| 58 | double calculate_ER(); |
---|
| 59 | double evaluate_rphi(double q, double phi); |
---|
| 60 | }; |
---|
| 61 | |
---|
| 62 | #endif |
---|