Debian Codegraph @

hugo/content/ref/sample/particle/ff/hard/box.md

raw
1 +++
2 title = "Box"
3 +++
4
5 ### Box
6
7 A rectangular cuboid.
8
9 <img src="/img/draw/ff/3d/Box.png" width="30%" >
10 <img src="/img/draw/ff/2d/Box_xy.svg" width="30%">
11 <img src="/img/draw/ff/2d/Box_xz.svg" width="30%">
12
13 #### Constructor
14
15 ```python
16 Box(L, W, H)
17 ```
18
19 Parameters:
20 - L, length of the base
21 - W, width of the base
22 - H, height
23
24 #### Usage
25
26 As for any other [Form factor](/ref/sample/particle/ff).
27
28 #### Implementation
29
30 Class [Box]({{% url-src %}}/Sample/HardParticle/Polyhedra.h) inherits from the interface class
31 {{% ref-class "Sample/Particle" "Formfactor" %}}.
32
33 Form factor is computed as
34 $$F(\mathbf{q})=LWH \space \exp\Big(iq_{z}\dfrac{H}{2}\Big) \space \text{sinc}\Big(q_{x}\dfrac{L}{2}\Big) \space \text{sinc}\Big(q_{y}\dfrac{W}{2}\Big) \space \text{sinc}\Big(q_{z}\dfrac{H}{2}\Big).$$
35
36 Volume [has been validated]({{% url-src %}}/Tests/Unit/Sample/FormfactorBasicTest.cpp)
37 against
38 $$V=LWH.$$
39
40 #### Related shapes
41
42 More general:
43 - [Pyramid2](/ref/sample/particle/ff/hard/pyramid2) or [Pyramid4](/ref/sample/particle/ff/hard/pyramid4), if sides are not vertical.
44
45 More special:
46 <!--- [Bar](/ref/sample/particle/ff/ripples/bar), if elongated in L or W direction.-->
47 - Bar, if elongated in L or W direction.
48
49 Modified cubes:
50 - [TruncatedCube](/ref/sample/particle/ff/hard/truncatedcube), if $L=W=H$ and corners are facetted.
51 - [CantellatedCube](/ref/sample/particle/ff/hard/cantellatedcube), if $L=W=H$ and corners and edges are facetted.
52
53 #### Example
54
55 Scattering by uncorrelated, oriented boxes for horizontal incidence. Rotation around $z$ axis:
56
57 <img src="/img/auto/ff/Box.png">
58
59 Generated by {{% ref-ex "sas/sas-ff.py" %}} (`particle_geometry=Box`).
60
61 #### History
62
63 Agrees with "Box" form factor of IsGISAXS [Lazzari, IsGISAXS manual v2.6 (2006)](http://www.insp.upmc.fr/oxydes/IsGISAXS/figures/doc/manual.html), Eq. 2.37;
64 [Renaud et al, Surf Sci Rep 64, 255 (2009)](https://doi.org/10.1016/j.surfrep.2009.07.002), Eq. 214,
65 except for factors $1/2$ in the definition of parameters $L,\space W,\space H$.