Debian Codegraph @

hugo/content/ref/sample/particle/ex/interface-crossing.md

raw
1 +++
2 title = "Crossing an interface"
3 weight = 10
4 +++
5
6 ### Particles crossing an interface
7
8 In this example, very similar to our [basic GISAS example](/ref/sim/class/scattering/ex/gisas),
9 it is shown how to position particles in order to cross multilayer interfaces: the $z$ position of particles originally located within the air layer must be adjusted slightly downwards in order to cross the air-substrate interface.
10
11 The simulation kernel automatically detects particles crossing interfaces and adjusts the calculations accordingly, causing a drop on speed to complete each simulation.
12
13 The script below models a air-substrate bilayer in which cylindrical particles made of two materials are added to the air layer and their $z$ coordinate is shifted downwards in order to cross the air-substrate interface.
14
15
16 {{< galleryscg >}}
17 {{< figscg src="/img/auto/scatter2d/ParticleAcrossInterface.png" width="450px" caption="Scattering intensity">}}
18 {{< /galleryscg >}}
19
20 {{< show-ex file="scatter2d/ParticleAcrossInterface.py" >}}