Changeset 13eb1c4 in sasview for sansmodels/src/sans/models/c_extensions
- Timestamp:
- Apr 15, 2010 6:41:29 PM (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:
- 8426622
- Parents:
- 2339249f
- Location:
- sansmodels/src/sans/models/c_extensions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/c_extensions/triaxial_ellipsoid.c
r3c102d4 r13eb1c4 18 18 */ 19 19 double triaxial_ellipsoid_analytical_1D(TriaxialEllipsoidParameters *pars, double q) { 20 double dp[ 6];20 double dp[7]; 21 21 22 22 // Fill paramater array … … 25 25 dp[2] = pars->semi_axisB; 26 26 dp[3] = pars->semi_axisC; 27 dp[4] = pars->contrast; 28 dp[5] = pars->background; 27 dp[4] = pars->sldEll; 28 dp[5] = pars->sldSolv; 29 dp[6] = pars->background; 29 30 30 31 // Call library function to evaluate model … … 133 134 134 135 // Multiply by contrast^2 135 answer *= pars->contrast*pars->contrast;136 answer *= (pars->sldEll- pars->sldSolv)*(pars->sldEll- pars->sldSolv); 136 137 137 138 //normalize by cylinder volume -
sansmodels/src/sans/models/c_extensions/triaxial_ellipsoid.h
r27972c1d r13eb1c4 24 24 // [DEFAULT]=semi_axisC=400.0 [A] 25 25 double semi_axisC; 26 /// Contrast [1/A^(2)] 27 // [DEFAULT]=contrast=5.3e-6 [1/A^(2)] 28 double contrast; 26 /// sldEll [1/A^(2)] 27 // [DEFAULT]=sldEll=1.0e-6 [1/A^(2)] 28 double sldEll; 29 /// sldSolv [1/A^(2)] 30 // [DEFAULT]=sldSolv=6.3e-6 [1/A^(2)] 31 double sldSolv; 29 32 /// Incoherent Background [1/cm] 0.00 30 33 // [DEFAULT]=background=0.0 [1/cm]
Note: See TracChangeset
for help on using the changeset viewer.