|
core 1.8.1
Shared MPI block decomposition, asynchronous ghost-layer exchange, SDF geometry, load balancing (header-only C++20)
|
Solid capsule about the y axis: a segment from (0,-halfLength,0) to (0,+halfLength,0) swept by radius. 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(0.5) |
| Real | halfLength = Real(0.5) |
Static Public Attributes | |
| static constexpr bool | exact_distance = true |
| static constexpr bool | analytic_gradient = true |
Solid capsule about the y axis: a segment from (0,-halfLength,0) to (0,+halfLength,0) swept by radius.
Exact Euclidean distance — the distance to a swept sphere is exactly the distance to its spine minus the radius, for any spine.
Definition at line 244 of file primitives.hpp.
| using peclet::core::geom::prim::Capsule< Real >::value_type = Real |
Definition at line 245 of file primitives.hpp.
|
inline |
Definition at line 250 of file primitives.hpp.
References halfLength, peclet::core::detail::hdMax(), peclet::core::detail::hdMin(), peclet::core::detail::hdSqrt(), PECLET_HD, radius, peclet::core::Vec3< Real >::x, peclet::core::Vec3< Real >::y, and peclet::core::Vec3< Real >::z.
Referenced by peclet::core::geom::evalLeaf().
|
inline |
Definition at line 255 of file primitives.hpp.
References halfLength, peclet::core::detail::hdMax(), peclet::core::detail::hdMin(), peclet::core::detail::hdSqrt(), PECLET_HD, peclet::core::Vec3< Real >::x, peclet::core::Vec3< Real >::y, and peclet::core::Vec3< Real >::z.
Referenced by peclet::core::geom::leafGrad().
| Real peclet::core::geom::prim::Capsule< Real >::radius = Real(0.5) |
Definition at line 246 of file primitives.hpp.
Referenced by eval().
| Real peclet::core::geom::prim::Capsule< Real >::halfLength = Real(0.5) |
Definition at line 246 of file primitives.hpp.
|
staticconstexpr |
Definition at line 247 of file primitives.hpp.
|
staticconstexpr |
Definition at line 248 of file primitives.hpp.