ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
walberla::LBWalberlaImpl< FloatType, Architecture > Class Template Reference

Class that runs and controls the LB on waLBerla. More...

#include <LBWalberlaImpl.hpp>

Inheritance diagram for walberla::LBWalberlaImpl< FloatType, Architecture >:
Collaboration diagram for walberla::LBWalberlaImpl< FloatType, Architecture >:

Classes

struct  GhostComm

Public Types

using Stencil = stencil::D3Q19
 Stencil for collision and streaming operations.
using StencilFull = stencil::D3Q27
 Stencil for ghost communication (includes domain corners).
using BlockStorage = LatticeWalberla::Lattice_T
 Lattice model (e.g.
using PdfField = FieldTrait<FloatType, Stencil, Architecture>::PdfField
using VectorField = FieldTrait<FloatType, Stencil, Architecture>::VectorField
using FlagField = BoundaryModel::FlagField
Public Types inherited from LatticeModel
using units_map = std::unordered_map<std::string, double>

Public Member Functions

template<typename T>
FloatType FloatType_c (T t) const
std::size_t stencil_size () const noexcept override
bool is_double_precision () const noexcept override
bool is_gpu () const noexcept override
 LBWalberlaImpl (std::shared_ptr< LatticeWalberla > lattice, double viscosity, double density)
 ~LBWalberlaImpl () override=default
void integrate () override
void set_collision_model (double kT, unsigned int seed) override
 Set up the thermalized collision model.
void set_collision_model (std::unique_ptr< LeesEdwardsPack > &&lees_edwards_pack) override
 Set up the Lees-Edwards collision model.
void check_lebc (unsigned int shear_direction, unsigned int shear_plane_normal) const override
 Verify that MD and LB Lees-Edwards parameters are consistent.
void ghost_communication () override
 Perform all pending ghost layer updates.
void ghost_communication_pdf () override
void ghost_communication_vel () override
void ghost_communication_laf () override
void ghost_communication_boundary ()
void update_derived_fields () override
 Recompute the fields that the LB step derives from the PDFs.
void ghost_communication_full ()
 Communicate all fields at once using the D3Q27 stencil.
void apply_lees_edwards_interpolation ()
std::optional< Utils::Vector3d > get_node_velocity (Utils::Vector3i const &node, bool consider_ghosts=false) const override
bool set_node_velocity (Utils::Vector3i const &node, Utils::Vector3d const &v) override
std::vector< double > get_slice_velocity (Utils::Vector3i const &lower_corner, Utils::Vector3i const &upper_corner) const override
void set_slice_velocity (Utils::Vector3i const &lower_corner, Utils::Vector3i const &upper_corner, std::vector< double > const &velocity) override
std::optional< double > get_node_density (Utils::Vector3i const &node, bool consider_ghosts=false) const override
bool set_node_density (Utils::Vector3i const &node, double density) override
std::vector< double > get_slice_density (Utils::Vector3i const &lower_corner, Utils::Vector3i const &upper_corner) const override
void set_slice_density (Utils::Vector3i const &lower_corner, Utils::Vector3i const &upper_corner, std::vector< double > const &density) override
std::optional< std::vector< double > > get_node_population (Utils::Vector3i const &node, bool consider_ghosts=false) const override
bool set_node_population (Utils::Vector3i const &node, std::vector< double > const &population) override
std::vector< double > get_slice_population (Utils::Vector3i const &lower_corner, Utils::Vector3i const &upper_corner) const override
void set_slice_population (Utils::Vector3i const &lower_corner, Utils::Vector3i const &upper_corner, std::vector< double > const &population) override
std::optional< Utils::Vector3d > get_node_force_to_be_applied (Utils::Vector3i const &node) const override
std::optional< Utils::Vector3d > get_node_last_applied_force (Utils::Vector3i const &node, bool consider_ghosts=false) const override
bool set_node_last_applied_force (Utils::Vector3i const &node, Utils::Vector3d const &force) override
std::vector< double > get_slice_last_applied_force (Utils::Vector3i const &lower_corner, Utils::Vector3i const &upper_corner) const override
void set_slice_last_applied_force (Utils::Vector3i const &lower_corner, Utils::Vector3i const &upper_corner, std::vector< double > const &force) override
std::optional< Utils::VectorXd< 9 > > get_node_pressure_tensor (Utils::Vector3i const &node) const override
std::vector< double > get_slice_pressure_tensor (Utils::Vector3i const &lower_corner, Utils::Vector3i const &upper_corner) const override
std::function< bool(Utils::Vector3d const &)> make_lattice_position_checker (bool consider_points_in_halo) const override
bool add_force_at_pos (Utils::Vector3d const &pos, Utils::Vector3d const &force) override
void add_forces_at_pos (std::vector< Utils::Vector3d > const &pos, std::vector< Utils::Vector3d > const &forces) override
 Distribute forces to the lattice at given positions.
std::optional< Utils::Vector3d > get_velocity_at_pos (Utils::Vector3d const &pos, bool consider_points_in_halo=false) const override
std::vector< Utils::Vector3d > get_velocities_at_pos (std::vector< Utils::Vector3d > const &pos) override
 Interpolate velocities at given positions (batch version).
std::optional< double > get_density_at_pos (Utils::Vector3d const &pos, bool consider_points_in_halo=false) const override
std::vector< double > get_densities_at_pos (std::vector< Utils::Vector3d > const &pos) override
void reset_boundary_handling (std::shared_ptr< BlockStorage > const &blocks)
void on_boundary_add ()
 Lazily enable boundary mode on first boundary addition.
void clear_boundaries () override
void reallocate_ubb_field () override
void update_boundary_from_shape (std::vector< int > const &raster_flat, std::vector< double > const &data_flat) override
 Set boundary conditions from a rasterized shape.
std::optional< Utils::Vector3d > get_node_velocity_at_boundary (Utils::Vector3i const &node, bool consider_ghosts=false) const override
bool set_node_velocity_at_boundary (Utils::Vector3i const &node, Utils::Vector3d const &velocity) override
std::vector< std::optional< Utils::Vector3d > > get_slice_velocity_at_boundary (Utils::Vector3i const &lower_corner, Utils::Vector3i const &upper_corner) const override
void set_slice_velocity_at_boundary (Utils::Vector3i const &lower_corner, Utils::Vector3i const &upper_corner, std::vector< std::optional< Utils::Vector3d > > const &velocity) override
std::optional< Utils::Vector3d > get_node_boundary_force (Utils::Vector3i const &node) const override
bool remove_node_from_boundary (Utils::Vector3i const &node) override
std::optional< bool > get_node_is_boundary (Utils::Vector3i const &node, bool consider_ghosts=false) const override
std::vector< bool > get_slice_is_boundary (Utils::Vector3i const &lower_corner, Utils::Vector3i const &upper_corner) const override
Utils::Vector3d get_boundary_force_from_shape (std::vector< int > const &raster_flat) const override
 Total force exerted by the fluid on a subset of boundary nodes.
Utils::Vector3d get_boundary_force () const override
Utils::VectorXd< 9 > get_pressure_tensor () const override
Utils::Vector3d get_momentum () const override
void set_external_force (Utils::Vector3d const &ext_force) override
Utils::Vector3d get_external_force () const noexcept override
void set_viscosity (double viscosity) override
double get_viscosity () const noexcept override
double get_density () const noexcept override
double get_kT () const noexcept override
unsigned int get_seed () const noexcept override
std::optional< uint64_t > get_rng_state () const override
void set_rng_state (uint64_t counter) override
LatticeWalberla const & get_lattice () const noexcept override
std::size_t get_velocity_field_id () const noexcept override
std::size_t get_force_field_id () const noexcept override
FloatType pressure_tensor_correction_factor () const
 Correction factor for off-diagonal pressure tensor elements.
void pressure_tensor_correction (Matrix3< FloatType > &tensor) const
void pressure_tensor_correction (std::span< FloatType, 9ul > tensor) const
void register_vtk_field_filters (walberla::vtk::VTKOutput &vtk_obj) override
void register_vtk_field_writers (walberla::vtk::VTKOutput &vtk_obj, LatticeModel::units_map const &units, int flag_observables) override
Public Member Functions inherited from LBWalberlaBase
 ~LBWalberlaBase () override=default
Public Member Functions inherited from LatticeModel
virtual ~LatticeModel ()=default
std::shared_ptr< VTKHandle > create_vtk (int delta_N, int initial_count, int flag_observables, units_map const &units_conversion, std::string const &identifier, std::string const &base_folder, std::string const &prefix, bool force_pvtu, bool include_boundaries=false)
 Create a VTK observable.
void write_vtk (std::string const &vtk_uid)
 Write a VTK observable to disk.
void switch_vtk (std::string const &vtk_uid, bool status)
 Toggle a VTK observable on/off.

Protected Types

using Kernels = detail::KernelTrait<FloatType, Architecture>
using BoundaryModel
using CollisionModel
using _PdfField = FieldTrait<FloatType, Stencil>::PdfField
using _VectorField = FieldTrait<FloatType, Stencil>::VectorField
using RegularFullCommunicator
 Full communicator.
using BoundaryFullCommunicator
using PDFStreamingCommunicator
 Regular communicator.
template<class Field>
using PackInfo

Protected Member Functions

void integrate_vtk_writers () override
template<typename T>
void zero_centered_transform_impl (T &data, auto const factor) const
 Scale data by a conversion factor (in-place).
void zero_centered_to_lb_in_place (auto &data) const
void zero_centered_to_md_in_place (auto &data) const
auto zero_centered_to_lb (auto const &data) const
auto zero_centered_to_md (auto const &data) const
template<typename Field>
auto add_to_storage (std::string const tag)
 Convenience function to add a field with a custom allocator.
void setup_full_communicator ()
 Set up D3Q27 communicators for full ghost layer updates.
void setup_streaming_communicator ()
 Set up the communicator used during integration.

Protected Attributes

FloatType m_viscosity
FloatType m_density
 kinematic viscosity
FloatType m_kT
unsigned int m_seed
double m_zc_to_md
double m_zc_to_lb
std::shared_ptr< LatticeWalberla > m_lattice
BlockDataID m_pdf_field_id
BlockDataID m_pdf_tmp_field_id
BlockDataID m_flag_field_id
BlockDataID m_last_applied_force_field_id
BlockDataID m_force_to_be_applied_id
BlockDataID m_velocity_field_id
BlockDataID m_vel_tmp_field_id
FlagUID const Boundary_flag {"boundary"}
 Flag for boundary cells.
bool m_has_boundaries {false}
std::shared_ptr< BoundaryModel > m_boundary
std::shared_ptr< BoundaryFullCommunicator > m_boundary_communicator
std::shared_ptr< RegularFullCommunicator > m_full_communicator
std::shared_ptr< RegularFullCommunicator > m_pdf_communicator
std::shared_ptr< RegularFullCommunicator > m_vel_communicator
std::shared_ptr< RegularFullCommunicator > m_laf_communicator
std::shared_ptr< PDFStreamingCommunicator > m_pdf_streaming_communicator
std::bitset< GhostComm::SIZE > m_pending_ghost_comm
ResourceObserver m_mpi_cart_comm_observer
std::shared_ptr< CollisionModel > m_collision_model
std::shared_ptr< ResetForce< PdfField, VectorField > > m_reset_force
std::shared_ptr< typename Kernels::UpdateVelFromPDF > m_update_velocities_from_pdf
std::shared_ptr< LeesEdwardsPack > m_lees_edwards_callbacks
std::shared_ptr< InterpolateAndShiftAtBoundary< _PdfField, FloatType > > m_lees_edwards_pdf_interpol_sweep
std::shared_ptr< InterpolateAndShiftAtBoundary< _VectorField, FloatType > > m_lees_edwards_vel_interpol_sweep
std::shared_ptr< InterpolateAndShiftAtBoundary< _VectorField, FloatType > > m_lees_edwards_last_applied_force_interpol_sweep
Protected Attributes inherited from LatticeModel
std::map< std::string, std::shared_ptr< VTKHandle > > m_vtk_auto
 VTK writers that are executed automatically.
std::map< std::string, std::shared_ptr< VTKHandle > > m_vtk_manual
 VTK writers that are executed manually.

Detailed Description

template<typename FloatType, lbmpy::Arch Architecture>
class walberla::LBWalberlaImpl< FloatType, Architecture >

Class that runs and controls the LB on waLBerla.

Definition at line 87 of file LBWalberlaImpl.hpp.

Member Typedef Documentation

◆ _PdfField

template<typename FloatType, lbmpy::Arch Architecture>
using walberla::LBWalberlaImpl< FloatType, Architecture >::_PdfField = FieldTrait<FloatType, Stencil>::PdfField
protected

Definition at line 112 of file LBWalberlaImpl.hpp.

◆ _VectorField

template<typename FloatType, lbmpy::Arch Architecture>
using walberla::LBWalberlaImpl< FloatType, Architecture >::_VectorField = FieldTrait<FloatType, Stencil>::VectorField
protected

Definition at line 113 of file LBWalberlaImpl.hpp.

◆ BlockStorage

template<typename FloatType, lbmpy::Arch Architecture>
using walberla::LBWalberlaImpl< FloatType, Architecture >::BlockStorage = LatticeWalberla::Lattice_T

Lattice model (e.g.

blockforest).

Definition at line 108 of file LBWalberlaImpl.hpp.

◆ BoundaryFullCommunicator

template<typename FloatType, lbmpy::Arch Architecture>
using walberla::LBWalberlaImpl< FloatType, Architecture >::BoundaryFullCommunicator
protected
Initial value:
FieldTrait<FloatType, Stencil,
Architecture>::template BoundaryCommScheme<stencil::D3Q27>
stencil::D3Q19 Stencil
Stencil for collision and streaming operations.

Definition at line 144 of file LBWalberlaImpl.hpp.

◆ BoundaryModel

template<typename FloatType, lbmpy::Arch Architecture>
using walberla::LBWalberlaImpl< FloatType, Architecture >::BoundaryModel
protected
Initial value:
typename Kernels::DynamicUBB>
Boundary class optimized for sparse data.

Definition at line 96 of file LBWalberlaImpl.hpp.

◆ CollisionModel

template<typename FloatType, lbmpy::Arch Architecture>
using walberla::LBWalberlaImpl< FloatType, Architecture >::CollisionModel
protected
Initial value:
std::variant<typename Kernels::StreamCollisionModelThermalized,
typename Kernels::StreamCollisionModelLeesEdwards>

Definition at line 98 of file LBWalberlaImpl.hpp.

◆ FlagField

template<typename FloatType, lbmpy::Arch Architecture>
using walberla::LBWalberlaImpl< FloatType, Architecture >::FlagField = BoundaryModel::FlagField

Definition at line 118 of file LBWalberlaImpl.hpp.

◆ Kernels

template<typename FloatType, lbmpy::Arch Architecture>
using walberla::LBWalberlaImpl< FloatType, Architecture >::Kernels = detail::KernelTrait<FloatType, Architecture>
protected

Definition at line 95 of file LBWalberlaImpl.hpp.

◆ PackInfo

template<typename FloatType, lbmpy::Arch Architecture>
template<class Field>
using walberla::LBWalberlaImpl< FloatType, Architecture >::PackInfo
protected
Initial value:
typename FieldTrait< FloatType, Architecture >::template PackInfo< Field > PackInfo

Definition at line 155 of file LBWalberlaImpl.hpp.

◆ PdfField

template<typename FloatType, lbmpy::Arch Architecture>
using walberla::LBWalberlaImpl< FloatType, Architecture >::PdfField = FieldTrait<FloatType, Stencil, Architecture>::PdfField

Definition at line 116 of file LBWalberlaImpl.hpp.

◆ PDFStreamingCommunicator

template<typename FloatType, lbmpy::Arch Architecture>
using walberla::LBWalberlaImpl< FloatType, Architecture >::PDFStreamingCommunicator
protected
Initial value:
FieldTrait<FloatType, Stencil,
Architecture>::template RegularCommScheme<Stencil>

Regular communicator.

We use the same directions as the stencil during integration.

Definition at line 151 of file LBWalberlaImpl.hpp.

◆ RegularFullCommunicator

template<typename FloatType, lbmpy::Arch Architecture>
using walberla::LBWalberlaImpl< FloatType, Architecture >::RegularFullCommunicator
protected
Initial value:
FieldTrait<FloatType, Stencil,
Architecture>::template RegularCommScheme<stencil::D3Q27>

Full communicator.

We use the D3Q27 directions to update cells along the diagonals during a full ghost communication. This is needed to properly update the corners of the ghost layer when setting cell velocities or populations.

Definition at line 141 of file LBWalberlaImpl.hpp.

◆ Stencil

template<typename FloatType, lbmpy::Arch Architecture>
using walberla::LBWalberlaImpl< FloatType, Architecture >::Stencil = stencil::D3Q19

Stencil for collision and streaming operations.

Definition at line 104 of file LBWalberlaImpl.hpp.

◆ StencilFull

template<typename FloatType, lbmpy::Arch Architecture>
using walberla::LBWalberlaImpl< FloatType, Architecture >::StencilFull = stencil::D3Q27

Stencil for ghost communication (includes domain corners).

Definition at line 106 of file LBWalberlaImpl.hpp.

◆ VectorField

template<typename FloatType, lbmpy::Arch Architecture>
using walberla::LBWalberlaImpl< FloatType, Architecture >::VectorField = FieldTrait<FloatType, Stencil, Architecture>::VectorField

Definition at line 117 of file LBWalberlaImpl.hpp.

Constructor & Destructor Documentation

◆ LBWalberlaImpl()

◆ ~LBWalberlaImpl()

template<typename FloatType, lbmpy::Arch Architecture>
walberla::LBWalberlaImpl< FloatType, Architecture >::~LBWalberlaImpl ( )
overridedefault

Member Function Documentation

◆ add_force_at_pos()

template<typename FloatType, lbmpy::Arch Architecture>
bool walberla::LBWalberlaImpl< FloatType, Architecture >::add_force_at_pos ( Utils::Vector3d const & pos,
Utils::Vector3d const & force )
overridevirtual

Implements LBWalberlaBase.

Definition at line 345 of file LBInterpolation.impl.hpp.

References m_lattice.

◆ add_forces_at_pos()

template<typename FloatType, lbmpy::Arch Architecture>
void walberla::LBWalberlaImpl< FloatType, Architecture >::add_forces_at_pos ( std::vector< Utils::Vector3d > const & pos,
std::vector< Utils::Vector3d > const & forces )
overridevirtual

Distribute forces to the lattice at given positions.

Uses B-spline interpolation to spread each force over the surrounding lattice nodes. On GPU, positions are transformed to block-local coordinates and the operation is performed in a single kernel launch.

Implements LBWalberlaBase.

Definition at line 85 of file LBInterpolation.impl.hpp.

References walberla::lbm::accessor::Interpolation::add_force(), block(), lbmpy::CPU, get_lattice(), lbmpy::GPU, m_force_to_be_applied_id, and zero_centered_to_lb_in_place().

◆ add_to_storage()

template<typename FloatType, lbmpy::Arch Architecture>
template<typename Field>
auto walberla::LBWalberlaImpl< FloatType, Architecture >::add_to_storage ( std::string const tag)
inlineprotected

Convenience function to add a field with a custom allocator.

When vectorization is off, let waLBerla decide which memory allocator to use. When vectorization is on, the aligned memory allocator is required, otherwise cpu_vectorize_info["assume_aligned"] will trigger assertions. That is because for single-precision kernels the waLBerla heuristic in src/field/allocation/FieldAllocator.h will fall back to StdFieldAlloc, yet AllocateAligned is needed for intrinsics to work.

Definition at line 903 of file LBWalberlaImpl.hpp.

References block(), lbmpy::GPU, walberla::lbm::accessor::Population::initialize(), walberla::lbm::accessor::Vector::initialize(), and m_lattice.

Referenced by LBWalberlaImpl().

◆ apply_lees_edwards_interpolation()

template<typename FloatType, lbmpy::Arch Architecture>
void walberla::LBWalberlaImpl< FloatType, Architecture >::apply_lees_edwards_interpolation ( )
inline

Definition at line 578 of file LBWalberlaImpl.hpp.

References LatticeWalberla::get_blocks(), and get_lattice().

Referenced by ghost_communication_full().

◆ check_lebc()

template<typename FloatType, lbmpy::Arch Architecture>
void walberla::LBWalberlaImpl< FloatType, Architecture >::check_lebc ( unsigned int shear_direction,
unsigned int shear_plane_normal ) const
overridevirtual

Verify that MD and LB Lees-Edwards parameters are consistent.

Implements LBWalberlaBase.

Definition at line 147 of file LBCollisionSetup.impl.hpp.

References m_lees_edwards_callbacks.

◆ clear_boundaries()

template<typename FloatType, lbmpy::Arch Architecture>
void walberla::LBWalberlaImpl< FloatType, Architecture >::clear_boundaries ( )
overridevirtual

◆ FloatType_c()

template<typename FloatType, lbmpy::Arch Architecture>
template<typename T>
FloatType walberla::LBWalberlaImpl< FloatType, Architecture >::FloatType_c ( T t) const
inline

◆ get_boundary_force()

template<typename FloatType, lbmpy::Arch Architecture>
Utils::Vector3d walberla::LBWalberlaImpl< FloatType, Architecture >::get_boundary_force ( ) const
nodiscardoverridevirtual

◆ get_boundary_force_from_shape()

template<typename FloatType, lbmpy::Arch Architecture>
Utils::Vector3d walberla::LBWalberlaImpl< FloatType, Architecture >::get_boundary_force_from_shape ( std::vector< int > const & raster_flat) const
nodiscardoverridevirtual

Total force exerted by the fluid on a subset of boundary nodes.

Only boundary nodes where raster_flat is non-zero are included. The force is accumulated from the UBB index/force vectors by matching each boundary node's stencil neighbors against the index field.

Implements LBWalberlaBase.

Definition at line 264 of file LBBoundaryAccess.impl.hpp.

References block(), get_lattice(), m_boundary, and zero_centered_to_md().

◆ get_densities_at_pos()

template<typename FloatType, lbmpy::Arch Architecture>
std::vector< double > walberla::LBWalberlaImpl< FloatType, Architecture >::get_densities_at_pos ( std::vector< Utils::Vector3d > const & pos)
overridevirtual

◆ get_density()

template<typename FloatType, lbmpy::Arch Architecture>
double walberla::LBWalberlaImpl< FloatType, Architecture >::get_density ( ) const
inlinenodiscardoverridevirtualnoexcept

Implements LBWalberlaBase.

Definition at line 767 of file LBWalberlaImpl.hpp.

References m_density.

◆ get_density_at_pos()

template<typename FloatType, lbmpy::Arch Architecture>
std::optional< double > walberla::LBWalberlaImpl< FloatType, Architecture >::get_density_at_pos ( Utils::Vector3d const & pos,
bool consider_points_in_halo = false ) const
overridevirtual

◆ get_external_force()

template<typename FloatType, lbmpy::Arch Architecture>
Utils::Vector3d walberla::LBWalberlaImpl< FloatType, Architecture >::get_external_force ( ) const
inlinenodiscardoverridevirtualnoexcept

Implements LBWalberlaBase.

Definition at line 755 of file LBWalberlaImpl.hpp.

References m_reset_force, and zero_centered_to_md().

◆ get_force_field_id()

template<typename FloatType, lbmpy::Arch Architecture>
std::size_t walberla::LBWalberlaImpl< FloatType, Architecture >::get_force_field_id ( ) const
inlinenodiscardoverridevirtualnoexcept

Implements LBWalberlaBase.

Definition at line 809 of file LBWalberlaImpl.hpp.

References m_force_to_be_applied_id.

◆ get_kT()

template<typename FloatType, lbmpy::Arch Architecture>
double walberla::LBWalberlaImpl< FloatType, Architecture >::get_kT ( ) const
inlinenodiscardoverridevirtualnoexcept

Implements LBWalberlaBase.

Definition at line 771 of file LBWalberlaImpl.hpp.

References m_kT.

◆ get_lattice()

◆ get_momentum()

template<typename FloatType, lbmpy::Arch Architecture>
Utils::Vector3d walberla::LBWalberlaImpl< FloatType, Architecture >::get_momentum ( ) const
inlinenodiscardoverridevirtual

◆ get_node_boundary_force()

template<typename FloatType, lbmpy::Arch Architecture>
std::optional< Utils::Vector3d > walberla::LBWalberlaImpl< FloatType, Architecture >::get_node_boundary_force ( Utils::Vector3i const & node) const
overridevirtual

◆ get_node_density()

template<typename FloatType, lbmpy::Arch Architecture>
std::optional< double > walberla::LBWalberlaImpl< FloatType, Architecture >::get_node_density ( Utils::Vector3i const & node,
bool consider_ghosts = false ) const
overridevirtual

◆ get_node_force_to_be_applied()

template<typename FloatType, lbmpy::Arch Architecture>
std::optional< Utils::Vector3d > walberla::LBWalberlaImpl< FloatType, Architecture >::get_node_force_to_be_applied ( Utils::Vector3i const & node) const
overridevirtual

◆ get_node_is_boundary()

template<typename FloatType, lbmpy::Arch Architecture>
std::optional< bool > walberla::LBWalberlaImpl< FloatType, Architecture >::get_node_is_boundary ( Utils::Vector3i const & node,
bool consider_ghosts = false ) const
overridevirtual

◆ get_node_last_applied_force()

template<typename FloatType, lbmpy::Arch Architecture>
std::optional< Utils::Vector3d > walberla::LBWalberlaImpl< FloatType, Architecture >::get_node_last_applied_force ( Utils::Vector3i const & node,
bool consider_ghosts = false ) const
overridevirtual

◆ get_node_population()

template<typename FloatType, lbmpy::Arch Architecture>
std::optional< std::vector< double > > walberla::LBWalberlaImpl< FloatType, Architecture >::get_node_population ( Utils::Vector3i const & node,
bool consider_ghosts = false ) const
overridevirtual

◆ get_node_pressure_tensor()

template<typename FloatType, lbmpy::Arch Architecture>
std::optional< Utils::VectorXd< 9 > > walberla::LBWalberlaImpl< FloatType, Architecture >::get_node_pressure_tensor ( Utils::Vector3i const & node) const
overridevirtual

◆ get_node_velocity()

◆ get_node_velocity_at_boundary()

template<typename FloatType, lbmpy::Arch Architecture>
std::optional< Utils::Vector3d > walberla::LBWalberlaImpl< FloatType, Architecture >::get_node_velocity_at_boundary ( Utils::Vector3i const & node,
bool consider_ghosts = false ) const
overridevirtual

◆ get_pressure_tensor()

template<typename FloatType, lbmpy::Arch Architecture>
Utils::VectorXd< 9 > walberla::LBWalberlaImpl< FloatType, Architecture >::get_pressure_tensor ( ) const
inlinenodiscardoverridevirtual

◆ get_rng_state()

template<typename FloatType, lbmpy::Arch Architecture>
std::optional< uint64_t > walberla::LBWalberlaImpl< FloatType, Architecture >::get_rng_state ( ) const
inlinenodiscardoverridevirtual

Implements LBWalberlaBase.

Definition at line 779 of file LBWalberlaImpl.hpp.

References m_collision_model, and m_kT.

◆ get_seed()

template<typename FloatType, lbmpy::Arch Architecture>
unsigned int walberla::LBWalberlaImpl< FloatType, Architecture >::get_seed ( ) const
inlinenodiscardoverridevirtualnoexcept

Implements LBWalberlaBase.

Definition at line 775 of file LBWalberlaImpl.hpp.

References m_seed.

◆ get_slice_density()

template<typename FloatType, lbmpy::Arch Architecture>
std::vector< double > walberla::LBWalberlaImpl< FloatType, Architecture >::get_slice_density ( Utils::Vector3i const & lower_corner,
Utils::Vector3i const & upper_corner ) const
overridevirtual

◆ get_slice_is_boundary()

template<typename FloatType, lbmpy::Arch Architecture>
std::vector< bool > walberla::LBWalberlaImpl< FloatType, Architecture >::get_slice_is_boundary ( Utils::Vector3i const & lower_corner,
Utils::Vector3i const & upper_corner ) const
overridevirtual

◆ get_slice_last_applied_force()

template<typename FloatType, lbmpy::Arch Architecture>
std::vector< double > walberla::LBWalberlaImpl< FloatType, Architecture >::get_slice_last_applied_force ( Utils::Vector3i const & lower_corner,
Utils::Vector3i const & upper_corner ) const
overridevirtual

◆ get_slice_population()

template<typename FloatType, lbmpy::Arch Architecture>
std::vector< double > walberla::LBWalberlaImpl< FloatType, Architecture >::get_slice_population ( Utils::Vector3i const & lower_corner,
Utils::Vector3i const & upper_corner ) const
overridevirtual

◆ get_slice_pressure_tensor()

template<typename FloatType, lbmpy::Arch Architecture>
std::vector< double > walberla::LBWalberlaImpl< FloatType, Architecture >::get_slice_pressure_tensor ( Utils::Vector3i const & lower_corner,
Utils::Vector3i const & upper_corner ) const
overridevirtual

◆ get_slice_velocity()

template<typename FloatType, lbmpy::Arch Architecture>
std::vector< double > walberla::LBWalberlaImpl< FloatType, Architecture >::get_slice_velocity ( Utils::Vector3i const & lower_corner,
Utils::Vector3i const & upper_corner ) const
overridevirtual

◆ get_slice_velocity_at_boundary()

template<typename FloatType, lbmpy::Arch Architecture>
std::vector< std::optional< Utils::Vector3d > > walberla::LBWalberlaImpl< FloatType, Architecture >::get_slice_velocity_at_boundary ( Utils::Vector3i const & lower_corner,
Utils::Vector3i const & upper_corner ) const
overridevirtual

◆ get_velocities_at_pos()

template<typename FloatType, lbmpy::Arch Architecture>
std::vector< Utils::Vector3d > walberla::LBWalberlaImpl< FloatType, Architecture >::get_velocities_at_pos ( std::vector< Utils::Vector3d > const & pos)
overridevirtual

Interpolate velocities at given positions (batch version).

On GPU, boundary slip velocities are written into the velocity field before interpolation, since the field has indeterminate values inside boundary regions.

Implements LBWalberlaBase.

Definition at line 229 of file LBInterpolation.impl.hpp.

References block(), lbmpy::CPU, get_lattice(), walberla::lbm::accessor::Interpolation::get_vel(), lbmpy::GPU, m_boundary, m_velocity_field_id, and walberla::lbm::accessor::Vector::set_from_list().

◆ get_velocity_at_pos()

template<typename FloatType, lbmpy::Arch Architecture>
std::optional< Utils::Vector3d > walberla::LBWalberlaImpl< FloatType, Architecture >::get_velocity_at_pos ( Utils::Vector3d const & pos,
bool consider_points_in_halo = false ) const
overridevirtual

◆ get_velocity_field_id()

template<typename FloatType, lbmpy::Arch Architecture>
std::size_t walberla::LBWalberlaImpl< FloatType, Architecture >::get_velocity_field_id ( ) const
inlinenodiscardoverridevirtualnoexcept

Implements LBWalberlaBase.

Definition at line 805 of file LBWalberlaImpl.hpp.

References m_velocity_field_id.

◆ get_viscosity()

template<typename FloatType, lbmpy::Arch Architecture>
double walberla::LBWalberlaImpl< FloatType, Architecture >::get_viscosity ( ) const
inlinenodiscardoverridevirtualnoexcept

Implements LBWalberlaBase.

Definition at line 763 of file LBWalberlaImpl.hpp.

References m_viscosity.

◆ ghost_communication()

template<typename FloatType, lbmpy::Arch Architecture>
void walberla::LBWalberlaImpl< FloatType, Architecture >::ghost_communication ( )
inlineoverridevirtual

Perform all pending ghost layer updates.

Uses a lazy scheme: ghost communications are only executed when they have been marked as pending by a preceding write operation.

Implements LBWalberlaBase.

Definition at line 466 of file LBWalberlaImpl.hpp.

References ghost_communication_boundary(), ghost_communication_laf(), ghost_communication_pdf(), ghost_communication_vel(), m_mpi_cart_comm_observer, and m_pending_ghost_comm.

Referenced by clear_boundaries(), update_boundary_from_shape(), and update_derived_fields().

◆ ghost_communication_boundary()

template<typename FloatType, lbmpy::Arch Architecture>
void walberla::LBWalberlaImpl< FloatType, Architecture >::ghost_communication_boundary ( )
inline

◆ ghost_communication_full()

◆ ghost_communication_laf()

template<typename FloatType, lbmpy::Arch Architecture>
void walberla::LBWalberlaImpl< FloatType, Architecture >::ghost_communication_laf ( )
inlineoverridevirtual

◆ ghost_communication_pdf()

template<typename FloatType, lbmpy::Arch Architecture>
void walberla::LBWalberlaImpl< FloatType, Architecture >::ghost_communication_pdf ( )
inlineoverridevirtual

◆ ghost_communication_vel()

template<typename FloatType, lbmpy::Arch Architecture>
void walberla::LBWalberlaImpl< FloatType, Architecture >::ghost_communication_vel ( )
inlineoverridevirtual

◆ integrate()

template<typename FloatType, lbmpy::Arch Architecture>
void walberla::LBWalberlaImpl< FloatType, Architecture >::integrate ( )
inlineoverridevirtual

Implements LBWalberlaBase.

Definition at line 291 of file LBWalberlaImpl.hpp.

References integrate_vtk_writers().

◆ integrate_vtk_writers()

template<typename FloatType, lbmpy::Arch Architecture>
void walberla::LBWalberlaImpl< FloatType, Architecture >::integrate_vtk_writers ( )
inlineoverrideprotectedvirtual

Implements LatticeModel.

Definition at line 297 of file LBWalberlaImpl.hpp.

References LatticeModel::m_vtk_auto.

Referenced by integrate().

◆ is_double_precision()

template<typename FloatType, lbmpy::Arch Architecture>
bool walberla::LBWalberlaImpl< FloatType, Architecture >::is_double_precision ( ) const
inlinenodiscardoverridevirtualnoexcept

Implements LBWalberlaBase.

Definition at line 228 of file LBWalberlaImpl.hpp.

◆ is_gpu()

template<typename FloatType, lbmpy::Arch Architecture>
bool walberla::LBWalberlaImpl< FloatType, Architecture >::is_gpu ( ) const
inlinenodiscardoverridevirtualnoexcept

Implements LBWalberlaBase.

Definition at line 232 of file LBWalberlaImpl.hpp.

References lbmpy::GPU.

◆ make_lattice_position_checker()

template<typename FloatType, lbmpy::Arch Architecture>
std::function< bool(Utils::Vector3d const &)> walberla::LBWalberlaImpl< FloatType, Architecture >::make_lattice_position_checker ( bool consider_points_in_halo) const
overridevirtual

Implements LBWalberlaBase.

Definition at line 69 of file LBInterpolation.impl.hpp.

References m_lattice.

◆ on_boundary_add()

template<typename FloatType, lbmpy::Arch Architecture>
void walberla::LBWalberlaImpl< FloatType, Architecture >::on_boundary_add ( )

Lazily enable boundary mode on first boundary addition.

Switches the streaming communicator to the generic pack info, which correctly handles boundary-adjacent cells.

Definition at line 191 of file LBBoundaryAccess.impl.hpp.

References m_has_boundaries, and setup_streaming_communicator().

Referenced by set_node_velocity_at_boundary(), set_slice_velocity_at_boundary(), and update_boundary_from_shape().

◆ pressure_tensor_correction() [1/2]

template<typename FloatType, lbmpy::Arch Architecture>
void walberla::LBWalberlaImpl< FloatType, Architecture >::pressure_tensor_correction ( Matrix3< FloatType > & tensor) const
inline

◆ pressure_tensor_correction() [2/2]

template<typename FloatType, lbmpy::Arch Architecture>
void walberla::LBWalberlaImpl< FloatType, Architecture >::pressure_tensor_correction ( std::span< FloatType, 9ul > tensor) const
inline

Definition at line 829 of file LBWalberlaImpl.hpp.

References pressure_tensor_correction_factor().

◆ pressure_tensor_correction_factor()

template<typename FloatType, lbmpy::Arch Architecture>
FloatType walberla::LBWalberlaImpl< FloatType, Architecture >::pressure_tensor_correction_factor ( ) const
inline

Correction factor for off-diagonal pressure tensor elements.

Compensates for the viscosity-dependent error in the non-equilibrium stress: factor = nu / (nu + 1/6).

Definition at line 818 of file LBWalberlaImpl.hpp.

References m_viscosity.

Referenced by pressure_tensor_correction(), and pressure_tensor_correction().

◆ reallocate_ubb_field()

template<typename FloatType, lbmpy::Arch Architecture>
void walberla::LBWalberlaImpl< FloatType, Architecture >::reallocate_ubb_field ( )
overridevirtual

Implements LBWalberlaBase.

Definition at line 181 of file LBBoundaryAccess.impl.hpp.

References m_boundary.

Referenced by update_boundary_from_shape().

◆ register_vtk_field_filters()

template<typename FloatType, lbmpy::Arch Architecture>
void walberla::LBWalberlaImpl< FloatType, Architecture >::register_vtk_field_filters ( walberla::vtk::VTKOutput & vtk_obj)
inlineoverridevirtual

Implements LatticeModel.

Definition at line 879 of file LBWalberlaImpl.hpp.

References Boundary_flag, and m_flag_field_id.

◆ register_vtk_field_writers()

template<typename FloatType, lbmpy::Arch Architecture>
void walberla::LBWalberlaImpl< FloatType, Architecture >::register_vtk_field_writers ( walberla::vtk::VTKOutput & vtk_obj,
LatticeModel::units_map const & units,
int flag_observables )
overridevirtual

◆ remove_node_from_boundary()

template<typename FloatType, lbmpy::Arch Architecture>
bool walberla::LBWalberlaImpl< FloatType, Architecture >::remove_node_from_boundary ( Utils::Vector3i const & node)
overridevirtual

Implements LBWalberlaBase.

Definition at line 133 of file LBBoundaryAccess.impl.hpp.

References walberla::get_block_and_cell(), get_lattice(), and m_boundary.

◆ reset_boundary_handling()

template<typename FloatType, lbmpy::Arch Architecture>
void walberla::LBWalberlaImpl< FloatType, Architecture >::reset_boundary_handling ( std::shared_ptr< BlockStorage > const & blocks)
inline

◆ set_collision_model() [1/2]

template<typename FloatType, lbmpy::Arch Architecture>
void walberla::LBWalberlaImpl< FloatType, Architecture >::set_collision_model ( double kT,
unsigned int seed )
overridevirtual

Set up the thermalized collision model.

Configures MRT relaxation rates from the viscosity and initializes the random number generator for fluctuating LB. When kT is zero, fluctuations are suppressed but the thermalized kernel is still used (required for RNG state tracking).

Implements LBWalberlaBase.

Definition at line 56 of file LBCollisionSetup.impl.hpp.

References FloatType_c(), get_lattice(), m_collision_model, m_kT, m_last_applied_force_field_id, m_pdf_field_id, m_seed, setup_streaming_communicator(), and zero_centered_to_lb().

◆ set_collision_model() [2/2]

template<typename FloatType, lbmpy::Arch Architecture>
void walberla::LBWalberlaImpl< FloatType, Architecture >::set_collision_model ( std::unique_ptr< LeesEdwardsPack > && lees_edwards_pack)
overridevirtual

Set up the Lees-Edwards collision model.

Configures a modified collision step that applies the shear velocity at the Lees-Edwards boundary planes, and sets up the interpolation sweeps for PDFs, velocities, and forces at those boundaries. Currently restricted to shear_plane_normal="y" and no domain decomposition along the shear direction.

Implements LBWalberlaBase.

Definition at line 80 of file LBCollisionSetup.impl.hpp.

References FloatType_c(), get_lattice(), lbmpy::GPU, m_collision_model, m_kT, m_last_applied_force_field_id, m_lees_edwards_callbacks, m_lees_edwards_last_applied_force_interpol_sweep, m_lees_edwards_pdf_interpol_sweep, m_lees_edwards_vel_interpol_sweep, m_pdf_field_id, m_pdf_tmp_field_id, m_vel_tmp_field_id, m_velocity_field_id, and setup_streaming_communicator().

◆ set_external_force()

template<typename FloatType, lbmpy::Arch Architecture>
void walberla::LBWalberlaImpl< FloatType, Architecture >::set_external_force ( Utils::Vector3d const & ext_force)
inlineoverridevirtual

Implements LBWalberlaBase.

Definition at line 751 of file LBWalberlaImpl.hpp.

References m_reset_force, and zero_centered_to_lb().

◆ set_node_density()

template<typename FloatType, lbmpy::Arch Architecture>
bool walberla::LBWalberlaImpl< FloatType, Architecture >::set_node_density ( Utils::Vector3i const & node,
double density )
overridevirtual

◆ set_node_last_applied_force()

◆ set_node_population()

◆ set_node_velocity()

◆ set_node_velocity_at_boundary()

template<typename FloatType, lbmpy::Arch Architecture>
bool walberla::LBWalberlaImpl< FloatType, Architecture >::set_node_velocity_at_boundary ( Utils::Vector3i const & node,
Utils::Vector3d const & velocity )
overridevirtual

◆ set_rng_state()

template<typename FloatType, lbmpy::Arch Architecture>
void walberla::LBWalberlaImpl< FloatType, Architecture >::set_rng_state ( uint64_t counter)
inlineoverridevirtual

Implements LBWalberlaBase.

Definition at line 789 of file LBWalberlaImpl.hpp.

References m_collision_model, and m_kT.

◆ set_slice_density()

template<typename FloatType, lbmpy::Arch Architecture>
void walberla::LBWalberlaImpl< FloatType, Architecture >::set_slice_density ( Utils::Vector3i const & lower_corner,
Utils::Vector3i const & upper_corner,
std::vector< double > const & density )
overridevirtual

◆ set_slice_last_applied_force()

◆ set_slice_population()

template<typename FloatType, lbmpy::Arch Architecture>
void walberla::LBWalberlaImpl< FloatType, Architecture >::set_slice_population ( Utils::Vector3i const & lower_corner,
Utils::Vector3i const & upper_corner,
std::vector< double > const & population )
overridevirtual

◆ set_slice_velocity()

◆ set_slice_velocity_at_boundary()

template<typename FloatType, lbmpy::Arch Architecture>
void walberla::LBWalberlaImpl< FloatType, Architecture >::set_slice_velocity_at_boundary ( Utils::Vector3i const & lower_corner,
Utils::Vector3i const & upper_corner,
std::vector< std::optional< Utils::Vector3d > > const & velocity )
overridevirtual

◆ set_viscosity()

template<typename FloatType, lbmpy::Arch Architecture>
void walberla::LBWalberlaImpl< FloatType, Architecture >::set_viscosity ( double viscosity)
inlineoverridevirtual

Implements LBWalberlaBase.

Definition at line 759 of file LBWalberlaImpl.hpp.

References FloatType_c(), and m_viscosity.

◆ setup_full_communicator()

template<typename FloatType, lbmpy::Arch Architecture>
void walberla::LBWalberlaImpl< FloatType, Architecture >::setup_full_communicator ( )
inlineprotected

Set up D3Q27 communicators for full ghost layer updates.

Creates per-field communicators (PDF, velocity, last-applied force) as well as a combined communicator and the boundary communicator.

Definition at line 947 of file LBWalberlaImpl.hpp.

References m_boundary, m_boundary_communicator, m_flag_field_id, m_full_communicator, m_laf_communicator, m_last_applied_force_field_id, m_lattice, m_pdf_communicator, m_pdf_field_id, m_vel_communicator, m_velocity_field_id, and walberla::field::communication::BoundaryPackInfo< GhostLayerField_T, Boundary_T >::setup_boundary_handle().

Referenced by LBWalberlaImpl().

◆ setup_streaming_communicator()

template<typename FloatType, lbmpy::Arch Architecture>
void walberla::LBWalberlaImpl< FloatType, Architecture >::setup_streaming_communicator ( )
inlineprotected

Set up the communicator used during integration.

Uses optimized streaming pack info when neither boundaries nor Lees-Edwards boundary conditions are active; falls back to the generic pack info otherwise.

Definition at line 986 of file LBWalberlaImpl.hpp.

References m_collision_model, m_has_boundaries, m_last_applied_force_field_id, m_lattice, m_pdf_field_id, and m_pdf_streaming_communicator.

Referenced by clear_boundaries(), LBWalberlaImpl(), on_boundary_add(), set_collision_model(), and set_collision_model().

◆ stencil_size()

template<typename FloatType, lbmpy::Arch Architecture>
std::size_t walberla::LBWalberlaImpl< FloatType, Architecture >::stencil_size ( ) const
inlinenodiscardoverridevirtualnoexcept

Implements LBWalberlaBase.

Definition at line 224 of file LBWalberlaImpl.hpp.

Referenced by get_slice_population(), and set_slice_population().

◆ update_boundary_from_shape()

template<typename FloatType, lbmpy::Arch Architecture>
void walberla::LBWalberlaImpl< FloatType, Architecture >::update_boundary_from_shape ( std::vector< int > const & raster_flat,
std::vector< double > const & data_flat )
overridevirtual

Set boundary conditions from a rasterized shape.

Parameters
raster_flatFlattened 3D mask (non-zero = boundary node).
data_flatFlattened 3D array of slip velocities (3 components per node, same ordering as raster_flat).

Implements LBWalberlaBase.

Definition at line 215 of file LBBoundaryAccess.impl.hpp.

References walberla::fill_3D_vector_array(), get_lattice(), ghost_communication(), m_boundary, m_pending_ghost_comm, on_boundary_add(), reallocate_ubb_field(), walberla::set_boundary_from_grid(), and walberla::LBWalberlaImpl< FloatType, Architecture >::GhostComm::UBB.

◆ update_derived_fields()

template<typename FloatType, lbmpy::Arch Architecture>
void walberla::LBWalberlaImpl< FloatType, Architecture >::update_derived_fields ( )
inlineoverridevirtual

Recompute the fields that the LB step derives from the PDFs.

Runs the boundary sweep and the velocity update sweep on the current PDFs, like the final stage of integrate_pull_scheme(), and communicates the ghost layers. The boundary sweep also restores the boundary forces.

Implements LBWalberlaBase.

Definition at line 527 of file LBWalberlaImpl.hpp.

References LatticeWalberla::get_blocks(), get_lattice(), ghost_communication(), ghost_communication_vel(), m_has_boundaries, m_mpi_cart_comm_observer, m_pending_ghost_comm, and walberla::LBWalberlaImpl< FloatType, Architecture >::GhostComm::VEL.

◆ zero_centered_to_lb()

template<typename FloatType, lbmpy::Arch Architecture>
auto walberla::LBWalberlaImpl< FloatType, Architecture >::zero_centered_to_lb ( auto const & data) const
inlineprotected

Definition at line 864 of file LBWalberlaImpl.hpp.

References zero_centered_to_lb_in_place().

Referenced by set_collision_model(), and set_external_force().

◆ zero_centered_to_lb_in_place()

template<typename FloatType, lbmpy::Arch Architecture>
void walberla::LBWalberlaImpl< FloatType, Architecture >::zero_centered_to_lb_in_place ( auto & data) const
inlineprotected

Definition at line 856 of file LBWalberlaImpl.hpp.

References m_zc_to_lb, and zero_centered_transform_impl().

Referenced by add_forces_at_pos(), and zero_centered_to_lb().

◆ zero_centered_to_md()

template<typename FloatType, lbmpy::Arch Architecture>
auto walberla::LBWalberlaImpl< FloatType, Architecture >::zero_centered_to_md ( auto const & data) const
inlineprotected

◆ zero_centered_to_md_in_place()

template<typename FloatType, lbmpy::Arch Architecture>
void walberla::LBWalberlaImpl< FloatType, Architecture >::zero_centered_to_md_in_place ( auto & data) const
inlineprotected

◆ zero_centered_transform_impl()

template<typename FloatType, lbmpy::Arch Architecture>
template<typename T>
void walberla::LBWalberlaImpl< FloatType, Architecture >::zero_centered_transform_impl ( T & data,
auto const factor ) const
inlineprotected

Scale data by a conversion factor (in-place).

Used for zero-centered density representation: LB internally stores density fluctuations around zero, while the user interface uses absolute densities. The conversion factors m_zc_to_md and m_zc_to_lb translate between these representations.

Definition at line 845 of file LBWalberlaImpl.hpp.

Referenced by zero_centered_to_lb_in_place(), and zero_centered_to_md_in_place().

Member Data Documentation

◆ Boundary_flag

template<typename FloatType, lbmpy::Arch Architecture>
FlagUID const walberla::LBWalberlaImpl< FloatType, Architecture >::Boundary_flag {"boundary"}
protected

Flag for boundary cells.

Definition at line 184 of file LBWalberlaImpl.hpp.

Referenced by register_vtk_field_filters(), and register_vtk_field_writers().

◆ m_boundary

◆ m_boundary_communicator

template<typename FloatType, lbmpy::Arch Architecture>
std::shared_ptr<BoundaryFullCommunicator> walberla::LBWalberlaImpl< FloatType, Architecture >::m_boundary_communicator
protected

Definition at line 191 of file LBWalberlaImpl.hpp.

Referenced by ghost_communication_boundary(), and setup_full_communicator().

◆ m_collision_model

template<typename FloatType, lbmpy::Arch Architecture>
std::shared_ptr<CollisionModel> walberla::LBWalberlaImpl< FloatType, Architecture >::m_collision_model
protected

◆ m_density

◆ m_flag_field_id

template<typename FloatType, lbmpy::Arch Architecture>
BlockDataID walberla::LBWalberlaImpl< FloatType, Architecture >::m_flag_field_id
protected

◆ m_force_to_be_applied_id

template<typename FloatType, lbmpy::Arch Architecture>
BlockDataID walberla::LBWalberlaImpl< FloatType, Architecture >::m_force_to_be_applied_id
protected

◆ m_full_communicator

template<typename FloatType, lbmpy::Arch Architecture>
std::shared_ptr<RegularFullCommunicator> walberla::LBWalberlaImpl< FloatType, Architecture >::m_full_communicator
protected

Definition at line 192 of file LBWalberlaImpl.hpp.

Referenced by ghost_communication_full(), and setup_full_communicator().

◆ m_has_boundaries

template<typename FloatType, lbmpy::Arch Architecture>
bool walberla::LBWalberlaImpl< FloatType, Architecture >::m_has_boundaries {false}
protected

◆ m_kT

template<typename FloatType, lbmpy::Arch Architecture>
FloatType walberla::LBWalberlaImpl< FloatType, Architecture >::m_kT
protected

◆ m_laf_communicator

template<typename FloatType, lbmpy::Arch Architecture>
std::shared_ptr<RegularFullCommunicator> walberla::LBWalberlaImpl< FloatType, Architecture >::m_laf_communicator
protected

Definition at line 195 of file LBWalberlaImpl.hpp.

Referenced by ghost_communication_laf(), and setup_full_communicator().

◆ m_last_applied_force_field_id

◆ m_lattice

◆ m_lees_edwards_callbacks

template<typename FloatType, lbmpy::Arch Architecture>
std::shared_ptr<LeesEdwardsPack> walberla::LBWalberlaImpl< FloatType, Architecture >::m_lees_edwards_callbacks
protected

Definition at line 211 of file LBWalberlaImpl.hpp.

Referenced by check_lebc(), and set_collision_model().

◆ m_lees_edwards_last_applied_force_interpol_sweep

template<typename FloatType, lbmpy::Arch Architecture>
std::shared_ptr<InterpolateAndShiftAtBoundary<_VectorField, FloatType> > walberla::LBWalberlaImpl< FloatType, Architecture >::m_lees_edwards_last_applied_force_interpol_sweep
protected

Definition at line 217 of file LBWalberlaImpl.hpp.

Referenced by set_collision_model().

◆ m_lees_edwards_pdf_interpol_sweep

template<typename FloatType, lbmpy::Arch Architecture>
std::shared_ptr<InterpolateAndShiftAtBoundary<_PdfField, FloatType> > walberla::LBWalberlaImpl< FloatType, Architecture >::m_lees_edwards_pdf_interpol_sweep
protected

Definition at line 213 of file LBWalberlaImpl.hpp.

Referenced by set_collision_model().

◆ m_lees_edwards_vel_interpol_sweep

template<typename FloatType, lbmpy::Arch Architecture>
std::shared_ptr<InterpolateAndShiftAtBoundary<_VectorField, FloatType> > walberla::LBWalberlaImpl< FloatType, Architecture >::m_lees_edwards_vel_interpol_sweep
protected

Definition at line 215 of file LBWalberlaImpl.hpp.

Referenced by set_collision_model().

◆ m_mpi_cart_comm_observer

◆ m_pdf_communicator

template<typename FloatType, lbmpy::Arch Architecture>
std::shared_ptr<RegularFullCommunicator> walberla::LBWalberlaImpl< FloatType, Architecture >::m_pdf_communicator
protected

Definition at line 193 of file LBWalberlaImpl.hpp.

Referenced by ghost_communication_pdf(), and setup_full_communicator().

◆ m_pdf_field_id

◆ m_pdf_streaming_communicator

template<typename FloatType, lbmpy::Arch Architecture>
std::shared_ptr<PDFStreamingCommunicator> walberla::LBWalberlaImpl< FloatType, Architecture >::m_pdf_streaming_communicator
protected

Definition at line 196 of file LBWalberlaImpl.hpp.

Referenced by setup_streaming_communicator().

◆ m_pdf_tmp_field_id

template<typename FloatType, lbmpy::Arch Architecture>
BlockDataID walberla::LBWalberlaImpl< FloatType, Architecture >::m_pdf_tmp_field_id
protected

Definition at line 174 of file LBWalberlaImpl.hpp.

Referenced by LBWalberlaImpl(), and set_collision_model().

◆ m_pending_ghost_comm

◆ m_reset_force

template<typename FloatType, lbmpy::Arch Architecture>
std::shared_ptr<ResetForce<PdfField, VectorField> > walberla::LBWalberlaImpl< FloatType, Architecture >::m_reset_force
protected

Definition at line 204 of file LBWalberlaImpl.hpp.

Referenced by get_external_force(), LBWalberlaImpl(), and set_external_force().

◆ m_seed

template<typename FloatType, lbmpy::Arch Architecture>
unsigned int walberla::LBWalberlaImpl< FloatType, Architecture >::m_seed
protected

Definition at line 165 of file LBWalberlaImpl.hpp.

Referenced by get_seed(), LBWalberlaImpl(), and set_collision_model().

◆ m_update_velocities_from_pdf

template<typename FloatType, lbmpy::Arch Architecture>
std::shared_ptr<typename Kernels::UpdateVelFromPDF> walberla::LBWalberlaImpl< FloatType, Architecture >::m_update_velocities_from_pdf
protected

Definition at line 208 of file LBWalberlaImpl.hpp.

Referenced by LBWalberlaImpl().

◆ m_vel_communicator

template<typename FloatType, lbmpy::Arch Architecture>
std::shared_ptr<RegularFullCommunicator> walberla::LBWalberlaImpl< FloatType, Architecture >::m_vel_communicator
protected

Definition at line 194 of file LBWalberlaImpl.hpp.

Referenced by ghost_communication_vel(), and setup_full_communicator().

◆ m_vel_tmp_field_id

template<typename FloatType, lbmpy::Arch Architecture>
BlockDataID walberla::LBWalberlaImpl< FloatType, Architecture >::m_vel_tmp_field_id
protected

Definition at line 181 of file LBWalberlaImpl.hpp.

Referenced by LBWalberlaImpl(), and set_collision_model().

◆ m_velocity_field_id

◆ m_viscosity

template<typename FloatType, lbmpy::Arch Architecture>
FloatType walberla::LBWalberlaImpl< FloatType, Architecture >::m_viscosity
protected

◆ m_zc_to_lb

template<typename FloatType, lbmpy::Arch Architecture>
double walberla::LBWalberlaImpl< FloatType, Architecture >::m_zc_to_lb
protected

Definition at line 167 of file LBWalberlaImpl.hpp.

Referenced by LBWalberlaImpl(), and zero_centered_to_lb_in_place().

◆ m_zc_to_md

template<typename FloatType, lbmpy::Arch Architecture>
double walberla::LBWalberlaImpl< FloatType, Architecture >::m_zc_to_md
protected

Definition at line 166 of file LBWalberlaImpl.hpp.

Referenced by LBWalberlaImpl(), and zero_centered_to_md_in_place().


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