Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F81095277
surface_generator_filter_fft.hh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Sep 4, 04:39
Size
2 KB
Mime Type
text/x-c++
Expires
Fri, Sep 6, 04:39 (2 d)
Engine
blob
Format
Raw Data
Handle
20516387
Attached To
rTAMAAS tamaas
surface_generator_filter_fft.hh
View Options
/**
* @file
* @section LICENSE
*
* Copyright (©) 2016-19 EPFL (École Polytechnique Fédérale de Lausanne),
* Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
/* -------------------------------------------------------------------------- */
#ifndef SURFACE_GENERATOR_FILTER_FFT_H
#define SURFACE_GENERATOR_FILTER_FFT_H
/* -------------------------------------------------------------------------- */
#include "isopowerlaw.hh"
#include "surface_generator_filter.hh"
/* -------------------------------------------------------------------------- */
namespace tamaas {
/// Legacy class to maintain interface
class SurfaceGeneratorFilterFFT {
public:
//! can construct a generator with default values
SurfaceGeneratorFilterFFT();
public:
//! get high frequency cut
UInt& getQ2() { return pl_filter->getQ2(); }
//! get low frequency cut
UInt& getQ0() { return pl_filter->getQ0(); }
//! get roll frequency cut
UInt& getQ1() { return pl_filter->getQ1(); }
//! get hurst
Real& getHurst() { return pl_filter->getHurst(); }
/// compute analytical RMS
Real analyticalRMS() const { return pl_filter->rmsHeights(); }
/// Swig does not wrap the numpy otherwise
Grid<Real, 2>& buildSurface();
/// Get gridsize
UInt& getGridSize() { return grid_size; }
/// Get random seed
long& getRandomSeed() { return generator.getRandomSeed(); }
/// Get RMS
Real& getRMS() { return rms; }
/// Contrain RMS
Real constrainRMS();
/// Init
void Init() {}
protected:
SurfaceGeneratorFilter<2> generator;
std::shared_ptr<Isopowerlaw<2>> pl_filter = nullptr;
UInt grid_size;
Real rms;
};
} // namespace tamaas
#endif
Event Timeline
Log In to Comment