Changeset 4453136 in sasmodels
- Timestamp:
- Mar 6, 2019 2:37:48 PM (6 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 9bc96c4
- Parents:
- 3199b17
- Location:
- sasmodels/models
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/pearl_necklace.c
r99658f6 r4453136 81 81 radius_from_volume(double radius, double edge_sep, double thick_string, double fp_num_pearls) 82 82 { 83 const int num_pearls = (int) fp_num_pearls +0.5;84 83 const double vol_tot = form_volume(radius, edge_sep, thick_string, fp_num_pearls); 85 84 return cbrt(vol_tot/M_4PI_3); -
sasmodels/models/rpa.c
r71b751d r4453136 25 25 double S0ba,Pbb,S0bb,Pbc,S0bc,Pbd,S0bd; 26 26 double S0ca,S0cb,Pcc,S0cc,Pcd,S0cd; 27 double S0da,S0db,S0dc;27 //double S0da,S0db,S0dc; 28 28 double Pdd,S0dd; 29 29 double Kaa,Kbb,Kcc; 30 30 double Kba,Kca,Kcb; 31 double Kda,Kdb,Kdc,Kdd;31 //double Kda,Kdb,Kdc,Kdd; 32 32 double Zaa,Zab,Zac,Zba,Zbb,Zbc,Zca,Zcb,Zcc; 33 33 double DenT,T11,T12,T13,T21,T22,T23,T31,T32,T33; … … 37 37 double M11,M12,M13,M21,M22,M23,M31,M32,M33; 38 38 double S11,S12,S13,S14,S21,S22,S23,S24; 39 double S31,S32,S33,S34 ,S41,S42,S43,S44;39 double S31,S32,S33,S34; //,S41,S42,S43,S44; 40 40 double Lad,Lbd,Lcd,Nav,Intg; 41 41 … … 115 115 S0cd=(Phicd*vcd*Ncd)*Pcd; 116 116 117 S0da=S0ad;118 S0db=S0bd;119 S0dc=S0cd;117 //S0da=S0ad; 118 //S0db=S0bd; 119 //S0dc=S0cd; 120 120 Pdd=2.0*(exp(-Xd)-1.0+Xd)/(Xd*Xd); // free D chain 121 121 S0dd=N[3]*Phi[3]*v[3]*Pdd; … … 198 198 S0ca=S0ac; 199 199 S0cb=S0bc; 200 S0da=S0ad;201 S0db=S0bd;202 S0dc=S0cd;200 //S0da=S0ad; 201 //S0db=S0bd; 202 //S0dc=S0cd; 203 203 204 204 // self chi parameter is 0 ... of course … … 206 206 Kbb=0.0; 207 207 Kcc=0.0; 208 Kdd=0.0;208 //Kdd=0.0; 209 209 210 210 Kba=Kab; 211 211 Kca=Kac; 212 212 Kcb=Kbc; 213 Kda=Kad;214 Kdb=Kbd;215 Kdc=Kcd;213 //Kda=Kad; 214 //Kdb=Kbd; 215 //Kdc=Kcd; 216 216 217 217 Zaa=Kaa-Kad-Kad; … … 303 303 S33= Q13*S0ca + Q23*S0cb + Q33*S0cc; 304 304 S34=-S31-S32-S33; 305 S41=S14;306 S42=S24;307 S43=S34;308 S44=S11+S22+S33+2.0*S12+2.0*S13+2.0*S23;305 //S41=S14; 306 //S42=S24; 307 //S43=S34; 308 //S44=S11+S22+S33+2.0*S12+2.0*S13+2.0*S23; 309 309 310 310 //calculate contrast where L[i] is the scattering length of i and D is the matrix
Note: See TracChangeset
for help on using the changeset viewer.