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

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

#include <EKinWalberlaImpl.hpp>

Inheritance diagram for walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >:
Collaboration diagram for walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >:

Classes

struct  FieldTrait
struct  GhostComm
class  VTKWriter
class  DensityVTKWriter
class  FluxVTKWriter
class  BoundaryVTKWriter

Public Types

using Stencil = stencil::D3Q27
 Stencil for collision and streaming operations.
using BlockStorage = LatticeWalberla::Lattice_T
 Lattice model (e.g.
using FluxField = typename FieldTrait<FloatType, Architecture>::FluxField
using DensityField
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)
std::size_t stencil_size () const noexcept override
bool is_double_precision () const noexcept override
 EKinWalberlaImpl (std::shared_ptr< LatticeWalberla > lattice, double diffusion, double kT, double valency, Utils::Vector3d const &ext_efield, double density, bool advection, bool friction_coupling, bool thermalized, unsigned int seed)
double get_diffusion () const noexcept override
double get_kT () const noexcept override
double get_valency () const noexcept override
bool get_advection () const noexcept override
bool get_friction_coupling () const noexcept override
Utils::Vector3d get_ext_efield () const noexcept override
bool is_thermalized () const noexcept override
unsigned int get_seed () const noexcept override
std::optional< uint64_t > get_rng_state () const override
void set_diffusion (double diffusion) override
void set_kT (double kT) override
void set_valency (double valency) override
void set_advection (bool advection) override
void set_friction_coupling (bool friction_coupling) override
void set_rng_state (uint64_t counter) override
void set_ext_efield (Utils::Vector3d const &field) override
void ghost_communication () override
void ghost_communication_boundary ()
void integrate (std::size_t potential_id, std::size_t velocity_id, std::size_t force_id, double lb_density) override
std::size_t get_density_id () const noexcept override
bool set_node_density (Utils::Vector3i const &node, double density) override
std::optional< double > get_node_density (Utils::Vector3i const &node, bool consider_ghosts=false) const 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< Utils::Vector3d > get_node_flux_vector (Utils::Vector3i const &node, bool consider_ghosts=false) const override
std::vector< double > get_slice_flux_vector (Utils::Vector3i const &lower_corner, Utils::Vector3i const &upper_corner) const override
void clear_flux_boundaries () override
void clear_density_boundaries () override
bool set_node_flux_boundary (Utils::Vector3i const &node, Utils::Vector3d const &flux) override
std::optional< Utils::Vector3d > get_node_flux_at_boundary (Utils::Vector3i const &node, bool consider_ghosts=false) const override
bool remove_node_from_flux_boundary (Utils::Vector3i const &node) override
bool set_node_density_boundary (Utils::Vector3i const &node, double density) override
std::optional< double > get_node_density_at_boundary (Utils::Vector3i const &node, bool consider_ghosts=false) const override
void set_slice_density_boundary (Utils::Vector3i const &lower_corner, Utils::Vector3i const &upper_corner, std::vector< std::optional< double > > const &density) override
std::vector< std::optional< double > > get_slice_density_at_boundary (Utils::Vector3i const &lower_corner, Utils::Vector3i const &upper_corner) const override
void set_slice_flux_boundary (Utils::Vector3i const &lower_corner, Utils::Vector3i const &upper_corner, std::vector< std::optional< Utils::Vector3d > > const &flux) override
std::vector< std::optional< Utils::Vector3d > > get_slice_flux_at_boundary (Utils::Vector3i const &lower_corner, Utils::Vector3i const &upper_corner) const override
std::vector< bool > get_slice_is_boundary (Utils::Vector3i const &lower_corner, Utils::Vector3i const &upper_corner) const override
bool remove_node_from_density_boundary (Utils::Vector3i const &node) override
std::optional< bool > get_node_is_flux_boundary (Utils::Vector3i const &node, bool consider_ghosts) const override
std::optional< bool > get_node_is_density_boundary (Utils::Vector3i const &node, bool consider_ghosts) const override
std::optional< bool > get_node_is_boundary (Utils::Vector3i const &node, bool consider_ghosts=false) const override
void update_flux_boundary_from_shape (const std::vector< int > &raster_flat, const std::vector< double > &data_flat) override
void update_density_boundary_from_shape (const std::vector< int > &raster_flat, const std::vector< double > &data_flat) override
void reallocate_flux_boundary_field ()
void reallocate_density_boundary_field ()
LatticeWalberla const & get_lattice () const noexcept override
bool is_gpu () const noexcept override
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
 ~EKinWalberlaImpl () override=default
Public Member Functions inherited from EKinWalberlaBase
 ~EKinWalberlaBase () 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 FlagField = walberla::FlagField<walberla::uint8_t>
using _FluxField = typename FieldTrait<FloatType>::FluxField
using _DensityField = typename FieldTrait<FloatType>::DensityField
using FullCommunicator
using BoundaryFullCommunicator
template<class Field>
using PackInfo

Protected Member Functions

template<typename Field>
auto add_to_storage (std::string const tag, FloatType value)
 Convenience function to add a field with a custom allocator.
void reset_density_boundary_handling (std::shared_ptr< BlockStorage > const &blocks)
void reset_flux_boundary_handling (std::shared_ptr< BlockStorage > const &blocks)
void integrate_vtk_writers () override

Protected Attributes

BlockDataID m_density_field_id
BlockDataID m_flux_field_id
BlockDataID m_flag_field_density_id
BlockDataID m_flag_field_flux_id
FlagUID const Domain_flag {"domain"}
 Flag for domain cells, i.e.
FlagUID const Boundary_flag {"boundary"}
 Flag for boundary cells.
std::shared_ptr< LatticeWalberla > m_lattice
 Block forest.
std::unique_ptr< BoundaryModelDensity > m_boundary_density
std::shared_ptr< BoundaryModelFlux > m_boundary_flux
std::unique_ptr< DiffusiveFluxKernel > m_diffusive_flux
std::unique_ptr< DiffusiveFluxKernelElectrostatic > m_diffusive_flux_electrostatic
std::unique_ptr< ContinuityKernel > m_continuity
std::shared_ptr< FullCommunicator > m_full_communication
std::shared_ptr< BoundaryFullCommunicator > m_boundary_communicator
std::bitset< GhostComm::SIZE > m_pending_ghost_comm
ResourceObserver m_mpi_cart_comm_observer
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<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
class walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >

Class that runs and controls the EK on waLBerla.

Definition at line 74 of file EKinWalberlaImpl.hpp.

Member Typedef Documentation

◆ _DensityField

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
using walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::_DensityField = typename FieldTrait<FloatType>::DensityField
protected

Definition at line 176 of file EKinWalberlaImpl.hpp.

◆ _FluxField

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
using walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::_FluxField = typename FieldTrait<FloatType>::FluxField
protected

Definition at line 175 of file EKinWalberlaImpl.hpp.

◆ BlockStorage

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
using walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::BlockStorage = LatticeWalberla::Lattice_T

Lattice model (e.g.

blockforest).

Definition at line 119 of file EKinWalberlaImpl.hpp.

◆ BoundaryFullCommunicator

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
using walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::BoundaryFullCommunicator
protected
Initial value:

Definition at line 290 of file EKinWalberlaImpl.hpp.

◆ DensityField

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
using walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::DensityField
Initial value:

Definition at line 180 of file EKinWalberlaImpl.hpp.

◆ FlagField

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
using walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::FlagField = walberla::FlagField<walberla::uint8_t>
protected

Definition at line 135 of file EKinWalberlaImpl.hpp.

◆ FluxField

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
using walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::FluxField = typename FieldTrait<FloatType, Architecture>::FluxField

Definition at line 179 of file EKinWalberlaImpl.hpp.

◆ FullCommunicator

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
using walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::FullCommunicator
protected
Initial value:
typename stencil::D3Q27>

Definition at line 287 of file EKinWalberlaImpl.hpp.

◆ PackInfo

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
template<class Field>
using walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::PackInfo
protected
Initial value:
typename FieldTrait< FloatType, Architecture >::template PackInfo< Field > PackInfo

Definition at line 298 of file EKinWalberlaImpl.hpp.

◆ Stencil

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
using walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::Stencil = stencil::D3Q27

Stencil for collision and streaming operations.

Definition at line 117 of file EKinWalberlaImpl.hpp.

Constructor & Destructor Documentation

◆ EKinWalberlaImpl()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::EKinWalberlaImpl ( std::shared_ptr< LatticeWalberla > lattice,
double diffusion,
double kT,
double valency,
Utils::Vector3d const & ext_efield,
double density,
bool advection,
bool friction_coupling,
bool thermalized,
unsigned int seed )
inline

◆ ~EKinWalberlaImpl()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::~EKinWalberlaImpl ( )
overridedefault

Member Function Documentation

◆ add_to_storage()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
template<typename Field>
auto walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::add_to_storage ( std::string const tag,
FloatType value )
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 245 of file EKinWalberlaImpl.hpp.

References block(), lbmpy::GPU, walberla::ek::accessor::Flux::initialize(), walberla::ek::accessor::Scalar::initialize(), and m_lattice.

Referenced by EKinWalberlaImpl().

◆ clear_density_boundaries()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
void walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::clear_density_boundaries ( )
inlineoverridevirtual

Implements EKinWalberlaBase.

Definition at line 824 of file EKinWalberlaImpl.hpp.

References get_lattice(), and reset_density_boundary_handling().

◆ clear_flux_boundaries()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
void walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::clear_flux_boundaries ( )
inlineoverridevirtual

◆ FloatType_c()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
template<typename T>
FloatType walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::FloatType_c ( T t)
inline

◆ get_advection()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
bool walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::get_advection ( ) const
inlinenodiscardoverridevirtualnoexcept

Implements EKinWalberlaBase.

Definition at line 363 of file EKinWalberlaImpl.hpp.

Referenced by integrate().

◆ get_density_id()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
std::size_t walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::get_density_id ( ) const
inlinenodiscardoverridevirtualnoexcept

Implements EKinWalberlaBase.

Definition at line 653 of file EKinWalberlaImpl.hpp.

References m_density_field_id.

◆ get_diffusion()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
double walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::get_diffusion ( ) const
inlinenodiscardoverridevirtualnoexcept

Implements EKinWalberlaBase.

Definition at line 356 of file EKinWalberlaImpl.hpp.

Referenced by integrate().

◆ get_ext_efield()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
Utils::Vector3d walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::get_ext_efield ( ) const
inlinenodiscardoverridevirtualnoexcept

Implements EKinWalberlaBase.

Definition at line 369 of file EKinWalberlaImpl.hpp.

◆ get_friction_coupling()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
bool walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::get_friction_coupling ( ) const
inlinenodiscardoverridevirtualnoexcept

Implements EKinWalberlaBase.

Definition at line 366 of file EKinWalberlaImpl.hpp.

Referenced by integrate().

◆ get_kT()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
double walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::get_kT ( ) const
inlinenodiscardoverridevirtualnoexcept

Implements EKinWalberlaBase.

Definition at line 359 of file EKinWalberlaImpl.hpp.

◆ get_lattice()

◆ get_node_density()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
std::optional< double > walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::get_node_density ( Utils::Vector3i const & node,
bool consider_ghosts = false ) const
inlinenodiscardoverridevirtual

◆ get_node_density_at_boundary()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
std::optional< double > walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::get_node_density_at_boundary ( Utils::Vector3i const & node,
bool consider_ghosts = false ) const
inlinenodiscardoverridevirtual

◆ get_node_flux_at_boundary()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
std::optional< Utils::Vector3d > walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::get_node_flux_at_boundary ( Utils::Vector3i const & node,
bool consider_ghosts = false ) const
inlinenodiscardoverridevirtual

◆ get_node_flux_vector()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
std::optional< Utils::Vector3d > walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::get_node_flux_vector ( Utils::Vector3i const & node,
bool consider_ghosts = false ) const
inlinenodiscardoverridevirtual

◆ get_node_is_boundary()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
std::optional< bool > walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::get_node_is_boundary ( Utils::Vector3i const & node,
bool consider_ghosts = false ) const
inlinenodiscardoverridevirtual

◆ get_node_is_density_boundary()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
std::optional< bool > walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::get_node_is_density_boundary ( Utils::Vector3i const & node,
bool consider_ghosts ) const
inlinenodiscardoverridevirtual

◆ get_node_is_flux_boundary()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
std::optional< bool > walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::get_node_is_flux_boundary ( Utils::Vector3i const & node,
bool consider_ghosts ) const
inlinenodiscardoverridevirtual

◆ get_rng_state()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
std::optional< uint64_t > walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::get_rng_state ( ) const
inlinenodiscardoverridevirtual

Implements EKinWalberlaBase.

Definition at line 379 of file EKinWalberlaImpl.hpp.

References m_diffusive_flux.

◆ get_seed()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
unsigned int walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::get_seed ( ) const
inlinenodiscardoverridevirtualnoexcept

Implements EKinWalberlaBase.

Definition at line 376 of file EKinWalberlaImpl.hpp.

◆ get_slice_density()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
std::vector< double > walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::get_slice_density ( Utils::Vector3i const & lower_corner,
Utils::Vector3i const & upper_corner ) const
inlinenodiscardoverridevirtual

◆ get_slice_density_at_boundary()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
std::vector< std::optional< double > > walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::get_slice_density_at_boundary ( Utils::Vector3i const & lower_corner,
Utils::Vector3i const & upper_corner ) const
inlinenodiscardoverridevirtual

◆ get_slice_flux_at_boundary()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
std::vector< std::optional< Utils::Vector3d > > walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::get_slice_flux_at_boundary ( Utils::Vector3i const & lower_corner,
Utils::Vector3i const & upper_corner ) const
inlinenodiscardoverridevirtual

◆ get_slice_flux_vector()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
std::vector< double > walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::get_slice_flux_vector ( Utils::Vector3i const & lower_corner,
Utils::Vector3i const & upper_corner ) const
inlineoverridevirtual

◆ get_slice_is_boundary()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
std::vector< bool > walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::get_slice_is_boundary ( Utils::Vector3i const & lower_corner,
Utils::Vector3i const & upper_corner ) const
inlinenodiscardoverridevirtual

◆ get_valency()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
double walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::get_valency ( ) const
inlinenodiscardoverridevirtualnoexcept

Implements EKinWalberlaBase.

Definition at line 360 of file EKinWalberlaImpl.hpp.

Referenced by integrate().

◆ ghost_communication()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
void walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::ghost_communication ( )
inlineoverridevirtual

◆ ghost_communication_boundary()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
void walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::ghost_communication_boundary ( )
inline

◆ integrate()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
void walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::integrate ( std::size_t potential_id,
std::size_t velocity_id,
std::size_t force_id,
double lb_density )
inlineoverridevirtual

◆ integrate_vtk_writers()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
void walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::integrate_vtk_writers ( )
inlineoverrideprotectedvirtual

Implements LatticeModel.

Definition at line 590 of file EKinWalberlaImpl.hpp.

References LatticeModel::m_vtk_auto.

Referenced by integrate().

◆ is_double_precision()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
bool walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::is_double_precision ( ) const
inlinenodiscardoverridevirtualnoexcept

Implements EKinWalberlaBase.

Definition at line 191 of file EKinWalberlaImpl.hpp.

◆ is_gpu()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
bool walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::is_gpu ( ) const
inlinenodiscardoverridevirtualnoexcept

Implements EKinWalberlaBase.

Definition at line 1099 of file EKinWalberlaImpl.hpp.

References lbmpy::GPU.

◆ is_thermalized()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
bool walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::is_thermalized ( ) const
inlinenodiscardoverridevirtualnoexcept

Implements EKinWalberlaBase.

Definition at line 372 of file EKinWalberlaImpl.hpp.

References m_diffusive_flux.

◆ reallocate_density_boundary_field()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
void walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::reallocate_density_boundary_field ( )
inline

Definition at line 1091 of file EKinWalberlaImpl.hpp.

References m_boundary_density.

Referenced by update_density_boundary_from_shape().

◆ reallocate_flux_boundary_field()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
void walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::reallocate_flux_boundary_field ( )
inline

Definition at line 1089 of file EKinWalberlaImpl.hpp.

References m_boundary_flux.

Referenced by update_flux_boundary_from_shape().

◆ register_vtk_field_filters()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
void walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::register_vtk_field_filters ( walberla::vtk::VTKOutput & vtk_obj)
inlineoverridevirtual

Implements LatticeModel.

Definition at line 1103 of file EKinWalberlaImpl.hpp.

References Boundary_flag, m_flag_field_density_id, and m_flag_field_flux_id.

◆ register_vtk_field_writers()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
void walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::register_vtk_field_writers ( walberla::vtk::VTKOutput & vtk_obj,
LatticeModel::units_map const & units,
int flag_observables )
inlineoverridevirtual

◆ remove_node_from_density_boundary()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
bool walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::remove_node_from_density_boundary ( Utils::Vector3i const & node)
inlineoverridevirtual

◆ remove_node_from_flux_boundary()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
bool walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::remove_node_from_flux_boundary ( Utils::Vector3i const & node)
inlineoverridevirtual

◆ reset_density_boundary_handling()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
void walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::reset_density_boundary_handling ( std::shared_ptr< BlockStorage > const & blocks)
inlineprotected

◆ reset_flux_boundary_handling()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
void walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::reset_flux_boundary_handling ( std::shared_ptr< BlockStorage > const & blocks)
inlineprotected

◆ set_advection()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
void walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::set_advection ( bool advection)
inlineoverridevirtual

Implements EKinWalberlaBase.

Definition at line 410 of file EKinWalberlaImpl.hpp.

◆ set_diffusion()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
void walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::set_diffusion ( double diffusion)
inlineoverridevirtual

◆ set_ext_efield()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
void walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::set_ext_efield ( Utils::Vector3d const & field)
inlineoverridevirtual

Implements EKinWalberlaBase.

Definition at line 432 of file EKinWalberlaImpl.hpp.

References FloatType_c(), and m_diffusive_flux_electrostatic.

◆ set_friction_coupling()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
void walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::set_friction_coupling ( bool friction_coupling)
inlineoverridevirtual

Implements EKinWalberlaBase.

Definition at line 412 of file EKinWalberlaImpl.hpp.

◆ set_kT()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
void walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::set_kT ( double kT)
inlineoverridevirtual

Implements EKinWalberlaBase.

Definition at line 397 of file EKinWalberlaImpl.hpp.

References FloatType_c(), and m_diffusive_flux_electrostatic.

◆ set_node_density()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
bool walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::set_node_density ( Utils::Vector3i const & node,
double density )
inlineoverridevirtual

◆ set_node_density_boundary()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
bool walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::set_node_density_boundary ( Utils::Vector3i const & node,
double density )
inlineoverridevirtual

◆ set_node_flux_boundary()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
bool walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::set_node_flux_boundary ( Utils::Vector3i const & node,
Utils::Vector3d const & flux )
inlineoverridevirtual

◆ set_rng_state()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
void walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::set_rng_state ( uint64_t counter)
inlineoverridevirtual

Implements EKinWalberlaBase.

Definition at line 416 of file EKinWalberlaImpl.hpp.

References m_diffusive_flux, and m_diffusive_flux_electrostatic.

◆ set_slice_density()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
void walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::set_slice_density ( Utils::Vector3i const & lower_corner,
Utils::Vector3i const & upper_corner,
std::vector< double > const & density )
inlineoverridevirtual

◆ set_slice_density_boundary()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
void walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::set_slice_density_boundary ( Utils::Vector3i const & lower_corner,
Utils::Vector3i const & upper_corner,
std::vector< std::optional< double > > const & density )
inlineoverridevirtual

◆ set_slice_flux_boundary()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
void walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::set_slice_flux_boundary ( Utils::Vector3i const & lower_corner,
Utils::Vector3i const & upper_corner,
std::vector< std::optional< Utils::Vector3d > > const & flux )
inlineoverridevirtual

◆ set_valency()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
void walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::set_valency ( double valency)
inlineoverridevirtual

Implements EKinWalberlaBase.

Definition at line 403 of file EKinWalberlaImpl.hpp.

References FloatType_c(), and m_diffusive_flux_electrostatic.

◆ stencil_size()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
std::size_t walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::stencil_size ( ) const
inlinenodiscardoverridevirtualnoexcept

Implements EKinWalberlaBase.

Definition at line 187 of file EKinWalberlaImpl.hpp.

◆ update_density_boundary_from_shape()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
void walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::update_density_boundary_from_shape ( const std::vector< int > & raster_flat,
const std::vector< double > & data_flat )
inlineoverridevirtual

◆ update_flux_boundary_from_shape()

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
void walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::update_flux_boundary_from_shape ( const std::vector< int > & raster_flat,
const std::vector< double > & data_flat )
inlineoverridevirtual

Member Data Documentation

◆ Boundary_flag

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
FlagUID const walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::Boundary_flag {"boundary"}
protected

Flag for boundary cells.

Definition at line 216 of file EKinWalberlaImpl.hpp.

Referenced by register_vtk_field_filters(), and register_vtk_field_writers().

◆ Domain_flag

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
FlagUID const walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::Domain_flag {"domain"}
protected

Flag for domain cells, i.e.

all cells.

Definition at line 214 of file EKinWalberlaImpl.hpp.

◆ m_boundary_communicator

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
std::shared_ptr<BoundaryFullCommunicator> walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::m_boundary_communicator
protected

Definition at line 294 of file EKinWalberlaImpl.hpp.

Referenced by EKinWalberlaImpl(), and ghost_communication_boundary().

◆ m_boundary_density

◆ m_boundary_flux

◆ m_continuity

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
std::unique_ptr<ContinuityKernel> walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::m_continuity
protected

Definition at line 227 of file EKinWalberlaImpl.hpp.

Referenced by EKinWalberlaImpl().

◆ m_density_field_id

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
BlockDataID walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::m_density_field_id
protected

◆ m_diffusive_flux

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
std::unique_ptr<DiffusiveFluxKernel> walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::m_diffusive_flux
protected

Definition at line 224 of file EKinWalberlaImpl.hpp.

Referenced by get_rng_state(), is_thermalized(), set_diffusion(), and set_rng_state().

◆ m_diffusive_flux_electrostatic

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
std::unique_ptr<DiffusiveFluxKernelElectrostatic> walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::m_diffusive_flux_electrostatic
protected

◆ m_flag_field_density_id

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
BlockDataID walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::m_flag_field_density_id
protected

◆ m_flag_field_flux_id

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
BlockDataID walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::m_flag_field_flux_id
protected

◆ m_flux_field_id

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
BlockDataID walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::m_flux_field_id
protected

◆ m_full_communication

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
std::shared_ptr<FullCommunicator> walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::m_full_communication
protected

Definition at line 293 of file EKinWalberlaImpl.hpp.

Referenced by EKinWalberlaImpl().

◆ m_lattice

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
std::shared_ptr<LatticeWalberla> walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::m_lattice
protected

◆ m_mpi_cart_comm_observer

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
ResourceObserver walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::m_mpi_cart_comm_observer
protected

◆ m_pending_ghost_comm

template<std::size_t FluxCount = 13, typename FloatType = double, lbmpy::Arch Architecture = lbmpy::Arch::CPU>
std::bitset<GhostComm::SIZE> walberla::EKinWalberlaImpl< FluxCount, FloatType, Architecture >::m_pending_ghost_comm
protected

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