[ae3ce4e] | 1 | /* |
---|
| 2 | libCylinderFit.h -- equates for CylinderFit XOP |
---|
| 3 | */ |
---|
| 4 | |
---|
| 5 | |
---|
| 6 | /* Prototypes */ |
---|
| 7 | /* IGOR Fit Functions */ |
---|
| 8 | double CylinderForm(double dp[], double q); |
---|
| 9 | double EllipCyl76(double dp[], double q); |
---|
| 10 | double EllipCyl20(double dp[], double q); |
---|
| 11 | double TriaxialEllipsoid(double dp[], double q); |
---|
| 12 | double Parallelepiped(double dp[], double q); |
---|
| 13 | double HollowCylinder(double dp[], double q); |
---|
| 14 | double EllipsoidForm(double dp[], double q); |
---|
| 15 | double Cyl_PolyRadius(double dp[], double q); |
---|
| 16 | double Cyl_PolyLength(double dp[], double q); |
---|
| 17 | double CoreShellCylinder(double dp[], double q); |
---|
| 18 | double OblateForm(double dp[], double q); |
---|
| 19 | double ProlateForm(double dp[], double q); |
---|
| 20 | double FlexExclVolCyl(double dp[], double q); |
---|
| 21 | double FlexCyl_PolyLen(double dp[], double q); |
---|
| 22 | double FlexCyl_PolyRad(double dp[], double q); |
---|
| 23 | double FlexCyl_Ellip(double dp[], double q); |
---|
| 24 | double PolyCoShCylinder(double dp[], double q); |
---|
| 25 | double StackedDiscs(double dp[], double q); |
---|
| 26 | double LamellarFF(double dp[], double q); |
---|
| 27 | double LamellarFF_HG(double dp[], double q); |
---|
| 28 | double LamellarPS(double dp[], double q); |
---|
| 29 | double LamellarPS_HG(double dp[], double q); |
---|
| 30 | |
---|
| 31 | /* internal functions */ |
---|
| 32 | double CylKernel(double qq, double rr,double h, double theta); |
---|
| 33 | double NR_BessJ1(double x); |
---|
| 34 | double EllipCylKernel(double qq, double ra,double nu, double theta); |
---|
| 35 | double TriaxialKernel(double q, double aa, double bb, double cc, double dx, double dy); |
---|
[975ec8e] | 36 | double lamellar_kernel(double dp[], double q); |
---|
[ae3ce4e] | 37 | double PPKernel(double aa, double mu, double uu); |
---|
| 38 | double HolCylKernel(double qq, double rcore, double rshell, double length, double dum); |
---|
| 39 | double EllipsoidKernel(double qq, double a, double va, double dum); |
---|
| 40 | double Cyl_PolyRadKernel(double q, double radius, double length, double zz, double delrho, double dumRad); |
---|
| 41 | double SchulzPoint_cpr(double dumRad, double radius, double zz); |
---|
| 42 | double Cyl_PolyLenKernel(double q, double radius, double len_avg, double zz, double delrho, double dumLen); |
---|
| 43 | double CoreShellCylKernel(double qq, double rcore, double thick, double rhoc, double rhos, double rhosolv, double length, double dum); |
---|
| 44 | double gfn4(double xx, double crmaj, double crmin, double trmaj, double trmin, double delpc, double delps, double qq); |
---|
| 45 | double gfn2(double xx, double crmaj, double crmin, double trmaj, double trmin, double delpc, double delps, double qq); |
---|
| 46 | double FlePolyLen_kernel(double q, double radius, double length, double lb, double zz, double delrho, double zi); |
---|
| 47 | double FlePolyRad_kernel(double q, double ravg, double Lc, double Lb, double zz, double delrho, double zi); |
---|
| 48 | double EllipticalCross_fn(double qq, double a, double b); |
---|
| 49 | double CScyl(double qq, double rad, double radthick, double facthick, double rhoc, double rhos, double rhosolv, double length, double dum); |
---|
| 50 | double CSCylIntegration(double qq, double rad, double radthick, double facthick, double rhoc, double rhos, double rhosolv, double length); |
---|
| 51 | double Stackdisc_kern(double qq, double rcore, double rhoc, double rhol, double rhosolv, double length, double thick, double dum, double gsd, double d, double N); |
---|
| 52 | |
---|
| 53 | /////////functions for WRC implementation of flexible cylinders |
---|
| 54 | static double Sk_WR(double q, double L, double b); |
---|
| 55 | static double w_WR(double x); |
---|
| 56 | static double u1(double q, double L, double b); |
---|
| 57 | static double u_WR(double q, double L, double b); |
---|
| 58 | static double Rgsquarezero(double q, double L, double b); |
---|
| 59 | static double Rgsquareshort(double q, double L, double b); |
---|
| 60 | static double Rgsquare(double q, double L, double b); |
---|
| 61 | static double AlphaSquare(double x); |
---|
| 62 | static double miu(double x); |
---|
| 63 | static double Sdebye(double q, double L, double b); |
---|
| 64 | static double Sdebye1(double q, double L, double b); |
---|
| 65 | static double Sexv(double q, double L, double b); |
---|
| 66 | static double Sexvnew(double q, double L, double b); |
---|
| 67 | static double a2short(double q, double L, double b, double p1short, double p2short, double q0); |
---|
| 68 | static double a1short(double q, double L, double b, double p1short, double p2short, double q0); |
---|
| 69 | static double a2long(double q, double L, double b, double p1, double p2, double q0); |
---|
| 70 | static double sech_WR(double x); |
---|
| 71 | static double a1long(double q, double L, double b, double p1, double p2, double q0); |
---|
| 72 | static double gammaln(double xx); |
---|