core 1.5.0
Shared MPI block decomposition, asynchronous ghost-layer exchange, SDF geometry, load balancing (header-only C++20)
Loading...
Searching...
No Matches
peclet::core::geom::prim::Ellipsoid< Real > Struct Template Reference

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
 

Detailed Description

template<class Real>
struct peclet::core::geom::prim::Ellipsoid< Real >

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.

Member Typedef Documentation

◆ value_type

Definition at line 341 of file primitives.hpp.

Member Function Documentation

◆ eval()

◆ grad()

template<class Real >
PECLET_HD Vec3< Real > peclet::core::geom::prim::Ellipsoid< Real >::grad ( Vec3< Real >  p) const
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().

Member Data Documentation

◆ rx

◆ ry

◆ rz

◆ exact_distance

template<class Real >
constexpr bool peclet::core::geom::prim::Ellipsoid< Real >::exact_distance = false
staticconstexpr

Definition at line 343 of file primitives.hpp.

◆ analytic_gradient

template<class Real >
constexpr bool peclet::core::geom::prim::Ellipsoid< Real >::analytic_gradient = false
staticconstexpr

Definition at line 344 of file primitives.hpp.


The documentation for this struct was generated from the following file: