OpenLB 1.7
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
olb::particles::discrete_points_on_hull Struct Reference

#include <particleUtilities.h>

+ Collaboration diagram for olb::particles::discrete_points_on_hull:

Static Public Member Functions

template<typename T , unsigned D>
static constexpr auto calculate (Vector< T, D > position, T radius)
 
template<typename T , typename PARTICLETYPE >
static constexpr auto calculate (Particle< T, PARTICLETYPE > &particle)
 

Detailed Description

Definition at line 125 of file particleUtilities.h.

Member Function Documentation

◆ calculate() [1/2]

template<typename T , typename PARTICLETYPE >
static constexpr auto olb::particles::discrete_points_on_hull::calculate ( Particle< T, PARTICLETYPE > & particle)
inlinestaticconstexpr

Definition at line 137 of file particleUtilities.h.

138 {
139 auto position = access::getPosition( particle );
140 T radius = access::getRadius( particle );
141 return calculate( position, radius );
142 }
T getRadius(Particle< T, PARTICLETYPE > &particle)
Vector< T, PARTICLETYPE::d > getPosition(Particle< T, PARTICLETYPE > particle)
static constexpr auto calculate(Vector< T, D > position, T radius)

References calculate(), olb::particles::access::getPosition(), and olb::particles::access::getRadius().

+ Here is the call graph for this function:

◆ calculate() [2/2]

template<typename T , unsigned D>
static constexpr auto olb::particles::discrete_points_on_hull::calculate ( Vector< T, D > position,
T radius )
inlinestaticconstexpr

Definition at line 127 of file particleUtilities.h.

128 {
129 if constexpr(D==3 || D==2){
130 return discretePointsOnSphericalHull( position, radius );
131 } else {
132 std::cerr << "ERROR: Only 2D and 3D supported!" << std::endl;
133 return false;
134 }
135 }
std::array< Vector< T, 3 >, 26 > discretePointsOnSphericalHull(Vector< T, 3 > position, T radius)

References olb::particles::discretePointsOnSphericalHull().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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