29 complex_t n_particle_shell(1.0 - 1e-4, 2e-8);
30 complex_t n_particle_core(1.0 - 6e-5, 2e-8);
38 Particle shell_particle(shell_material, ff_box1);
41 Particle core_particle(core_material, ff_box2);
64 double core_length = shell_length / 2.0;
65 double core_width = shell_width / 2.0;
66 double core_height = shell_height / 2.0;
71 kvector_t(0.0, 0.0, (shell_height - core_height) / 2.0));
std::complex< double > complex_t
Defines class CoreShellParticleBuilder.
Defines class MultiLayer.
Defines ParticleCoreShell.
Defines class ParticleLayout.
Defines materials in namespace refMat.
Defines some unit conversion factors and other constants in namespace Units.
BasicVector3D< double > kvector_t
MultiLayer * buildSample() const
MultiLayer * buildSample() const
void setPosition(kvector_t position)
Sets relative position of the particle's reference point in the coordinate system of parent.
void rotate(const IRotation &rotation) override final
Rotates the particle.
void setRotation(const IRotation &rotation)
Sets transformation.
A layer, with thickness (in nanometer) and material.
void addLayout(const ILayout &decoration)
A wrapper for underlying material implementation.
Our sample model: a stack of layers one below the other.
void addLayer(const Layer &layer)
Adds object to multilayer.
A particle with a core/shell geometry.
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 y axis.
A rotation about the z axis.
Material HomogeneousMaterial(const std::string &name, complex_t refractive_index, kvector_t magnetization)
Constructs a material with name, refractive_index and magnetization (in A/m).
static constexpr double degree
static constexpr double nanometer
const double layer_thickness
static const Material Substrate2
static const Material Vacuum
static const Material Teflon
static const Material AgO2