Page MenuHomec4science

surface_generator_voss.hh
No OneTemporary

File Metadata

Created
Tue, May 21, 03:23

surface_generator_voss.hh

#ifndef SURFACE_GENERATOR_VOSS_H
#define SURFACE_GENERATOR_VOSS_H
/* -------------------------------------------------------------------------- */
#include "surface_generator.hh"
/* -------------------------------------------------------------------------- */
class SurfaceGeneratorVoss : public virtual SurfaceGenerator {
public:
//! constructor : takes a config file as input
SurfaceGeneratorVoss(const std::string & inputfile);
//! Build surface profile (array of heights)
Surface<Real> & buildSurface();
void Init();
protected:
void parseInputFile(std::ifstream & fp);
void createRoughSurface(Real *err);
int Nloops; /* Number of loops during creation */
Real Hurst; /* Hurst parameter for rough surface */
int *Nsquares, *Ndiamonds; /* Specific lists for surface algorithm */
};
#endif

Event Timeline