ABLATE Source Documentation  0.12.34
sphere.hpp
1 #ifndef ABLATELIBRARY_SPHERE_HPP
2 #define ABLATELIBRARY_SPHERE_HPP
3 
4 #include "geometry.hpp"
5 namespace ablate::mathFunctions::geom {
6 
7 class Sphere : public Geometry {
8  private:
9  const std::vector<double> center;
10  const double radius;
11 
12  public:
13  Sphere(std::vector<double> center, double radius, const std::shared_ptr<mathFunctions::MathFunction>& insideValues = {}, const std::shared_ptr<mathFunctions::MathFunction>& outsideValues = {});
14 
15  bool InsideGeometry(const double* xyz, const int& ndims, const double& time) const override;
16 };
17 
18 } // namespace ablate::mathFunctions::geom
19 #endif // ABLATELIBRARY_SPHERE_HPP
Definition: geometry.hpp:9
Definition: sphere.hpp:7
bool InsideGeometry(const double *xyz, const int &ndims, const double &time) const override
Definition: sphere.cpp:14