BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
PlainMultiLayerBySLDBuilder.h
Go to the documentation of this file.
1 // ************************************************************************** //
2 //
3 // BornAgain: simulate and fit scattering at grazing incidence
4 //
5 //! @file Sample/StandardSamples/PlainMultiLayerBySLDBuilder.h
6 //! @brief Declares the class PlainMultiLayerBySLDBuilder.
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************** //
14 
15 #ifndef BORNAGAIN_CORE_STANDARDSAMPLES_PLAINMULTILAYERBYSLDBUILDER_H
16 #define BORNAGAIN_CORE_STANDARDSAMPLES_PLAINMULTILAYERBYSLDBUILDER_H
17 
19 
20 //! Builds a sample with 10 interchanging homogeneous layers of Ti and Ni on silicone substrate.
21 //! Ti is 70 angstroms thick, Ni is 30 angstroms thick.
22 //! @ingroup standard_samples
23 
25 {
26 public:
27  PlainMultiLayerBySLDBuilder(int n_layers = 10);
28  MultiLayer* buildSample() const override; // passes ownership
29 
30 protected:
31  struct MaterialData {
32  double sld_real; //!< real part of sld in AA^{-2}
33  double sld_imag; //!< imaginary part of sld in AA^{-2}
34  };
39  double m_thick_ti; //!< thickness of titanium layer
40  double m_thick_ni; //!< thickness of Ni layer
41 };
42 
43 #endif // BORNAGAIN_CORE_STANDARDSAMPLES_PLAINMULTILAYERBYSLDBUILDER_H
Defines pure virtual base class ISampleBuilder.
Interface to the class capable to build samples to simulate.
Our sample model: a stack of layers one below the other.
Definition: MultiLayer.h:42
Builds a sample with 10 interchanging homogeneous layers of Ti and Ni on silicone substrate.
MultiLayer * buildSample() const override
double m_thick_ni
thickness of Ni layer
double m_thick_ti
thickness of titanium layer
double sld_imag
imaginary part of sld in AA^{-2}