40 #ifndef implicitFunction_ellipsoidImplicitFunction_H 41 #define implicitFunction_ellipsoidImplicitFunction_H 50 namespace implicitFunctions
73 TypeName(
"ellipsoidImplicitFunction");
96 sqr((
p.x() - origin_.x())/semiAxis_.x())
97 +
sqr((
p.y() - origin_.y())/semiAxis_.y())
98 +
sqr((
p.z() - origin_.z())/semiAxis_.z())
108 2*(
p.x() - origin_.x())/
sqr(semiAxis_.x()),
109 2*(
p.y() - origin_.y())/
sqr(semiAxis_.y()),
110 2*(
p.z() - origin_.z())/
sqr(semiAxis_.z())
virtual ~ellipsoidImplicitFunction()=default
Destructor.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensionedScalar sqrt(const dimensionedScalar &ds)
virtual scalar value(const vector &p) const
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
creates an ellipsoidImplicitFunction
ellipsoidImplicitFunction(const vector &semiAxis)
Construct from components.
virtual scalar distanceToSurfaces(const vector &p) const
TypeName("ellipsoidImplicitFunction")
Runtime type information.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Base class for implicit functions.
virtual vector grad(const vector &p) const