+++ title = "Spheroid" +++ ### Spheroid A full spheroid, generated by rotating an ellipse around the vertical axis. #### Constructor ```python Spheroid(R_xy, R_z) ``` Parameters: - $R_{xy}$, horizontal radius - $R_z$, vertical radius **Attention** This has changed in BornAgain 22. Previously, the second argument was $H=2R_z$. #### Usage As for any other [Form factor](/ref/sample/particle/ff). #### Implementation Class {{% ref-class "Sample/HardParticle" "Spheroid" %}} inherits from the interface class {{% ref-class "Sample/Particle" "Formfactor" %}}. Form factor is computed as $$ F(\mathbf{q})=4\pi R_{xy}^2R_z \exp(iq_zR_z) \dfrac{\sin(s) - s \cos(s)\}{s^3} , $$ with the notation $$ s := \sqrt{(R_{xy}q_x)^2 + (R_{xy}q_y)^2+ (R_zq_z)^2}. $$ Volume [has been validated]({{% url-src %}}/Tests/Unit/Sample/FormfactorBasicTest.cpp) against $$ V=\dfrac{4\pi}{3} R_{xy}^2R_z. $$ #### Related shapes More special: - [Sphere](/ref/sample/particle/ff/hard/sphere), if $R_z=R_{xy}.$ More general: - [SpheroidalSegment](/ref/sample/particle/ff/hard/spheroidalsegment), if truncated from the top and/or the bottom. - [Ellipsoid](/ref/sample/particle/ff/hard/ellipsoid) - [EllipsoidalSegment](/ref/sample/particle/ff/hard/ellipsoidalsegment) #### Example Scattering by uncorrelated, oriented spheroids for horizontal incidence. Rotation around $y$ axis: Generated by {{% ref-ex "sas/sas-ff.py" %}} (`particle_geometry=Spheroid`). #### History Replicates the "Full spheroid" in IsGISAXS [Lazzari, IsGISAXS manual v2.6 (2006)](http://www.insp.upmc.fr/oxydes/IsGISAXS/figures/doc/manual.html), Eq. 2.36; [Renaud et al, Surf Sci Rep 64, 255 (2009)](https://doi.org/10.1016/j.surfrep.2009.07.002), Eq. 227, except for wrong factors of 2 in their volume formula and form factor implementation, and "Spheroid" in FitGISAXS [Babonneau, FitGISAXS v130531 (2013)](https://pprime.fr/wp-content/uploads/2020/01/FitGISAXS_130531.zip). Up to BornAgain 1.16, our form factor computation followed IsGISAXS in using numeric integration in the $z$ coordinate. In BornAgain, named "FullSpheroid" up to version 1.19. Up to BornAgain 21, the second argument was $H=2R_z$.