|
core 1.5.0
Shared MPI block decomposition, asynchronous ghost-layer exchange, SDF geometry, load balancing (header-only C++20)
|
Solid ellipsoid with semi-axes (rx, ry, rz), 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 |
| Finite differences over this leaf's own eval (the normalised implicit has no gradient worth hand-deriving at this rung). | |
Public Attributes | |
| Real | rx = Real(1) |
| Real | ry = Real(1) |
| Real | rz = Real(1) |
Static Public Attributes | |
| static constexpr bool | exact_distance = false |
| static constexpr bool | analytic_gradient = false |
Solid ellipsoid with semi-axes (rx, ry, rz), centred on the origin.
NOT an exact distance, and no closed form exists — this is the standard first-order normalised implicit estimate k0*(k0-1)/k1. The rung-2 gate MEASURES whether it under- or over-estimates rather than assuming; see the gate's report. Use Sphere under a conformal transform whenever the body is actually a sphere: that path is exact, this one is not.
Definition at line 340 of file primitives.hpp.
Definition at line 341 of file primitives.hpp.
Definition at line 346 of file primitives.hpp.
References peclet::core::detail::hdMin(), peclet::core::detail::hdSqrt(), peclet::core::geom::prim::Ellipsoid< Real >::rx, peclet::core::geom::prim::Ellipsoid< Real >::ry, peclet::core::geom::prim::Ellipsoid< Real >::rz, peclet::core::Vec3< Real >::x, peclet::core::Vec3< Real >::y, and peclet::core::Vec3< Real >::z.
|
inline |
Finite differences over this leaf's own eval (the normalised implicit has no gradient worth hand-deriving at this rung).
h is dem's 1e-4 probe convention.
Definition at line 358 of file primitives.hpp.
References peclet::core::geom::prim::gradient().
Definition at line 342 of file primitives.hpp.
Referenced by peclet::core::geom::prim::Ellipsoid< Real >::eval().
Definition at line 342 of file primitives.hpp.
Referenced by peclet::core::geom::prim::Ellipsoid< Real >::eval().
Definition at line 342 of file primitives.hpp.
Referenced by peclet::core::geom::prim::Ellipsoid< Real >::eval().
|
staticconstexpr |
Definition at line 343 of file primitives.hpp.
|
staticconstexpr |
Definition at line 344 of file primitives.hpp.