Changeset 3a48772 in sasmodels for sasmodels/models/hayter_msa.c
- Timestamp:
- Oct 14, 2016 3:23:40 PM (8 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- a5b6997
- Parents:
- b716cc6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/hayter_msa.c
r0bef47b r3a48772 23 23 double SIdiam, diam, Kappa, cs, IonSt; 24 24 double Perm, Beta; 25 double pi,charge;25 double charge; 26 26 int ierr; 27 27 28 pi = M_PI;29 30 28 diam=2*radius_effective; //in A 31 29 … … 38 36 charge=zz*Elcharge; //in Coulomb (C) 39 37 SIdiam = diam*1.0E-10; //in m 40 Vp= 4.0*pi/3.0*(SIdiam/2.0)*(SIdiam/2.0)*(SIdiam/2.0); //in m^338 Vp=M_4PI_3*cube(SIdiam/2.0); //in m^3 41 39 cs=csalt*6.022E23*1.0E3; //# salt molecules/m^3 42 40 … … 50 48 Kappa=sqrt(2*Beta*IonSt/Perm); //Kappa calc from Ionic strength 51 49 // Kappa=2/SIdiam // Use to compare with HP paper 52 gMSAWave[5]=Beta*charge*charge/( pi*Perm*SIdiam*pow((2.0+Kappa*SIdiam),2));50 gMSAWave[5]=Beta*charge*charge/(M_PI*Perm*SIdiam*pow((2.0+Kappa*SIdiam),2)); 53 51 54 52 // Finally set up dimensionless parameters
Note: See TracChangeset
for help on using the changeset viewer.