Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F66315986
surface_generator_filter.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
Sun, Jun 9, 18:40
Size
2 KB
Mime Type
text/x-c
Expires
Tue, Jun 11, 18:40 (2 d)
Engine
blob
Format
Raw Data
Handle
18202748
Attached To
rTAMAAS tamaas
surface_generator_filter.hh
View Options
/**
*
* @author Guillaume Anciaux <guillaume.anciaux@epfl.ch>
*
* @section LICENSE
*
* Copyright (©) 2016 EPFL (Ecole Polytechnique Fédérale de
* Lausanne) Laboratory (LSMS - Laboratoire de Simulation en Mécanique des
* Solides)
*
* Tamaas is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version.
*
* Tamaas 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 Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Tamaas. If not, see <http://www.gnu.org/licenses/>.
*
*/
/* -------------------------------------------------------------------------- */
#ifndef SURFACE_GENERATOR_FILTER_H
#define SURFACE_GENERATOR_FILTER_H
/* -------------------------------------------------------------------------- */
#include "surface_generator.hh"
/* -------------------------------------------------------------------------- */
__BEGIN_TAMAAS__
class
SurfaceGeneratorFilter
:
public
virtual
SurfaceGenerator
{
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public
:
//! default constructor
SurfaceGeneratorFilter
();
//! destructor
virtual
~
SurfaceGeneratorFilter
();
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
Surface
<
Real
>
&
buildSurface
();
void
Init
();
//! clear the random surface
void
clearSource
();
protected
:
virtual
void
computeFilterCoefficients
()
=
0
;
void
applyFilterOnSource
();
void
generateWhiteNoiseFFT
();
void
generateHFFT
();
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
protected
:
//! filter coefficients
Surface
<
Real
>
*
h_coeff
;
//! white noise
Surface
<
Real
>
*
sources
;
//! cutofffrequency
Real
alpha
;
SurfaceComplex
<
Real
>
*
surface_spectral
;
SurfaceComplex
<
Real
>
*
white_noise_FFT
;
SurfaceComplex
<
Real
>
*
h_coeff_power
;
};
__END_TAMAAS__
#endif
Event Timeline
Log In to Comment