25#ifndef LATTICE_MOMENTUM_EXCHANGE_FORCE_H
26#define LATTICE_MOMENTUM_EXCHANGE_FORCE_H
34template<
typename T,
typename PARTICLETYPE>
class SuperParticleSystem;
35template<
typename T,
typename PARTICLETYPE>
class ParticleSystem;
36template<
typename T,
typename PARTICLETYPE>
class Particle;
49template <
typename T,
typename DESCRIPTOR,
typename PARTICLETYPE>
61 const std::set<int> _ignoredMaterials;
72 const std::set<int>& ignoredMaterials = std::set<int>{},
73 const F f = [](
auto&,
const auto&,
const auto&,
const auto&){}
76 bool operator() (T output[],
const int input[])
override;
87template <
typename T,
typename DESCRIPTOR,
typename PARTICLETYPE,
99 const std::set<int>& ignoredMaterials = std::set<int>{},
100 const F f = [](
auto&,
const auto&,
const auto&,
const auto&){}
102 bool operator() (T output[],
const int input[])
override;
108template <
typename T,
typename DESCRIPTOR,
typename PARTICLETYPE>
115template <
typename T,
typename DESCRIPTOR,
typename PARTICLETYPE>
125template <
typename T,
typename DESCRIPTOR,
typename PARTICLETYPE,
bool useTorque=false>
135template <
typename T,
typename DESCRIPTOR,
typename PARTICLETYPE,
bool useTorque=false>
146template <
typename T,
typename DESCRIPTOR,
typename PARTICLETYPE,
bool useTorque=false>
157 bool operator() (T output[],
const int input[])
override;
Representation of a block geometry.
functor to get pointwise momentum exchange on local lattice (block level)
bool operator()(T output[], const int input[]) override
BlockLatticeMomentumExchangeForceLocal(BlockLattice< T, DESCRIPTOR > &blockLattice, const BlockGeometry< T, DESCRIPTOR::d > &blockGeometry, particles::ParticleSystem< T, PARTICLETYPE > &particleSystem, const UnitConverter< T, DESCRIPTOR > &converter)
Functor that returns forces acting on a particle surface, returns data in output for every particle i...
void evaluate(T output[], particles::Particle< T, PARTICLETYPE > &particle, int iP)
static constexpr bool serializeForce
bool operator()(T output[], const int input[]) override
BlockLatticeMomentumExchangeForce(BlockLattice< T, DESCRIPTOR > &blockLattice, const BlockGeometry< T, DESCRIPTOR::d > &blockGeometry, particles::ParticleSystem< T, PARTICLETYPE > &particleSystem, const UnitConverter< T, DESCRIPTOR > &converter, PhysR< T, DESCRIPTOR::d > cellMin=PhysR< T, DESCRIPTOR::d >(0.), PhysR< T, DESCRIPTOR::d > cellMax=PhysR< T, DESCRIPTOR::d >(0.), Vector< bool, DESCRIPTOR::d > periodic=Vector< bool, DESCRIPTOR::d >(false), std::size_t iP0=0, const std::set< int > &ignoredMaterials=std::set< int >{}, const F f=[](auto &, const auto &, const auto &, const auto &){})
Representation of a statistic for a parallel 2D geometry.
functor to get pointwise momentum exchange on local lattice (parallel particle version)
SuperLatticeMomentumExchangeForceLocalParallel(SuperLattice< T, DESCRIPTOR > &sLattice, const UnitConverter< T, DESCRIPTOR > &converter, const SuperGeometry< T, DESCRIPTOR::d > &superGeometry, particles::SuperParticleSystem< T, PARTICLETYPE > &sParticleSystem)
The following are functors that work in the traditional (output[], input[]) sense,...
SuperLatticeMomentumExchangeForceLocal(SuperLattice< T, DESCRIPTOR > &sLattice, const UnitConverter< T, DESCRIPTOR > &converter, const SuperGeometry< T, DESCRIPTOR::d > &superGeometry, particles::ParticleSystem< T, PARTICLETYPE > &particleSystem)
The following are functors that work in the traditional (output[], input[]) sense,...
Functor that returns forces acting on a particle surface, returns data in output for every particle i...
bool operator()(T output[], const int input[]) override
SuperLatticeParticleForce(SuperLattice< T, DESCRIPTOR > &sLattice, const SuperGeometry< T, DESCRIPTOR::d > &superGeometry, particles::ParticleSystem< T, PARTICLETYPE > &particleSystem, const UnitConverter< T, DESCRIPTOR > &converter, Vector< bool, DESCRIPTOR::d > periodic=Vector< bool, DESCRIPTOR::d >(false), std::size_t iP0=0, const std::set< int > &ignoredMaterials=std::set< int >{}, const F f=[](auto &, const auto &, const auto &, const auto &){})
Super class maintaining block lattices for a cuboid decomposition.
Conversion between physical and lattice units, as well as discretization.
Top level namespace for all of OpenLB.
std::conditional_t< DESCRIPTOR::d==2, BlockLatticePhysF2D< T, DESCRIPTOR >, BlockLatticePhysF3D< T, DESCRIPTOR > > BlockLatticePhysF
std::conditional_t< DESCRIPTOR::d==2, SuperLatticePhysF2D< T, DESCRIPTOR >, SuperLatticePhysF3D< T, DESCRIPTOR > > SuperLatticePhysF
Converts dimensions by deriving from given cartesian dimension D.