|
core 1.5.0
Shared MPI block decomposition, asynchronous ghost-layer exchange, SDF geometry, load balancing (header-only C++20)
|
Axis-aligned solid box of half-extents (hx, hy, hz), 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 | hx = Real(1) |
| Real | hy = Real(1) |
| Real | hz = Real(1) |
Static Public Attributes | |
| static constexpr bool | exact_distance = true |
| static constexpr bool | analytic_gradient = true |
Axis-aligned solid box of half-extents (hx, hy, hz), centred on the origin.
Exact Euclidean distance. Origin: dem sdfBox (dem/src/dem_portable.hpp:95-103).
Definition at line 92 of file primitives.hpp.
Definition at line 93 of file primitives.hpp.
Definition at line 98 of file primitives.hpp.
References peclet::core::detail::hdAbs(), peclet::core::detail::hdMax(), peclet::core::detail::hdMin(), peclet::core::detail::hdSqrt(), peclet::core::geom::prim::Box< Real >::hx, peclet::core::geom::prim::Box< Real >::hy, peclet::core::geom::prim::Box< Real >::hz, peclet::core::Vec3< Real >::x, peclet::core::Vec3< Real >::y, and peclet::core::Vec3< Real >::z.
Referenced by peclet::core::geom::Box::eval().
Definition at line 111 of file primitives.hpp.
References peclet::core::detail::hdAbs(), peclet::core::detail::hdMax(), peclet::core::detail::hdSqrt(), peclet::core::geom::prim::Box< Real >::hx, peclet::core::geom::prim::Box< Real >::hy, peclet::core::geom::prim::Box< Real >::hz, peclet::core::Vec3< Real >::x, peclet::core::Vec3< Real >::y, and peclet::core::Vec3< Real >::z.
Definition at line 94 of file primitives.hpp.
Referenced by peclet::core::geom::prim::Box< Real >::eval(), and peclet::core::geom::prim::Box< Real >::grad().
Definition at line 94 of file primitives.hpp.
Referenced by peclet::core::geom::prim::Box< Real >::eval(), and peclet::core::geom::prim::Box< Real >::grad().
Definition at line 94 of file primitives.hpp.
Referenced by peclet::core::geom::prim::Box< Real >::eval(), and peclet::core::geom::prim::Box< Real >::grad().
|
staticconstexpr |
Definition at line 95 of file primitives.hpp.
|
staticconstexpr |
Definition at line 96 of file primitives.hpp.