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

#include <particleConditions.h>

+ Collaboration diagram for olb::particles::conditions::valid_particle_centres:

Static Public Member Functions

template<typename T , typename PARTICLETYPE >
static bool value (Particle< T, PARTICLETYPE > &particle, int globiC)
 

Static Public Attributes

static constexpr bool dynamic =true
 

Detailed Description

Definition at line 65 of file particleConditions.h.

Member Function Documentation

◆ value()

template<typename T , typename PARTICLETYPE >
static bool olb::particles::conditions::valid_particle_centres::value ( Particle< T, PARTICLETYPE > & particle,
int globiC )
inlinestatic

Definition at line 67 of file particleConditions.h.

67 {
68 using namespace descriptors;
69 bool valid = access::isValid( particle );
70 bool hasCentre = true;
71 if constexpr ( PARTICLETYPE::template providesNested<PARALLELIZATION,IC>() ) {
72 hasCentre = (particle.template getField<PARALLELIZATION,IC>() == globiC);
73 }
74 return (valid && hasCentre);
75 }
bool isValid(Particle< T, PARTICLETYPE > particle)

References olb::particles::access::isValid().

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

Member Data Documentation

◆ dynamic

constexpr bool olb::particles::conditions::valid_particle_centres::dynamic =true
staticconstexpr

Definition at line 77 of file particleConditions.h.


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