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
ablate::mathFunctions::geom::Geometry
Definition:
geometry.hpp:9
ablate::mathFunctions::geom::Sphere
Definition:
sphere.hpp:7
ablate::mathFunctions::geom::Sphere::InsideGeometry
bool InsideGeometry(const double *xyz, const int &ndims, const double &time) const override
Definition:
sphere.cpp:14
src
mathFunctions
geom
sphere.hpp
Generated by
1.9.1