30 const double sphere_radius = 10.0;
31 const double bottom_cup_height = 4.0;
32 const double composition_shift = bottom_cup_height;
35 TruncatedSphere(sphere_radius, sphere_radius * 2 - bottom_cup_height, 0));
40 composition.
addParticle(topCup, R3(0.0, 0.0, bottom_cup_height));
41 composition.
addParticle(bottomCup, R3(0.0, 0.0, bottom_cup_height));
53 sample->addLayer(vacuum_layer);
54 sample->addLayer(substrate_layer);
Defines class MultiLayer.
Defines class ParticleComposition.
Defines class ParticleLayout.
Defines materials in namespace refMat.
Defines IRotation classes.
Defines classes to build various particles crossing interfaces.
Defines class TruncatedSphere.
Defines some unit conversion factors and other constants in namespace Units.
void setParticlePosition(R3 position)
Sets relative position of the particle's reference point in the coordinate system of parent.
void setRotation(const IRotation &rotation)
Sets transformation.
A layer in a MultiLayer sample.
void addLayout(const ParticleLayout &layout)
Our sample model: a stack of layers one below the other.
A composition of particles at fixed positions.
void addParticle(const IParticle &particle)
Decorator class that adds particles to ISampleNode objects.
void addParticle(const IParticle &particle, double abundance=-1.0)
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.
MultiLayer * createSlicedComposition()
static constexpr double deg
static const Material Substrate2
static const Material Vacuum
static const Material Teflon