Skip to content
Snippets Groups Projects
Commit 57f1cfb2 authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

calc rms

parent b8bd6348
No related branches found
No related tags found
1 merge request!2721Set upper limit for the spatial frequency of roughness
......@@ -108,5 +108,7 @@ double K_CorrelationModel::spectralFunction(const R3& q) const
double K_CorrelationModel::rms() const
{
// integration of spectral function: rms^2 = Integrate[PSD(f) * 2*pi*f, {f, 0, max_frequency}]
return 0;
const double H = m_hurst_parameter;
const double val = 2 * pi * m_lateral_corr_length * m_max_spatial_frequency;
return m_sigma * std::sqrt(1. - std::pow(1 + val * val, -H));
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment