|
core 1.5.0
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.
Definition at line 245 of file primitives.hpp.
Definition at line 250 of file primitives.hpp.
References peclet::core::geom::prim::Capsule< Real >::halfLength, peclet::core::detail::hdMax(), peclet::core::detail::hdMin(), peclet::core::detail::hdSqrt(), peclet::core::geom::prim::Capsule< Real >::radius, peclet::core::Vec3< Real >::x, peclet::core::Vec3< Real >::y, and peclet::core::Vec3< Real >::z.
|
inline |
Definition at line 255 of file primitives.hpp.
References peclet::core::geom::prim::Capsule< Real >::halfLength, peclet::core::detail::hdMax(), peclet::core::detail::hdMin(), peclet::core::detail::hdSqrt(), peclet::core::Vec3< Real >::x, peclet::core::Vec3< Real >::y, and peclet::core::Vec3< Real >::z.
Definition at line 246 of file primitives.hpp.
Referenced by peclet::core::geom::prim::Capsule< Real >::eval().
Definition at line 246 of file primitives.hpp.
Referenced by peclet::core::geom::prim::Capsule< Real >::eval(), and peclet::core::geom::prim::Capsule< Real >::grad().
|
staticconstexpr |
Definition at line 247 of file primitives.hpp.
|
staticconstexpr |
Definition at line 248 of file primitives.hpp.