collela.hpp
Go to the documentation of this file.
1 
6 #ifndef COLLELA_HPP
7 #define COLLELA_HPP 1
8 
9 #include "../one_dimensional/spatial_distribution1d.hpp"
10 
15 {
16 public:
24  Collela(double ref, double a, double l, double offset);
25 
26  double operator()(double x) const;
27 
28 private:
29 
30  const double ref_;
31  const double a_;
32  const double l_;
33  const double offset_;
34 };
35 
36 #endif // COLLELA_HPP
double operator()(double x) const
Calculates initial conditions.
Definition: collela.cpp:9
A smooth spatial distribution attributed to Philip Collela.
Definition: collela.hpp:14
Collela(double ref, double a, double l, double offset)
Class constructor.
Definition: collela.cpp:6
Base class for initial conditions.