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

Axis-aligned solid box of half-extents (hx, hy, hz), 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 hx = Real(1)
 
Real hy = Real(1)
 
Real hz = 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::Box< Real >

Axis-aligned solid box of half-extents (hx, hy, hz), centred on the origin.

Exact Euclidean distance. Origin: dem sdfBox (dem/src/dem_portable.hpp:95-103).

Definition at line 92 of file primitives.hpp.

Member Typedef Documentation

◆ value_type

template<class Real >
using peclet::core::geom::prim::Box< Real >::value_type = Real

Definition at line 93 of file primitives.hpp.

Member Function Documentation

◆ eval()

◆ grad()

Member Data Documentation

◆ hx

◆ hy

◆ hz

◆ exact_distance

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

Definition at line 95 of file primitives.hpp.

◆ analytic_gradient

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

Definition at line 96 of file primitives.hpp.


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