2D annulus function. The function is defined by the annulus center and outer and inner radii. The function presents a negative sign inside the annulus (between both boundaries), and positive outside. More...
#include <primitive_funcs_lib.hpp>
Public Member Functions | |
Annulus (real inner_radius, real outer_radius) | |
Constructor. | |
Annulus (real inner_radius, real outer_radius, const Point< 2 > ¢er) | |
Constructor. | |
![]() | |
AnnulusBase (real inner_radius, real outer_radius, const Point< 2 > ¢er) | |
Constructor. | |
const Point< 2 > & | center () const |
Gets the center of the annulus. | |
real | inner_radius () const |
Gets the inner radius of the annulus. | |
real | outer_radius () const |
Gets the outer radius of the annulus. | |
![]() | |
DomainFunc ()=default | |
Default constructor. | |
DomainFunc (const DomainFunc &)=default | |
Default copy constructor. | |
DomainFunc (DomainFunc &&)=default | |
Default move constructor. | |
DomainFunc & | operator= (const DomainFunc &)=default |
Default copy assignment operator. | |
DomainFunc & | operator= (DomainFunc &&)=default |
Default move assignment operator. | |
virtual | ~DomainFunc ()=default |
Default virtual destructor. | |
virtual Value< real > | operator() (const Point< dim > &point) const =0 |
Evaluator operator. | |
virtual Value< Interval< dim > > | operator() (const Point< dim, Interval< dim > > &point) const =0 |
Evaluator operator. | |
virtual Gradient< real > | grad (const Point< dim > &point) const =0 |
Gradient evaluator operator. | |
virtual Gradient< Interval< dim > > | grad (const Point< dim, Interval< dim > > &point) const =0 |
Gradient evaluator operator. | |
virtual Hessian< real > | hessian (const Point< dim > &point) const =0 |
Hessian evaluator operator. | |
Public Attributes | |
declare_impl_func_virtual_interface_2D | |
Additional Inherited Members | |
![]() | |
template<int N> | |
using | Interval = ::algoim::Interval<N> |
Algoim's interval alias. | |
template<typename T > | |
using | Value = std::conditional_t<range == 1, T, Vector<T, range>> |
Value type. | |
template<typename T > | |
using | Gradient = Vector<Value<T>, dim> |
Gradient type. | |
template<typename T > | |
using | Hessian = Vector<Value<T>, num_hessian> |
Hessian (symmetric type). | |
![]() | |
static const int | num_hessian = dim * (dim + 1) / 2 |
Number of Hessian (symmetric) components. | |
![]() | |
static Point< 2 > | get_default_center () |
Gets the default center of the cylinder. It is set to the center of the Cartesian coordinate system. | |
![]() | |
real | inner_radius_ |
Inner radius of the annulus. | |
real | outer_radius_ |
Outer radius of the annulus. | |
Point< 2 > | center_ |
Center of the annulus. | |
2D annulus function. The function is defined by the annulus center and outer and inner radii. The function presents a negative sign inside the annulus (between both boundaries), and positive outside.
Constructor.
Center is set to (0,0).
inner_radius | Inner radius of the annulus. |
outer_radius | Outer radius of the annulus. |
qugar::impl::funcs::Annulus::Annulus | ( | real | inner_radius, |
real | outer_radius, | ||
const Point< 2 > & | center ) |
Constructor.
inner_radius | Inner radius of the annulus. |
outer_radius | Outer radius of the annulus. |
center | Annulus' center. |
qugar::impl::funcs::Annulus::declare_impl_func_virtual_interface_2D |