core 1.5.0
Shared MPI block decomposition, asynchronous ghost-layer exchange, SDF geometry, load balancing (header-only C++20)
Loading...
Searching...
No Matches
primitives.hpp File Reference

Go to the source code of this file.

Classes

struct  peclet::core::geom::prim::Sphere< Real >
 Solid ball of radius radius, centred on the origin. More...
 
struct  peclet::core::geom::prim::Box< Real >
 Axis-aligned solid box of half-extents (hx, hy, hz), centred on the origin. More...
 
struct  peclet::core::geom::prim::HollowCylinder< Real >
 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  peclet::core::geom::prim::HollowCylinderShell< Real >
 Solid tube wall about the z axis as a CSG intersection of half-spaces: max(r - rOuter, rInner - r, |z| - height/2). More...
 
struct  peclet::core::geom::prim::Capsule< Real >
 Solid capsule about the y axis: a segment from (0,-halfLength,0) to (0,+halfLength,0) swept by radius. More...
 
struct  peclet::core::geom::prim::Torus< Real >
 Solid torus with its axis along y: tube of minor radius minorRadius swept around a circle of radius majorRadius in the xz-plane. More...
 
struct  peclet::core::geom::prim::Cone< Real >
 Solid capped cone (frustum) about the y axis: radius rBottom at y = -halfHeight, radius rTop at y = +halfHeight. More...
 
struct  peclet::core::geom::prim::Ellipsoid< Real >
 Solid ellipsoid with semi-axes (rx, ry, rz), centred on the origin. More...
 
struct  peclet::core::geom::prim::Superquadric< Real >
 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  peclet::core::geom::prim::Rounded< Shape >
 Offset (rounded) shape: the inner solid grown outward by radius. More...
 
struct  peclet::core::geom::prim::Complement< Shape >
 Negation: solid and void swap. Composes with any leaf (a container is the complement of a body). More...
 

Namespaces

namespace  peclet
 
namespace  peclet::core
 
namespace  peclet::core::geom
 
namespace  peclet::core::geom::prim
 

Functions

template<class Shape , class Real >
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.