A smooth spatial distribution attributed to Philip Collela. More...
#include <collela.hpp>
Public Member Functions | |
Collela (double ref, double a, double l, double offset) | |
Class constructor. More... | |
double | operator() (double x) const |
Calculates initial conditions. More... | |
![]() | |
virtual | ~SpatialDistribution1D (void) |
Abstract class for initial conditions. More... | |
A smooth spatial distribution attributed to Philip Collela.
For more information refer to section 4.6 in W. Zhang, A. MacFadyen, "RAM: A Relativistic Adaptive Mesh Refinement Hydrodynamics Code", ApJS 164, 255 (2006) .
Definition at line 14 of file collela.hpp.
Collela::Collela | ( | double | ref, |
double | a, | ||
double | l, | ||
double | offset | ||
) |
Class constructor.
ref | Unperturbed value |
a | Relative amplitude of the wave |
l | Wavelength |
offset | Horizontal offset |
Definition at line 6 of file collela.cpp.
|
virtual |
Calculates initial conditions.
x | Position |
Implements SpatialDistribution1D.
Definition at line 9 of file collela.cpp.