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::HollowCylinder Struct Reference

Solid hollow cylinder (a tube wall) of given outer/inner radius and height about axis. More...

#include <sdf.hpp>

Public Member Functions

double eval (const Vec< 3 > &p) const
 

Public Attributes

Vec< 3 > center {}
 
double rOuter = 1.0
 
double rInner = 0.5
 
double height = 1.0
 
int axis = 2
 

Detailed Description

Solid hollow cylinder (a tube wall) of given outer/inner radius and height about axis.

Modelled as the CSG intersection {r<=rOuter} ∩ {r>=rInner} ∩ {|z|<=height/2}; the shell material is the solid (negative). Sign-exact; distance is the standard max-of-halfspaces approximation.

Definition at line 62 of file sdf.hpp.

Member Function Documentation

◆ eval()

double peclet::core::geom::HollowCylinder::eval ( const Vec< 3 > &  p) const
inline

Member Data Documentation

◆ center

Vec<3> peclet::core::geom::HollowCylinder::center {}

Definition at line 63 of file sdf.hpp.

Referenced by eval().

◆ rOuter

double peclet::core::geom::HollowCylinder::rOuter = 1.0

Definition at line 64 of file sdf.hpp.

Referenced by eval().

◆ rInner

double peclet::core::geom::HollowCylinder::rInner = 0.5

Definition at line 65 of file sdf.hpp.

Referenced by eval().

◆ height

double peclet::core::geom::HollowCylinder::height = 1.0

Definition at line 66 of file sdf.hpp.

Referenced by eval().

◆ axis

int peclet::core::geom::HollowCylinder::axis = 2

Definition at line 67 of file sdf.hpp.

Referenced by eval().


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