7 #define SINE_WAVE_HPP 1 10 #define _USE_MATH_DEFINES 12 #include "../one_dimensional/spatial_distribution1d.hpp" 40 #endif // SINE_WAVE_HPP Sine wave spatial distribution.
SineWave(double amplitude, double wavelength, double phase, double offset)
Class constructor return amp*sin(x*k+phase)+offest.
Base class for initial conditions.
double operator()(double x) const
Calculates initial conditions.