+++ title = "Sphere" +++ ### Sphere A full sphere. #### Constructor ```python Sphere(R) ``` Parameters: - R, radius #### Usage As for any other [Form factor](/ref/sample/particle/ff). #### Implementation Class {{% ref-class "Sample/HardParticle" "Sphere" %}} inherits from the interface class {{% ref-class "Sample/Particle" "Formfactor" %}}. Form factor is computed as $$ F(\mathbf{q})=4\pi R^3 \exp(iq_z R) \dfrac{\sin(qR) - qR \cos(qR)}{(qR)^3} , $$ with the notation $$ q := \sqrt{q_x^2 + q_y^2+ q_z^2}. $$ Volume [has been validated]({{% url-src %}}/Tests/Unit/Sample/FormfactorBasicTest.cpp) against $$ V=\dfrac{4\pi}{3} R^3. $$ #### Related shapes More general: - [Spheroid](/ref/sample/particle/ff/hard/spheroid) - [Ellipsoid](/ref/sample/particle/ff/hard/ellipsoid) Truncated shapes: - [SphericalSegment](/ref/sample/particle/ff/hard/sphericalsegment) - [SpheroidalSegment](/ref/sample/particle/ff/hard/spheroidalsegment) - [EllipsoidalSegment](/ref/sample/particle/ff/hard/ellipsoidalsegment) #### Example Scattering by uncorrelated spheres for horizontal incidence: Generated by {{% ref-ex "sas/sas-ff.py" %}} (`particle_geometry=Sphere`), {{% ref-ex "fq/Sphere.py" %}}. #### History This form factor is well known; it goes back to Lord Rayleigh. 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.