25 MultiLayer* SlicedCompositionBuilder::buildSample()
const
27 const double sphere_radius = 10.0;
28 const double bottom_cup_height = 4.0;
29 const double composition_shift = bottom_cup_height;
32 sphere_radius, sphere_radius * 2 - bottom_cup_height, 0));
35 bottomCup.setRotation(
RotationX(180 * Units::deg));
38 composition.addParticle(topCup,
kvector_t(0.0, 0.0, bottom_cup_height));
39 composition.addParticle(bottomCup,
kvector_t(0.0, 0.0, bottom_cup_height));
45 Layer vacuum_layer(refMat::Vacuum);
46 vacuum_layer.addLayout(particle_layout);
48 Layer substrate_layer(refMat::Substrate2);
52 multi_layer->
addLayer(substrate_layer);
Defines class MultiLayer.
Defines class ParticleComposition.
Defines class ParticleLayout.
Defines materials in namespace refMat.
Defines classes to build various particles crossing interfaces.
Defines some unit conversion factors and other constants in namespace Units.
void setPosition(kvector_t position)
Sets relative position of the particle's reference point in the coordinate system of parent.
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 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.
A rotation about the x axis.