|
core 1.5.0
Shared MPI block decomposition, asynchronous ghost-layer exchange, SDF geometry, load balancing (header-only C++20)
|
Classes | |
| struct | Box |
| Axis-aligned solid box of half-extents (hx, hy, hz), centred on the origin. More... | |
| struct | Capsule |
Solid capsule about the y axis: a segment from (0,-halfLength,0) to (0,+halfLength,0) swept by radius. More... | |
| struct | Complement |
| Negation: solid and void swap. Composes with any leaf (a container is the complement of a body). More... | |
| struct | Cone |
Solid capped cone (frustum) about the y axis: radius rBottom at y = -halfHeight, radius rTop at y = +halfHeight. More... | |
| struct | Ellipsoid |
| Solid ellipsoid with semi-axes (rx, ry, rz), centred on the origin. More... | |
| struct | HollowCylinder |
Solid tube wall about the y axis: outer radius rOuter, full height height, wall thickness thickness (the solid is the shell, the bore is void). More... | |
| struct | HollowCylinderShell |
| Solid tube wall about the z axis as a CSG intersection of half-spaces: max(r - rOuter, rInner - r, |z| - height/2). More... | |
| struct | Rounded |
Offset (rounded) shape: the inner solid grown outward by radius. More... | |
| struct | Sphere |
Solid ball of radius radius, centred on the origin. More... | |
| struct | Superquadric |
Solid superquadric with semi-axes (rx, ry, rz) and exponent e: the implicit |x/rx|^e + |y/ry|^e + |z/rz|^e = 1. More... | |
| struct | Torus |
Solid torus with its axis along y: tube of minor radius minorRadius swept around a circle of radius majorRadius in the xz-plane. More... | |
Functions | |
| template<class Shape , class Real > | |
| PECLET_HD Vec3< Real > | gradient (const Shape &s, Vec3< Real > p, Real h) |
| Generic outward normal by central differences — the fallback for any leaf until rung 2 supplies closed-form grad(), and permanently for sampled (grid) fields. | |
| PECLET_HD Vec3< Real > peclet::core::geom::prim::gradient | ( | const Shape & | s, |
| Vec3< Real > | p, | ||
| Real | h | ||
| ) |
Generic outward normal by central differences — the fallback for any leaf until rung 2 supplies closed-form grad(), and permanently for sampled (grid) fields.
NOT normalised: callers that need a unit normal divide by the length, as dem's narrow-phase does today.
Definition at line 59 of file primitives.hpp.
References peclet::core::Vec3< Real >::x, peclet::core::Vec3< Real >::y, and peclet::core::Vec3< Real >::z.
Referenced by peclet::core::geom::prim::Cone< Real >::grad(), peclet::core::geom::prim::Ellipsoid< Real >::grad(), and peclet::core::geom::prim::Superquadric< Real >::grad().