Changeset 70faf5d in sasview for sansmodels/src/sans/models/c_extensions/cylinder.h
- Timestamp:
- Apr 15, 2009 9:58:33 AM (15 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:
- b22748b
- Parents:
- 179a411
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/c_extensions/cylinder.h
r25a608f5 r70faf5d 5 5 * [DISP_PARAMS] = radius, length, cyl_theta, cyl_phi 6 6 [DESCRIPTION] = <text>P(q,alpha)= scale/V*f(q)^(2)+bkg 7 f(q)= 2*(scatter_sld - solvent_sld)*V*sin(qLcos(alpha/2))/[qLcos(alpha/2)]* 8 J1(qRsin(alpha/2))/[qRsin(alpha)] 9 V: Volume of the cylinder 10 R: Radius of the cylinder 11 L: Length of the cylinder 12 J1: The bessel function 13 alpha: angle betweenthe axis of the cylinder and the q-vector 14 for 1D:the ouput is P(q)=scale/V*integral from pi/2 to zero of f(q)^(2)* 15 sin(alpha)*dalpha+ bkg 7 f(q)= 2*(scatter_sld - solvent_sld)*V 8 *sin(qLcos(alpha/2))/[qLcos(alpha/2)] 9 *J1(qRsin(alpha/2))/[qRsin(alpha)] 10 V: Volume of the cylinder 11 R: Radius of the cylinder 12 L: Length of the cylinder 13 J1: The bessel function 14 alpha: angle betweenthe axis of the cylinder 15 and the q-vector for 1D:the ouput is 16 P(q)=scale/V*integral from pi/2 to zero of 17 f(q)^(2)*sin(alpha)*dalpha+ bkg 16 18 </text> 17 19 [FIXED]= <text>cyl_phi.width; cyl_theta.width; length.width;radius.width</text> 18 20 [ORIENTATION_PARAMS]= <text>cyl_phi; cyl_theta; cyl_phi.width; cyl_theta.width</text> 19 21 20 22 21 23 **/ … … 24 26 // [DEFAULT]=scale=1.0 25 27 double scale; 26 /// Radius of the cylinder [ A]27 // [DEFAULT]=radius=20.0 A28 /// Radius of the cylinder [Å] 29 // [DEFAULT]=radius=20.0 [Å] 28 30 double radius; 29 /// Length of the cylinder [ A]30 // [DEFAULT]=length=400.0 A31 /// Length of the cylinder [Å] 32 // [DEFAULT]=length=400.0 [Å] 31 33 double length; 32 /// Contrast [ A-2]33 // [DEFAULT]=contrast=3.0e-6 A-234 /// Contrast [1/Ų] 35 // [DEFAULT]=contrast=3.0e-6 [1/Ų] 34 36 double contrast; 35 /// Incoherent Background (cm-1) 0.00036 // [DEFAULT]=background=0 cm-137 /// Incoherent Background [1/cm] 0.00 38 // [DEFAULT]=background=0.0 [1/cm] 37 39 double background; 38 40 /// Orientation of the cylinder axis w/respect incoming beam [rad] 39 // [DEFAULT]=cyl_theta=1.0 rad41 // [DEFAULT]=cyl_theta=1.0 [rad] 40 42 double cyl_theta; 41 43 /// Orientation of the cylinder in the plane of the detector [rad] 42 // [DEFAULT]=cyl_phi=1.0 rad44 // [DEFAULT]=cyl_phi=1.0 [rad] 43 45 double cyl_phi; 44 46 45 47 } CylinderParameters; 46 48
Note: See TracChangeset
for help on using the changeset viewer.