7 ref_(ref), a_(a), l_(l), offset_(offset) {}
11 const double xc = x - offset_;
15 return ref_*(1+a_*pow((pow(xc/l_,2)-1),4));
double operator()(double x) const
Calculates initial conditions.
Collela(double ref, double a, double l, double offset)
Class constructor.
Smooth spatial distribution.
double abs(Vector3D const &v)
Norm of a vector.