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;
48template <
typename T,
typename DESCRIPTOR,
typename PARTICLETYPE>
60 const std::unordered_set<int> _ignoredMaterials;
71 const std::unordered_set<int>& ignoredMaterials = std::unordered_set<int>{},
72 const F f = [](
auto&,
const auto&,
const auto&,
const auto&){}
75 bool operator() (T output[],
const int input[])
override;
86template <
typename T,
typename DESCRIPTOR,
typename PARTICLETYPE,
98 const std::unordered_set<int>& ignoredMaterials = std::unordered_set<int>{},
99 const F f = [](
auto&,
const auto&,
const auto&,
const auto&){}
101 bool operator() (T output[],
const int input[])
override;
107template <
typename T,
typename DESCRIPTOR,
typename PARTICLETYPE>
114template <
typename T,
typename DESCRIPTOR,
typename PARTICLETYPE>
124template <
typename T,
typename DESCRIPTOR,
typename PARTICLETYPE,
bool useTorque=false>
134template <
typename T,
typename DESCRIPTOR,
typename PARTICLETYPE,
bool useTorque=false>
145template <
typename T,
typename DESCRIPTOR,
typename PARTICLETYPE,
bool useTorque=false>
156 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)
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::unordered_set< int > &ignoredMaterials=std::unordered_set< int >{}, const F f=[](auto &, const auto &, const auto &, const auto &){})
static constexpr bool serializeForce
bool operator()(T output[], const int input[]) override
Platform-abstracted block lattice for external access and inter-block interaction.
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::unordered_set< int > &ignoredMaterials=std::unordered_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.