core_shell_microgelsmagnetic_modelticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change
on this file since a94046f was
e262dd6,
checked in by Paul Kienzle <pkienzle@…>, 6 years ago
|
futher cleanup; include Yun's hardsphere and sphere models from matlab
|
-
Property mode set to
100644
|
File size:
457 bytes
|
Line | |
---|
1 | function Sq=HSS_SQ(volF,Q) |
---|
2 | %Sq=HSS_SQ(volF,Q), Q is a normalzied scattering wavevector by the diamter of the particle |
---|
3 | |
---|
4 | a1=-(1+2*volF)^2/(1-volF)^4; |
---|
5 | a2=6*volF*(1+0.5*volF)^2/(1-volF)^4; |
---|
6 | a3=volF*a1/2; |
---|
7 | %pi = 3.14159265358979; |
---|
8 | |
---|
9 | cq=4*pi*(a1./Q.^3 .* (sin(Q)-Q.*cos(Q)) + ... |
---|
10 | a2./Q.^4 .* (2*Q.*sin(Q)- (Q.^2 - 2) .* cos(Q) - 2) + ... |
---|
11 | a3./Q.^6 .* ((4*Q.^3 - 24 * Q) .* sin(Q) - (Q.^4 -12 * Q.^2 + 24) .* cos(Q) + 24) ); |
---|
12 | |
---|
13 | Sq = 1 ./ (1 - cq * volF * 6 / pi); |
---|
Note: See
TracBrowser
for help on using the repository browser.