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::Sphere< Real > Struct Template Reference

Solid ball of radius radius, 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 radius = Real(1)
 

Static Public Attributes

static constexpr bool exact_distance = true
 
static constexpr bool analytic_gradient = true
 

Detailed Description

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

Solid ball of radius radius, centred on the origin.

Exact Euclidean distance. Origin: dem sdfSphere (dem/src/dem_portable.hpp:79-81).

Definition at line 70 of file primitives.hpp.

Member Typedef Documentation

◆ value_type

Definition at line 71 of file primitives.hpp.

Member Function Documentation

◆ eval()

◆ grad()

Member Data Documentation

◆ radius

Definition at line 72 of file primitives.hpp.

Referenced by peclet::core::geom::prim::Sphere< Real >::eval().

◆ exact_distance

template<class Real >
constexpr bool peclet::core::geom::prim::Sphere< Real >::exact_distance = true
staticconstexpr

Definition at line 73 of file primitives.hpp.

◆ analytic_gradient

template<class Real >
constexpr bool peclet::core::geom::prim::Sphere< Real >::analytic_gradient = true
staticconstexpr

Definition at line 74 of file primitives.hpp.


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