25 : m_sigma(sigma), m_hurstParameter(hurstParameter), m_lateralCorrLength(lateralCorrLength)
47 double Qpar2 = kvec.
x() * kvec.
x() + kvec.
y() * kvec.
y();
49 * std::pow((1.0 + Qpar2 * clength2), (-1 - H));
58 double R = sqrt(k.
x() * k.
x() + k.
y() * k.
y());
59 return m_sigma *
m_sigma * std::exp(-1.0 * std::pow(R / clength, 2. * H));
Defines class LayerRoughness.
Defines M_PI and some more mathematical constants.
Defines class RealParameter.
T y() const
Returns y-component in cartesian coordinate system.
T x() const
Returns x-component in cartesian coordinate system.
RealParameter & registerParameter(const std::string &name, double *parpointer)
void setName(const std::string &name)
A roughness of interface between two layers.
double m_hurstParameter
Hurst parameter which describes how jagged the interface, 0<H<=1.
double getSpectralFun(const kvector_t kvec) const
Returns power spectral density of the surface roughness.
double m_lateralCorrLength
lateral correlation length of the roughness
double getCorrFun(const kvector_t k) const
Correlation function of the roughness profile.
double m_sigma
rms of roughness
RealParameter & setNonnegative()
RealParameter & setUnit(const std::string &name)