28 MultiLayer* ParticleCompositionBuilder::buildSample()
const
30 Layer vacuum_layer(refMat::Vacuum);
31 Layer substrate_layer(refMat::Substrate);
33 double radius(10.0 * Units::nanometer);
35 Particle sphere(refMat::Particle, sphere_ff);
38 std::vector<kvector_t> positions = {
39 {}, {radius, radius / std::sqrt(3.0), std::sqrt(8.0 / 3.0) * radius}};
43 basis.addParticles(sphere, positions);
46 std::unique_ptr<InterferenceFunction2DLattice> P_interference{
49 P_interference->setDecayFunction(pdf);
53 vacuum_layer.addLayout(particle_layout);
57 multi_layer->
addLayer(substrate_layer);
Defines class InterferenceFunction2DLattice.
Defines class MultiLayer.
Defines class ParticleCompositionBuilder.
Defines class ParticleComposition.
Defines class ParticleLayout.
Defines materials in namespace refMat.
Defines some unit conversion factors and other constants in namespace Units.
Two-dimensional Cauchy decay function in reciprocal space; corresponds to exp(-r) in real space,...
static InterferenceFunction2DLattice * createHexagonal(double lattice_length, double xi)
Creates hexagonal lattice.
A layer, with thickness (in nanometer) and material.
Our sample model: a stack of layers one below the other.
void addLayer(const Layer &layer)
Adds object to multilayer.
A composition of particles at fixed positions.
Decorator class that adds particles to ISample objects.
void setInterferenceFunction(const IInterferenceFunction &interference_function)
Adds interference functions.
void addParticle(const IAbstractParticle &particle, double abundance=-1.0, const kvector_t position={}, const IRotation &rotation=IdentityRotation())
Adds particle to the layout with abundance, position and the rotation defined.
A particle with a form factor and refractive index.