#if !defined(sphere_h) #define sphere_h /** * Structure definition for sphere parameters */ //[PYTHONCLASS] = SphereModel //[DISP_PARAMS] = radius //[DESCRIPTION] =P(q)=(scale/V)*[3V(sldSph-sldSolv)*(sin(qR)-qRcos(qR)) // /(qR)^3]^(2)+bkg // // bkg:background, R: radius of sphere // V:The volume of the scatter // sldSph: the SLD of the sphere // sldSolv: the SLD of the solvent // // //[FIXED]= radius.width //[ORIENTATION_PARAMS]= typedef struct { /// Scale factor // [DEFAULT]=scale= 1.0 double scale; /// Radius of sphere [A] // [DEFAULT]=radius=60.0 [A] double radius; /// sldSph [1/A^(2)] // [DEFAULT]=sldSph= 2.0e-6 [1/A^(2)] double sldSph; /// sldSolv [1/A^(2)] // [DEFAULT]=sldSolv= 1.0e-6 [1/A^(2)] double sldSolv; /// Incoherent Background [1/cm] // [DEFAULT]=background=0 [1/cm] double background; } SphereParameters; /// 1D scattering function //double sphere_analytical_1D(SphereParameters *pars, double q); /// 2D scattering function //double sphere_analytical_2D(SphereParameters *pars, double q, double phi); //double sphere_analytical_2DXY(SphereParameters *pars, double qx, double qy); #endif