BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
SpecularScalarNCStrategy.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Sample/Specular/SpecularScalarNCStrategy.h
6 //! @brief Defines class SpecularScalarNCStrategy.
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 #ifdef SWIG
16 #error no need to expose this header to Swig
17 #endif
18 
19 #ifndef USER_API
20 #ifndef BORNAGAIN_SAMPLE_SPECULAR_SPECULARSCALARNCSTRATEGY_H
21 #define BORNAGAIN_SAMPLE_SPECULAR_SPECULARSCALARNCSTRATEGY_H
22 
24 
25 class Slice;
26 
27 //! Implements Nevot-Croce roughness for a scaler computation.
28 //!
29 //! Implements the transition function that includes Nevot-Croce roughness
30 //! in the computation of the coefficients for coherent wave propagation
31 //! in a multilayer by applying modified Fresnel coefficients.
32 //!
33 //! @ingroup algorithms_internal
34 
36 private:
37  //! Roughness is modelled by a Gaussian profile, i.e. Nevot-Croce factors for the
38  //! reflection coefficients.
39  //! Implementation follows A. Gibaud and G. Vignaud, in X-ray and Neutron Reflectivity, edited
40  //! by J. Daillant and A. Gibaud, volume 770 of Lecture Notes in Physics (2009)
41  virtual std::pair<complex_t, complex_t> transition(complex_t kzi, complex_t kzi1,
42  double sigma) const override;
43 };
44 
45 #endif // BORNAGAIN_SAMPLE_SPECULAR_SPECULARSCALARNCSTRATEGY_H
46 #endif // USER_API
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:32
Implements Nevot-Croce roughness for 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 a Gaussian profile, i.e.
Implements the scalar Fresnel computation.