-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
462 changed files
with
88,715 additions
and
28,208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: fa31d87f544e0cbe6f06c2f39ff5004a | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: a137ee188497ae683b66cd14ad059f9c | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
double Iq(double q, double cor_length) | ||
{ | ||
double denominator = 1 + (q*cor_length)*(q*cor_length); | ||
return 1/denominator; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
double Iq(double q, double rg) | ||
{ | ||
double exponent = fabs(rg)*rg*q*q/3.0; | ||
double value = exp(-exponent); | ||
return value; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
_downloads/431f2192e6effdcf6fde7c0ce58fa153/stickyhardsphere.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
double Iq(double q, double radius_effective, double volfraction, double perturb, double stickiness) | ||
{ | ||
double onemineps,eta; | ||
double sig,aa,etam1,etam1sq,qa,qb,qc,radic; | ||
double lam,lam2,test,mu,alpha,beta; | ||
double kk,k2,k3,ds,dc,aq1,aq2,aq3,aq,bq1,bq2,bq3,bq,sq; | ||
|
||
onemineps = 1.0-perturb; | ||
eta = volfraction/onemineps/onemineps/onemineps; | ||
|
||
sig = 2.0 * radius_effective; | ||
aa = sig/onemineps; | ||
etam1 = 1.0 - eta; | ||
etam1sq=etam1*etam1; | ||
//C | ||
//C SOLVE QUADRATIC FOR LAMBDA | ||
//C | ||
qa = eta/6.0; | ||
qb = stickiness + eta/etam1; | ||
qc = (1.0 + eta/2.0)/etam1sq; | ||
radic = qb*qb - 2.0*qa*qc; | ||
if(radic<0) { | ||
//if(x>0.01 && x<0.015) | ||
// Print "Lambda unphysical - both roots imaginary" | ||
//endif | ||
return(-1.0); | ||
} | ||
//C KEEP THE SMALLER ROOT, THE LARGER ONE IS UNPHYSICAL | ||
radic = sqrt(radic); | ||
lam = (qb-radic)/qa; | ||
lam2 = (qb+radic)/qa; | ||
if(lam2<lam) { | ||
lam = lam2; | ||
} | ||
test = 1.0 + 2.0*eta; | ||
mu = lam*eta*etam1; | ||
if(mu>test) { | ||
//if(x>0.01 && x<0.015) | ||
// Print "Lambda unphysical mu>test" | ||
//endif | ||
return(-1.0); | ||
} | ||
alpha = (1.0 + 2.0*eta - mu)/etam1sq; | ||
beta = (mu - 3.0*eta)/(2.0*etam1sq); | ||
//C | ||
//C CALCULATE THE STRUCTURE FACTOR | ||
//C | ||
kk = q*aa; | ||
k2 = kk*kk; | ||
k3 = kk*k2; | ||
SINCOS(kk,ds,dc); | ||
//ds = sin(kk); | ||
//dc = cos(kk); | ||
aq1 = ((ds - kk*dc)*alpha)/k3; | ||
aq2 = (beta*(1.0-dc))/k2; | ||
aq3 = (lam*ds)/(12.0*kk); | ||
aq = 1.0 + 12.0*eta*(aq1+aq2-aq3); | ||
// | ||
bq1 = alpha*(0.5/kk - ds/k2 + (1.0 - dc)/k3); | ||
bq2 = beta*(1.0/kk - ds/k2); | ||
bq3 = (lam/12.0)*((1.0 - dc)/kk); | ||
bq = 12.0*eta*(bq1+bq2-bq3); | ||
// | ||
sq = 1.0/(aq*aq +bq*bq); | ||
|
||
return(sq); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.