BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
SpecularScalarTanhStrategy.h
Go to the documentation of this file.
1 // ************************************************************************** //
2 //
3 // BornAgain: simulate and fit scattering at grazing incidence
4 //
5 //! @file Sample/Specular/SpecularScalarTanhStrategy.h
6 //! @brief Defines class SpecularScalarTanhStrategy.
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_MULTILAYER_SPECULARSCALARTANHSTRATEGY_H
16 #define BORNAGAIN_CORE_MULTILAYER_SPECULARSCALARTANHSTRATEGY_H
17 
19 
20 class Slice;
21 
22 //! Implements an tanh transition function to model roughness in a scaler computation.
23 //!
24 //! Implements the transition function that includes the analytical roughness model
25 //! of an tanh interface transition in the computation of the coefficients for
26 //! coherent wave propagation in a multilayer by applying modified Fresnel coefficients.
27 //!
28 //! @ingroup algorithms_internal
30 {
31 private:
32  //! Roughness is modelled by tanh profile [see e.g. Phys. Rev. B, vol. 47 (8), p. 4385 (1993)].
33  virtual std::pair<complex_t, complex_t> transition(complex_t kzi, complex_t kzi1,
34  double sigma) const override;
35 };
36 
37 #endif // BORNAGAIN_CORE_MULTILAYER_SPECULARSCALARTANHSTRATEGY_H
std::complex< double > complex_t
Definition: Complex.h:20
Defines class SpecularScalarStrategy.
Data structure containing the data of a single slice, for calculating the Fresnel coefficients.
Definition: Slice.h:28
Implements the scalar Fresnel computation.
Implements an tanh transition function to model roughness in a scaler computation.
virtual std::pair< complex_t, complex_t > transition(complex_t kzi, complex_t kzi1, double sigma) const override
Roughness is modelled by tanh profile [see e.g. Phys. Rev. B, vol. 47 (8), p. 4385 (1993)].