Sine wave spatial distribution. More...
#include <sine_wave.hpp>
Public Member Functions | |
SineWave (double amplitude, double wavelength, double phase, double offset) | |
Class constructor return amp*sin(x*k+phase)+offest. More... | |
double | operator() (double x) const |
Calculates initial conditions. More... | |
![]() | |
virtual | ~SpatialDistribution1D (void) |
Abstract class for initial conditions. More... | |
Sine wave spatial distribution.
Definition at line 14 of file sine_wave.hpp.
SineWave::SineWave | ( | double | amplitude, |
double | wavelength, | ||
double | phase, | ||
double | offset | ||
) |
Class constructor return amp*sin(x*k+phase)+offest.
amplitude | The amplitude of the sine function |
wavelength | The wavelength |
phase | The phase |
offset | The constant added to the sine |
Definition at line 4 of file sine_wave.cpp.
|
virtual |
Calculates initial conditions.
x | Position |
Implements SpatialDistribution1D.
Definition at line 13 of file sine_wave.cpp.