| 1 |
+++ |
| 2 |
title = "Prism3" |
| 3 |
+++ |
| 4 |
|
| 5 |
### Prism3 |
| 6 |
|
| 7 |
A prism based on equlateral triangle. |
| 8 |
|
| 9 |
<img src="/img/draw/ff/3d/Prism3.png" width="30%" > |
| 10 |
<img src="/img/draw/ff/2d/Prism3_xy.svg" width="30%"> |
| 11 |
<img src="/img/draw/ff/2d/Prism3_xz.svg" width="30%"> |
| 12 |
|
| 13 |
#### Constructor |
| 14 |
|
| 15 |
```python |
| 16 |
Prism3(L, H) |
| 17 |
``` |
| 18 |
|
| 19 |
Parameters: |
| 20 |
- L, edge length of the trigonal base |
| 21 |
- H, height |
| 22 |
|
| 23 |
#### Usage |
| 24 |
|
| 25 |
As for any other [Form factor](/ref/sample/particle/ff). |
| 26 |
|
| 27 |
#### Implementation |
| 28 |
|
| 29 |
Class [Prism3]({{% url-src %}}/Sample/HardParticle/Polyhedra.h) inherits from the interface class |
| 30 |
{{% ref-class "Sample/Particle" "Formfactor" %}}. |
| 31 |
|
| 32 |
Form factor is computed as |
| 33 |
|
| 34 |
$$ F(\mathbf{q})=H \space \exp\Big(iq_z\dfrac{H}{2}\Big) \space \text{sinc}\Big(q_z\dfrac{H}{2}\Big) \space F_{||}(\mathbf{q}_{||}) $$ |
| 35 |
|
| 36 |
where the form factor $F_{||}(\mathbf{q}_{||}) $ computation is based on the generic form factor of a planar polygon provided by {{% link-libformfactor %}}. |
| 37 |
|
| 38 |
Volume [has been validated]({{% url-src %}}/Tests/Unit/Sample/FormfactorBasicTest.cpp) |
| 39 |
against |
| 40 |
$$ V=\dfrac{\sqrt3}{4}HL^2. $$ |
| 41 |
|
| 42 |
#### Related shapes |
| 43 |
|
| 44 |
More general: |
| 45 |
- [Pyramid3](/ref/sample/particle/ff/hard/pyramid3), if sides are not vertical. |
| 46 |
|
| 47 |
#### Example |
| 48 |
|
| 49 |
Scattering by uncorrelated, oriented prisms for horizontal incidence. Rotation around $z$ axis: |
| 50 |
|
| 51 |
<img src="/img/auto/ff/Prism3.png"> |
| 52 |
|
| 53 |
Generated by {{% ref-ex "sas/sas-ff.py" %}} (`particle_geometry=Prism3`). |
| 54 |
|
| 55 |
#### History |
| 56 |
|
| 57 |
Has been validated against the "Prism3" form factor of IsGISAXS [Lazzari, IsGISAXS manual v2.6 (2006)](http://www.insp.upmc.fr/oxydes/IsGISAXS/figures/doc/manual.html), Eq. 2.28 and "Prism with three fold symmetry" [Renaud et al, Surf Sci Rep 64, 255 (2009)](https://doi.org/10.1016/j.surfrep.2009.07.002), Eq. 219. Note the different parametrization $L = 2R_{IsGISXAXS}$. In FitGISAXS [Babonneau, FitGISAXS v130531 (2013)](https://pprime.fr/wp-content/uploads/2020/01/FitGISAXS_130531.zip) just called "Prism". In BornAgain 1.6, redefined to let the $x$ axis point along a symmetry axis (rotated by $30^{\circ}$ with respect to the previous version). |
| 58 |
|
| 59 |
Reimplemented in BornAgain 1.6 using the generic form factor of a polygonal prism [Wuttke, J Appl Cryst 54, 580 (2021)](https://doi.org/10.1107/S1600576721001710) to achieve numerical stability near the removable singularity at $q \to 0$. |