|
core 1.5.0
Shared MPI block decomposition, asynchronous ghost-layer exchange, SDF geometry, load balancing (header-only C++20)
|
Solid ball of radius radius, centred on the origin.
More...
#include <primitives.hpp>
Public Types | |
| using | value_type = Real |
Public Member Functions | |
| PECLET_HD Real | eval (Vec3< Real > p) const |
| PECLET_HD Vec3< Real > | grad (Vec3< Real > p) const |
Public Attributes | |
| Real | radius = Real(1) |
Static Public Attributes | |
| static constexpr bool | exact_distance = true |
| static constexpr bool | analytic_gradient = true |
Solid ball of radius radius, centred on the origin.
Exact Euclidean distance. Origin: dem sdfSphere (dem/src/dem_portable.hpp:79-81).
Definition at line 70 of file primitives.hpp.
Definition at line 71 of file primitives.hpp.
Definition at line 76 of file primitives.hpp.
References peclet::core::detail::hdSqrt(), peclet::core::geom::prim::Sphere< Real >::radius, peclet::core::Vec3< Real >::x, peclet::core::Vec3< Real >::y, and peclet::core::Vec3< Real >::z.
Referenced by peclet::core::geom::Sphere::eval().
|
inline |
Definition at line 81 of file primitives.hpp.
References peclet::core::detail::hdSqrt(), peclet::core::Vec3< Real >::x, peclet::core::Vec3< Real >::y, and peclet::core::Vec3< Real >::z.
Definition at line 72 of file primitives.hpp.
Referenced by peclet::core::geom::prim::Sphere< Real >::eval().
|
staticconstexpr |
Definition at line 73 of file primitives.hpp.
|
staticconstexpr |
Definition at line 74 of file primitives.hpp.