| 1 |
+++ |
| 2 |
title = "SphericalSegment" |
| 3 |
+++ |
| 4 |
|
| 5 |
### SphericalSegment |
| 6 |
|
| 7 |
A spherical segment, obtained from a spherical ball by two parallel cuts. |
| 8 |
|
| 9 |
<img src="/img/draw/ff/3d/SphericalSegment.png" width="30%" > |
| 10 |
<img src="/img/draw/ff/2d/SphericalSegment_xy.svg" width="30%"> |
| 11 |
<img src="/img/draw/ff/2d/SphericalSegment_xz.svg" width="30%"> |
| 12 |
|
| 13 |
#### Constructor |
| 14 |
|
| 15 |
```python |
| 16 |
SphericalSegment(R, t, b) |
| 17 |
``` |
| 18 |
|
| 19 |
Parameters: |
| 20 |
- $ R $, radius |
| 21 |
- $ t $, cut from top |
| 22 |
- $ b $, cut from bottom |
| 23 |
|
| 24 |
Constraint: |
| 25 |
|
| 26 |
$ t+b \le 2R $ |
| 27 |
|
| 28 |
#### Usage |
| 29 |
|
| 30 |
As for any other [Form factor](/ref/sample/particle/ff). |
| 31 |
|
| 32 |
#### Implementation |
| 33 |
|
| 34 |
Class {{% ref-class "Sample/HardParticle" "SphericalSegment" %}} inherits from the interface class |
| 35 |
{{% ref-class "Sample/Particle" "Formfactor" %}}. |
| 36 |
|
| 37 |
Computation involves numerical integration in vertical direction, |
| 38 |
|
| 39 |
$$ F(\mathbf{q})=2\pi \exp\[iq_z(R-b)\] \int_{-R+b}^{R-t} \text{d}z \space r_z^2 \frac{J_1(q_{||}r_z)}{q_{||}r_z} \exp(iq_z z), $$ |
| 40 |
|
| 41 |
with the notation |
| 42 |
|
| 43 |
$$ q_{||} := \sqrt{q_x^2 + q_y^2}, \quad r_z:=\sqrt{R^2-z^2} $$ |
| 44 |
|
| 45 |
Volume [has been validated]({{% url-src %}}/Tests/Unit/Sample/FormfactorBasicTest.cpp) |
| 46 |
against |
| 47 |
$$ V=\dfrac{\pi}{3} \[ 4R^3 - 3R(t^2+b^2) + (t^3 + b^3) \]. $$ |
| 48 |
|
| 49 |
#### Related shapes |
| 50 |
|
| 51 |
More general: |
| 52 |
- [SpheroidalSegment](/ref/sample/particle/ff/hard/spheroidalsegment) |
| 53 |
- [EllipsoidalSegment](/ref/sample/particle/ff/hard/ellipsoidalsegment) |
| 54 |
|
| 55 |
More special: |
| 56 |
- [Sphere](/ref/sample/particle/ff/hard/sphere), if $t=b=0.$ |
| 57 |
|
| 58 |
#### Example |
| 59 |
|
| 60 |
Scattering by uncorrelated, oriented truncated spheres for horizontal incidence. Rotation around $y$ axis: |
| 61 |
|
| 62 |
<img src="/img/auto/ff/SphericalSegment.png"> |
| 63 |
|
| 64 |
Generated by {{% ref-ex "sas/sas-ff.py" %}} (`particle_geometry=SphericalSegment`). |
| 65 |
|
| 66 |
#### History |
| 67 |
|
| 68 |
Agrees with the IsGISAXS form factor "Sphere" [Lazzari, IsGISAXS manual v2.6 (2006)](http://www.insp.upmc.fr/oxydes/IsGISAXS/figures/doc/manual.html), Eq. 2.32 and "Truncated sphere" [Renaud et al, Surf Sci Rep 64, 255 (2009)](https://doi.org/10.1016/j.surfrep.2009.07.002), Eq. 228. It is *not* "Truncated sphere" of FitGISAXS, which is without top removal [Babonneau, FitGISAXS v130531 (2013)](https://pprime.fr/wp-content/uploads/2020/01/FitGISAXS_130531.zip). |