| 1 |
+++ |
| 2 |
title = "Pyramid2" |
| 3 |
+++ |
| 4 |
|
| 5 |
### Pyramid2 |
| 6 |
|
| 7 |
A truncated pyramid with rectangular base. |
| 8 |
|
| 9 |
<img src="/img/draw/ff/3d/Pyramid2.png" width="30%" > |
| 10 |
<img src="/img/draw/ff/2d/Pyramid2_xy.svg" width="30%"> |
| 11 |
<img src="/img/draw/ff/2d/Pyramid2_xz.svg" width="30%"> |
| 12 |
|
| 13 |
#### Constructor |
| 14 |
|
| 15 |
```python |
| 16 |
Pyramid2(L, W, H, alpha) |
| 17 |
``` |
| 18 |
|
| 19 |
Parameters: |
| 20 |
- L, edge length of the base |
| 21 |
- W, edge width of the base |
| 22 |
- H, height |
| 23 |
- alpha, dihedral angle $\alpha$ between the base and each of the four trapezoidal lateral faces. |
| 24 |
|
| 25 |
Constraint: |
| 26 |
|
| 27 |
$H \le \dfrac{\tan\alpha}{2} min(L,W)$ |
| 28 |
|
| 29 |
#### Usage |
| 30 |
|
| 31 |
As for any other [Form factor](/ref/sample/particle/ff). |
| 32 |
|
| 33 |
#### Implementation |
| 34 |
|
| 35 |
Class [Pyramid2]({{% url-src %}}/Sample/HardParticle/Polyhedra.h) inherits from the interface class |
| 36 |
{{% ref-class "Sample/Particle" "Formfactor" %}}. |
| 37 |
|
| 38 |
Form factor computation is based on the generic form factor of a polyhedron |
| 39 |
provided by {{% link-libformfactor %}}. |
| 40 |
|
| 41 |
Volume [has been validated]({{% url-src %}}/Tests/Unit/Sample/FormfactorBasicTest.cpp) |
| 42 |
against |
| 43 |
$$ V=H\Big[LW-\dfrac{(L+W)H}{\tan\alpha}+\dfrac{4}{3}\dfrac{H^2}{\tan^2\alpha}\Big]. $$ |
| 44 |
|
| 45 |
#### Related shapes |
| 46 |
|
| 47 |
More special: |
| 48 |
- [Pyramid4](/ref/sample/particle/ff/hard/pyramid4), if $L=W$. |
| 49 |
- [Box](/ref/sample/particle/ff/hard/box), if $\alpha=90^{\circ}$. |
| 50 |
|
| 51 |
#### Example |
| 52 |
|
| 53 |
Scattering by uncorrelated, oriented pyramids for horizontal incidence. Rotation around $z$ axis: |
| 54 |
|
| 55 |
<img src="/img/auto/ff/Pyramid2.png"> |
| 56 |
|
| 57 |
Generated by {{% ref-ex "sas/sas-ff.py" %}} (`particle_geometry=Pyramid2`). |
| 58 |
|
| 59 |
#### History |
| 60 |
|
| 61 |
Was named "AnisoPyramid" up to BornAgain 1.19. |
| 62 |
|
| 63 |
Agrees with the "In plane anisotropic pyramid" form factor of IsGISAXS [Lazzari, IsGISAXS manual v2.6 (2006)](http://www.insp.upmc.fr/oxydes/IsGISAXS/figures/doc/manual.html), Eq. 2.38-2.39; |
| 64 |
[Renaud et al, Surf Sci Rep 64, 255 (2009)](https://doi.org/10.1016/j.surfrep.2009.07.002), Eq. 216-217, |
| 65 |
except for different parametrization. This is *not* the "Anisotropic pyramid" |
| 66 |
of FitGISAXS, which is a true pyramid with an off-center apex [Babonneau, FitGISAXS v130531 (2013)](https://pprime.fr/wp-content/uploads/2020/01/FitGISAXS_130531.zip). |