OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | List of all members
olb::SuperLatticeMomentumExchangeForceLocalParallel< T, DESCRIPTOR, PARTICLETYPE, useTorque > Class Template Referencefinal

functor to get pointwise momentum exchange on local lattice (parallel particle version) More...

#include <latticeMomentumExchangeForce.h>

+ Inheritance diagram for olb::SuperLatticeMomentumExchangeForceLocalParallel< T, DESCRIPTOR, PARTICLETYPE, useTorque >:
+ Collaboration diagram for olb::SuperLatticeMomentumExchangeForceLocalParallel< T, DESCRIPTOR, PARTICLETYPE, useTorque >:

Public Member Functions

 SuperLatticeMomentumExchangeForceLocalParallel (SuperLattice< T, DESCRIPTOR > &sLattice, const UnitConverter< T, DESCRIPTOR > &converter, const SuperGeometry< T, DESCRIPTOR::d > &superGeometry, particles::SuperParticleSystem< T, PARTICLETYPE > &sParticleSystem)
 

Detailed Description

template<typename T, typename DESCRIPTOR, typename PARTICLETYPE, bool useTorque = false>
class olb::SuperLatticeMomentumExchangeForceLocalParallel< T, DESCRIPTOR, PARTICLETYPE, useTorque >

functor to get pointwise momentum exchange on local lattice (parallel particle version)

Definition at line 135 of file latticeMomentumExchangeForce.h.

Constructor & Destructor Documentation

◆ SuperLatticeMomentumExchangeForceLocalParallel()

template<typename T , typename DESCRIPTOR , typename PARTICLETYPE , bool useTorque>
olb::SuperLatticeMomentumExchangeForceLocalParallel< T, DESCRIPTOR, PARTICLETYPE, useTorque >::SuperLatticeMomentumExchangeForceLocalParallel ( SuperLattice< T, DESCRIPTOR > & sLattice,
const UnitConverter< T, DESCRIPTOR > & converter,
const SuperGeometry< T, DESCRIPTOR::d > & superGeometry,
particles::SuperParticleSystem< T, PARTICLETYPE > & sParticleSystem )

Definition at line 233 of file latticeMomentumExchangeForce.hh.

238 : SuperLatticePhysF<T,DESCRIPTOR>(sLattice, converter,
239 useTorque ? utilities::dimensions::convert<DESCRIPTOR::d>::rotation : DESCRIPTOR::d)
240{
241 this->getName() = "localMomentumExchange";
242 int maxC = this->_sLattice.getLoadBalancer().size();
243 this->_blockF.reserve(maxC);
244 for (int iC = 0; iC < maxC; ++iC) {
245
246 auto bParticleSystems = sParticleSystem.getBlockParticleSystems();
247 auto& particleSystem = *bParticleSystems[iC];
248
249 this->_blockF.emplace_back(new BlockLatticeMomentumExchangeForceLocal<T,DESCRIPTOR,PARTICLETYPE,useTorque>(
250 this->_sLattice.getBlock(iC),
251 superGeometry.getBlockGeometry(iC),
252 particleSystem,
253 this->_converter));
254 }
255}
BlockGeometry< T, D > & getBlockGeometry(int locIC)
Read and write access to a single block geometry.
constexpr int d() any_platform

References olb::SuperGeometry< T, D >::getBlockGeometry(), and olb::particles::SuperParticleSystem< T, PARTICLETYPE >::getBlockParticleSystems().

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: