![]() |
OpenLB 1.8.1
|
Application of the collision step on a concrete SISD block. More...
#include <operator.h>
Inheritance diagram for olb::ConcreteBlockCollisionO< T, DESCRIPTOR, Platform::CPU_SISD, DYNAMICS >:
Collaboration diagram for olb::ConcreteBlockCollisionO< T, DESCRIPTOR, Platform::CPU_SISD, DYNAMICS >:Public Member Functions | |
| ConcreteBlockCollisionO () | |
| std::type_index | id () const override |
| std::size_t | weight () const override |
| Returns number of assigned cells. | |
| void | set (CellID iCell, bool state, bool overlap) override |
| Set whether iCell is covered by the present collision step. | |
| Dynamics< T, DESCRIPTOR > * | getDynamics () override |
| void | setup (ConcreteBlockLattice< T, DESCRIPTOR, Platform::CPU_SISD > &block) override |
| void | apply (ConcreteBlockLattice< T, DESCRIPTOR, Platform::CPU_SISD > &block, ConcreteBlockMask< T, Platform::CPU_SISD > &subdomain, CollisionDispatchStrategy strategy) override |
| Apply collision on subdomain of block. | |
Public Member Functions inherited from olb::BlockCollisionO< T, DESCRIPTOR, Platform::CPU_SISD > | |
| virtual void | setup (ConcreteBlockLattice< T, DESCRIPTOR, PLATFORM > &block)=0 |
| Setup collision on block. | |
| virtual void | apply (ConcreteBlockLattice< T, DESCRIPTOR, PLATFORM > &block, ConcreteBlockMask< T, PLATFORM > &subdomain, CollisionDispatchStrategy strategy)=0 |
| Apply collision on subdomain of block using strategy. | |
Public Member Functions inherited from olb::AbstractCollisionO< T, DESCRIPTOR > | |
Public Member Functions inherited from olb::AbstractBlockO | |
| virtual | ~AbstractBlockO ()=default |
Application of the collision step on a concrete SISD block.
ConcreteBlockCollisionO::apply allows for applying DYNAMICS on a given cell index or an entire block. The latter option accepts a ConcreteBlockMask instance describing the subset of cells for which DYNAMICS is to be called directly instead of via roundtrip.
Definition at line 125 of file operator.h.
|
inline |
Definition at line 267 of file operator.h.
|
inlineoverride |
Apply collision on subdomain of block.
This assumes that subdomain is the core mask of BlockDynamicsMap.
Definition at line 321 of file operator.h.
References olb::Dominant, and olb::Individual.
|
inlineoverridevirtual |
Implements olb::AbstractCollisionO< T, DESCRIPTOR >.
Definition at line 299 of file operator.h.
|
inlineoverridevirtual |
Implements olb::AbstractBlockO.
Definition at line 275 of file operator.h.
|
inlineoverridevirtual |
Set whether iCell is covered by the present collision step.
| iCell | Cell index |
| state | (De)activate for this dynamics / collision |
| overlap | Cell index in overlap (set dynamics but do not collide) |
Only unmask cells that actually do something
Implements olb::AbstractCollisionO< T, DESCRIPTOR >.
Definition at line 285 of file operator.h.
|
inlineoverride |
Definition at line 304 of file operator.h.
|
inlineoverridevirtual |
Returns number of assigned cells.
Used to determine the dominant dynamics to choose e.g. which collision operator to vectorize or to prefer in GPU kernels.
Implements olb::AbstractCollisionO< T, DESCRIPTOR >.
Definition at line 280 of file operator.h.