Changeset 318b5bbb in sasview for sansmodels/include
- Timestamp:
- Dec 18, 2012 10:55:24 AM (12 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 6550b64
- Parents:
- 0203ade
- Location:
- sansmodels/include
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/include/core_shell.h
r6319646 r318b5bbb 20 20 // </text> 21 21 //[FIXED]= <text> thickness.width;radius.width</text> 22 //[ORIENTATION_PARAMS]= <text> M0_sld_shell; M_theta_shell; M_phi_shell; M0_sld_core; M_theta_core; M_phi_core;M0_sld_solv; M_theta_solv; M_phi_solv; Up_frac_i; Up_frac_f; Up_theta; </text> 23 //[MAGNETIC_PARAMS]= <text> M0_sld_shell; M_theta_shell; M_phi_shell;M0_sld_core; M_theta_core; M_phi_core; M0_sld_solv; M_theta_solv; M_phi_solv; Up_frac_i; Up_frac_f; Up_theta; </text> 22 24 23 25 … … 48 50 Parameter background; 49 51 52 /// M0_sld_shell 53 // [DEFAULT]=M0_sld_shell=0.0e-6 [1/A^(2)] 54 Parameter M0_sld_shell; 55 56 /// M_theta_shell 57 // [DEFAULT]=M_theta_shell=0.0 [deg] 58 Parameter M_theta_shell; 59 60 /// M_phi_shell 61 // [DEFAULT]=M_phi_shell=0.0 [deg] 62 Parameter M_phi_shell; 63 64 /// M0_sld_core 65 // [DEFAULT]=M0_sld_core=0.0e-6 [1/A^(2)] 66 Parameter M0_sld_core; 67 68 /// M_theta_core 69 // [DEFAULT]=M_theta_core=0.0 [deg] 70 Parameter M_theta_core; 71 72 /// M_phi_core 73 // [DEFAULT]=M_phi_core=0.0 [deg] 74 Parameter M_phi_core; 75 76 /// M0_sld_solv 77 // [DEFAULT]=M0_sld_solv=0.0e-6 [1/A^(2)] 78 Parameter M0_sld_solv; 79 80 /// M_theta_solv 81 // [DEFAULT]=M_theta_solv=0.0 [deg] 82 Parameter M_theta_solv; 83 84 /// M_phi_solv 85 // [DEFAULT]=M_phi_solv=0.0 [deg] 86 Parameter M_phi_solv; 87 88 /// Up_frac_i 89 // [DEFAULT]=Up_frac_i=0.5 [u/(u+d)] 90 Parameter Up_frac_i; 91 92 /// Up_frac_f 93 // [DEFAULT]=Up_frac_f=0.5 [u/(u+d)] 94 Parameter Up_frac_f; 95 96 /// Up_theta 97 // [DEFAULT]=Up_theta=0.0 [deg] 98 Parameter Up_theta; 99 50 100 // Constructor 51 101 CoreShellModel(); -
sansmodels/include/corefourshell.h
r6319646 r318b5bbb 18 18 // </text> 19 19 //[FIXED]=<text> thick_shell4.width; thick_shell1.width;thick_shell2.width;thick_shell3.width;rad_core0.width </text> 20 //[ORIENTATION_PARAMS]= <text> </text> 20 //[ORIENTATION_PARAMS]= <text> M0_sld_shell4; M_theta_shell4; M_phi_shell4;M0_sld_shell3; M_theta_shell3; M_phi_shell3; M0_sld_shell2; M_theta_shell2; M_phi_shell2;M0_sld_shell1; M_theta_shell1; M_phi_shell1; M0_sld_core0; M_theta_core0; M_phi_core0;M0_sld_solv; M_theta_solv; M_phi_solv; Up_frac_i; Up_frac_f; Up_theta; </text> 21 //[MAGNETIC_PARAMS]= <text> M0_sld_shell4; M_theta_shell4; M_phi_shell4;M0_sld_shell3; M_theta_shell3; M_phi_shell3;M0_sld_shell2; M_theta_shell2; M_phi_shell2;M0_sld_shell1; M_theta_shell1; M_phi_shell1; M0_sld_core0; M_theta_core0; M_phi_core0; M0_sld_solv; M_theta_solv; M_phi_solv; Up_frac_i; Up_frac_f; Up_theta; </text> 22 21 23 22 24 class CoreFourShellModel{ … … 75 77 Parameter background; 76 78 79 /// M0_sld_shell1 80 // [DEFAULT]=M0_sld_shell1=0.0e-6 [1/A^(2)] 81 Parameter M0_sld_shell1; 82 83 /// M_theta_shell1 84 // [DEFAULT]=M_theta_shell1=0.0 [deg] 85 Parameter M_theta_shell1; 86 87 /// M_phi_shell1 88 // [DEFAULT]=M_phi_shell1=0.0 [deg] 89 Parameter M_phi_shell1; 90 91 /// M0_sld_shell2 92 // [DEFAULT]=M0_sld_shell2=0.0e-6 [1/A^(2)] 93 Parameter M0_sld_shell2; 94 95 /// M_theta_shell2 96 // [DEFAULT]=M_theta_shell2=0.0 [deg] 97 Parameter M_theta_shell2; 98 99 /// M_phi_shell2 100 // [DEFAULT]=M_phi_shell2=0.0 [deg] 101 Parameter M_phi_shell2; 102 103 /// M0_sld_shell3 104 // [DEFAULT]=M0_sld_shell3=0.0e-6 [1/A^(2)] 105 Parameter M0_sld_shell3; 106 107 /// M_theta_shell3 108 // [DEFAULT]=M_theta_shell3=0.0 [deg] 109 Parameter M_theta_shell3; 110 111 /// M_phi_shell3 112 // [DEFAULT]=M_phi_shell3=0.0 [deg] 113 Parameter M_phi_shell3; 114 115 /// M0_sld_shell4 116 // [DEFAULT]=M0_sld_shell4=0.0e-6 [1/A^(2)] 117 Parameter M0_sld_shell4; 118 119 /// M_theta_shell4 120 // [DEFAULT]=M_theta_shell4=0.0 [deg] 121 Parameter M_theta_shell4; 122 123 /// M_phi_shell4 124 // [DEFAULT]=M_phi_shell4=0.0 [deg] 125 Parameter M_phi_shell4; 126 127 /// M0_sld_core0 128 // [DEFAULT]=M0_sld_core0=0.0e-6 [1/A^(2)] 129 Parameter M0_sld_core0; 130 131 /// M_theta_core0 132 // [DEFAULT]=M_theta_core0=0.0 [deg] 133 Parameter M_theta_core0; 134 135 /// M_phi_core0 136 // [DEFAULT]=M_phi_core0=0.0 [deg] 137 Parameter M_phi_core0; 138 139 /// M0_sld_solv 140 // [DEFAULT]=M0_sld_solv=0.0e-6 [1/A^(2)] 141 Parameter M0_sld_solv; 142 143 /// M_theta_solv 144 // [DEFAULT]=M_theta_solv=0.0 [deg] 145 Parameter M_theta_solv; 146 147 /// M_phi_solv 148 // [DEFAULT]=M_phi_solv=0.0 [deg] 149 Parameter M_phi_solv; 150 151 /// Up_frac_i 152 // [DEFAULT]=Up_frac_i=0.5 [u/(u+d)] 153 Parameter Up_frac_i; 154 155 /// Up_frac_f 156 // [DEFAULT]=Up_frac_f=0.5 [u/(u+d)] 157 Parameter Up_frac_f; 158 159 /// Up_theta 160 // [DEFAULT]=Up_theta=0.0 [deg] 161 Parameter Up_theta; 162 77 163 // Constructor 78 164 CoreFourShellModel(); -
sansmodels/include/cylinder.h
r6319646 r318b5bbb 21 21 </text> 22 22 [FIXED]= <text>cyl_phi.width; cyl_theta.width; length.width;radius.width</text> 23 [ORIENTATION_PARAMS]= <text>cyl_phi; cyl_theta; cyl_phi.width; cyl_theta.width </text>24 23 [ORIENTATION_PARAMS]= <text>cyl_phi; cyl_theta; cyl_phi.width; cyl_theta.width;M0_sld_cyl; M_theta_cyl; M_phi_cyl;M0_sld_solv; M_theta_solv; M_phi_solv; Up_frac_i; Up_frac_f; Up_theta;</text> 24 [MAGNETIC_PARAMS]= <text> M0_sld_cyl; M_theta_cyl; M_phi_cyl; M0_sld_solv; M_theta_solv; M_phi_solv; Up_frac_i; Up_frac_f; Up_theta; </text> 25 25 26 26 **/ … … 61 61 Parameter cyl_phi; 62 62 63 /// M0_sld_cyl 64 // [DEFAULT]=M0_sld_cyl=0.0e-6 [1/A^(2)] 65 Parameter M0_sld_cyl; 66 67 /// M_theta_cyl 68 // [DEFAULT]=M_theta_cyl=0.0 [deg] 69 Parameter M_theta_cyl; 70 71 /// M_phi_cyl 72 // [DEFAULT]=M_phi_cyl=0.0 [deg] 73 Parameter M_phi_cyl; 74 75 /// M0_sld_solv 76 // [DEFAULT]=M0_sld_solv=0.0e-6 [1/A^(2)] 77 Parameter M0_sld_solv; 78 79 /// M_theta_solv 80 // [DEFAULT]=M_theta_solv=0.0 [deg] 81 Parameter M_theta_solv; 82 83 /// M_phi_solv 84 // [DEFAULT]=M_phi_solv=0.0 [deg] 85 Parameter M_phi_solv; 86 87 /// Up_frac_i 88 // [DEFAULT]=Up_frac_i=0.5 [u/(u+d)] 89 Parameter Up_frac_i; 90 91 /// Up_frac_f 92 // [DEFAULT]=Up_frac_f=0.5 [u/(u+d)] 93 Parameter Up_frac_f; 94 95 /// Up_theta 96 // [DEFAULT]=Up_theta=0.0 [deg] 97 Parameter Up_theta; 98 63 99 // Constructor 64 100 CylinderModel(); -
sansmodels/include/libmultifunc/libfunc.h
r5da3cc5 r318b5bbb 1 1 #if !defined(o_h) 2 2 #define libfunc_h 3 typedef struct { 4 double uu; 5 double dd; 6 double re_ud; 7 double im_ud; 8 double re_du; 9 double im_du; 10 } polar_sld; 3 11 4 12 int factorial(int i); … … 9 17 10 18 double gamln(double x); 19 20 polar_sld cal_msld(int isangle, double qx, double qy, double bn, double m01, double mtheta1, 21 double mphi1, double spinfraci, double spinfracf, double spintheta); 11 22 12 23 void gser(float *gamser, float a, float x, float *gln); -
sansmodels/include/parallelepiped.h
r6319646 r318b5bbb 17 17 </text> 18 18 [FIXED]= <text>short_a.width; short_b.width; long_c.width;parallel_phi.width;parallel_psi.width; parallel_theta.width</text> 19 [ORIENTATION_PARAMS]= <text>parallel_phi;parallel_psi; parallel_theta; parallel_phi.width;parallel_psi.width; parallel_theta.width </text>20 19 [ORIENTATION_PARAMS]= <text>parallel_phi;parallel_psi; parallel_theta; parallel_phi.width;parallel_psi.width; parallel_theta.width; M0_sld_pipe; M_theta_pipe; M_phi_pipe;M0_sld_solv; M_theta_solv; M_phi_solv; Up_frac_i; Up_frac_f; Up_theta;</text> 20 [MAGNETIC_PARAMS]= <text> M0_sld_pipe; M_theta_pipe; M_phi_pipe; M0_sld_solv; M_theta_solv; M_phi_solv; Up_frac_i; Up_frac_f; Up_theta; </text> 21 21 22 22 **/ … … 56 56 Parameter parallel_psi; 57 57 58 /// M0_sld_pipe 59 // [DEFAULT]=M0_sld_pipe=0.0e-6 [1/A^(2)] 60 Parameter M0_sld_pipe; 61 62 /// M_theta_pipe 63 // [DEFAULT]=M_theta_pipe=0.0 [deg] 64 Parameter M_theta_pipe; 65 66 /// M_phi_pipe 67 // [DEFAULT]=M_phi_pipe=0.0 [deg] 68 Parameter M_phi_pipe; 69 70 /// M0_sld_solv 71 // [DEFAULT]=M0_sld_solv=0.0e-6 [1/A^(2)] 72 Parameter M0_sld_solv; 73 74 /// M_theta_solv 75 // [DEFAULT]=M_theta_solv=0.0 [deg] 76 Parameter M_theta_solv; 77 78 /// M_phi_solv 79 // [DEFAULT]=M_phi_solv=0.0 [deg] 80 Parameter M_phi_solv; 81 82 /// Up_frac_i 83 // [DEFAULT]=Up_frac_i=0.5 [u/(u+d)] 84 Parameter Up_frac_i; 85 86 /// Up_frac_f 87 // [DEFAULT]=Up_frac_f=0.5 [u/(u+d)] 88 Parameter Up_frac_f; 89 90 /// Up_theta 91 // [DEFAULT]=Up_theta=0.0 [deg] 92 Parameter Up_theta; 93 58 94 // Constructor 59 95 ParallelepipedModel(); -
sansmodels/include/sphere.h
rfa6db8b r318b5bbb 18 18 // </text> 19 19 //[FIXED]= radius.width 20 //[ORIENTATION_PARAMS]= <text> </text> 20 //[ORIENTATION_PARAMS]= <text> M0_sld_sph; M_theta_sph; M_phi_sph;M0_sld_solv; M_theta_solv; M_phi_solv; Up_frac_i; Up_frac_f; Up_theta; </text> 21 //[MAGNETIC_PARAMS]= <text> M0_sld_sph; M_theta_sph; M_phi_sph; M0_sld_solv; M_theta_solv; M_phi_solv; Up_frac_i; Up_frac_f; Up_theta; </text> 21 22 //[CATEGORY] = Shapes & Spheres 22 23 23 24 class SphereModel{ 24 25 public: 25 26 27 28 26 // Model parameters 27 /// Scale factor 28 // [DEFAULT]=scale= 1.0 29 Parameter scale; 29 30 30 31 32 31 /// Radius of sphere [A] 32 // [DEFAULT]=radius=60.0 [A] 33 Parameter radius; 33 34 34 35 36 35 /// sldSph [1/A^(2)] 36 // [DEFAULT]=sldSph= 2.0e-6 [1/A^(2)] 37 Parameter sldSph; 37 38 38 39 40 39 /// sldSolv [1/A^(2)] 40 // [DEFAULT]=sldSolv= 1.0e-6 [1/A^(2)] 41 Parameter sldSolv; 41 42 42 /// Incoherent Background [1/cm]43 // [DEFAULT]=background=0 [1/cm]44 Parameter background;43 /// Incoherent Background [1/cm] 44 // [DEFAULT]=background=0 [1/cm] 45 Parameter background; 45 46 46 // Constructor 47 SphereModel(); 47 /// M0_sld_sph 48 // [DEFAULT]=M0_sld_sph=0.0e-6 [1/A^(2)] 49 Parameter M0_sld_sph; 48 50 49 // Operators to get I(Q) 50 double operator()(double q); 51 double operator()(double qx, double qy); 52 double calculate_ER(); 53 double calculate_VR(); 54 double evaluate_rphi(double q, double phi); 51 /// M_theta_sph 52 // [DEFAULT]=M_theta_sph=0.0 [deg] 53 Parameter M_theta_sph; 54 55 /// M_phi_sph 56 // [DEFAULT]=M_phi_sph=0.0 [deg] 57 Parameter M_phi_sph; 58 59 /// M0_sld_solv 60 // [DEFAULT]=M0_sld_solv=0.0e-6 [1/A^(2)] 61 Parameter M0_sld_solv; 62 63 /// M_theta_solv 64 // [DEFAULT]=M_theta_solv=0.0 [deg] 65 Parameter M_theta_solv; 66 67 /// M_phi_solv 68 // [DEFAULT]=M_phi_solv=0.0 [deg] 69 Parameter M_phi_solv; 70 71 /// Up_frac_i 72 // [DEFAULT]=Up_frac_i=0.5 [u/(u+d)] 73 Parameter Up_frac_i; 74 75 /// Up_frac_f 76 // [DEFAULT]=Up_frac_f=0.5 [u/(u+d)] 77 Parameter Up_frac_f; 78 79 /// Up_theta 80 // [DEFAULT]=Up_theta=0.0 [deg] 81 Parameter Up_theta; 82 83 84 // Constructor 85 SphereModel(); 86 87 // Operators to get I(Q) 88 double operator()(double q); 89 double operator()(double qx, double qy); 90 double calculate_ER(); 91 double calculate_VR(); 92 double evaluate_rphi(double q, double phi); 55 93 }; 56 94
Note: See TracChangeset
for help on using the changeset viewer.