20 MultiLayer* HomogeneousMultilayerBuilder::buildSample()
const
22 const size_t number_of_layers = 10;
23 const double delta_ti = -7.36e-7;
24 const double delta_ni = 3.557e-6;
25 const double delta_si = 7.81e-7;
26 const double thick_ti = 3.0;
27 const double thick_ni = 7.0;
34 Layer vacuulayer(vacuumaterial, 0);
35 Layer ni_layer(ni_material, thick_ni);
36 Layer ti_layer(ti_material, thick_ti);
37 Layer substrate_layer(substrate_material, 0);
41 for (
size_t i = 0; i < number_of_layers; ++i) {
45 multi_layer->
addLayer(substrate_layer);
Defines class HomogeneousMultilayerBuilder.
Factory functions used to create material instances.
Defines class MultiLayer.
A layer, with thickness (in nanometer) and material.
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.
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).