| 1 |
+++ |
| 2 |
title = "Sphere" |
| 3 |
+++ |
| 4 |
|
| 5 |
### Sphere |
| 6 |
|
| 7 |
A full sphere. |
| 8 |
|
| 9 |
<img src="/img/draw/ff/3d/FullSphere.png" width="30%" > |
| 10 |
<img src="/img/draw/ff/2d/Sphere_xy.svg" width="30%"> |
| 11 |
<img src="/img/draw/ff/2d/Sphere_xz.svg" width="30%"> |
| 12 |
|
| 13 |
#### Constructor |
| 14 |
|
| 15 |
```python |
| 16 |
Sphere(R) |
| 17 |
``` |
| 18 |
|
| 19 |
Parameters: |
| 20 |
- R, radius |
| 21 |
|
| 22 |
#### Usage |
| 23 |
|
| 24 |
As for any other [Form factor](/ref/sample/particle/ff). |
| 25 |
|
| 26 |
#### Implementation |
| 27 |
|
| 28 |
Class {{% ref-class "Sample/HardParticle" "Sphere" %}} inherits from the interface class |
| 29 |
{{% ref-class "Sample/Particle" "Formfactor" %}}. |
| 30 |
|
| 31 |
|
| 32 |
Form factor is computed as |
| 33 |
|
| 34 |
<!--$$ F(\mathbf{q})=\dfrac{4\pi}{q^3} \exp(iq_z R)\left[\sin(qR) - qR \cos(qR)\right] , $$--> |
| 35 |
$$ F(\mathbf{q})=4\pi R^3 \exp(iq_z R) \dfrac{\sin(qR) - qR \cos(qR)}{(qR)^3} , $$ |
| 36 |
with the notation |
| 37 |
$$ q := \sqrt{q_x^2 + q_y^2+ q_z^2}. $$ |
| 38 |
|
| 39 |
Volume [has been validated]({{% url-src %}}/Tests/Unit/Sample/FormfactorBasicTest.cpp) |
| 40 |
against |
| 41 |
$$ V=\dfrac{4\pi}{3} R^3. $$ |
| 42 |
|
| 43 |
#### Related shapes |
| 44 |
|
| 45 |
More general: |
| 46 |
- [Spheroid](/ref/sample/particle/ff/hard/spheroid) |
| 47 |
- [Ellipsoid](/ref/sample/particle/ff/hard/ellipsoid) |
| 48 |
|
| 49 |
Truncated shapes: |
| 50 |
- [SphericalSegment](/ref/sample/particle/ff/hard/sphericalsegment) |
| 51 |
- [SpheroidalSegment](/ref/sample/particle/ff/hard/spheroidalsegment) |
| 52 |
- [EllipsoidalSegment](/ref/sample/particle/ff/hard/ellipsoidalsegment) |
| 53 |
|
| 54 |
#### Example |
| 55 |
|
| 56 |
Scattering by uncorrelated spheres for horizontal incidence: |
| 57 |
|
| 58 |
<img src="/img/auto/ff/Sphere.png" width="50%"> |
| 59 |
<img src="/img/auto/fq/Sphere.png" width="40%"> |
| 60 |
|
| 61 |
Generated by {{% ref-ex "sas/sas-ff.py" %}} (`particle_geometry=Sphere`), |
| 62 |
{{% ref-ex "fq/Sphere.py" %}}. |
| 63 |
|
| 64 |
#### History |
| 65 |
|
| 66 |
This form factor is well known; it goes back to Lord Rayleigh. |
| 67 |
In IsGISAXS, it has been implemented as form factor "Full sphere" [Lazzari, IsGISAXS manual v2.6 (2006)](http://www.insp.upmc.fr/oxydes/IsGISAXS/figures/doc/manual.html), Eq. 2.35; [Renaud et al, Surf Sci Rep 64, 255 (2009)](https://doi.org/10.1016/j.surfrep.2009.07.002), Eq. 226. In BornAgain, named "FullSphere" up to version 1.19. |