ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
LatticeWalberla Class Reference

Class that runs and controls the BlockForest in waLBerla. More...

#include <LatticeWalberla.hpp>

Public Types

using Lattice_T = walberla::blockforest::StructuredBlockForest
 

Public Member Functions

 LatticeWalberla (Utils::Vector3i const &grid_dimensions, Utils::Vector3i const &node_grid, unsigned int n_ghost_layers)
 
auto get_ghost_layers () const
 
auto get_grid_dimensions () const
 
auto get_blocks () const
 
auto const & get_cached_blocks () const
 
std::pair< Utils::Vector3d, Utils::Vector3dget_local_domain () const
 
auto get_local_grid_range () const
 
bool node_in_local_domain (Utils::Vector3i const &node) const
 
bool node_in_local_halo (Utils::Vector3i const &node) const
 
bool pos_in_local_domain (Utils::Vector3d const &pos) const
 
bool pos_in_local_halo (Utils::Vector3d const &pos) const
 

Static Public Member Functions

static Utils::Vector3i calc_grid_dimensions (Utils::Vector3d const &box_size, double agrid)
 

Detailed Description

Class that runs and controls the BlockForest in waLBerla.

Definition at line 39 of file walberla_bridge/include/walberla_bridge/LatticeWalberla.hpp.

Member Typedef Documentation

◆ Lattice_T

using LatticeWalberla::Lattice_T = walberla::blockforest::StructuredBlockForest

Constructor & Destructor Documentation

◆ LatticeWalberla()

LatticeWalberla::LatticeWalberla ( Utils::Vector3i const &  grid_dimensions,
Utils::Vector3i const &  node_grid,
unsigned int  n_ghost_layers 
)

Definition at line 41 of file LatticeWalberla.cpp.

References block(), and Utils::hadamard_division().

Member Function Documentation

◆ calc_grid_dimensions()

Utils::Vector3i LatticeWalberla::calc_grid_dimensions ( Utils::Vector3d const &  box_size,
double  agrid 
)
static

◆ get_blocks()

◆ get_cached_blocks()

auto const & LatticeWalberla::get_cached_blocks ( ) const
inline

◆ get_ghost_layers()

◆ get_grid_dimensions()

◆ get_local_domain()

std::pair< Utils::Vector3d, Utils::Vector3d > LatticeWalberla::get_local_domain ( ) const

Definition at line 74 of file LatticeWalberla.cpp.

References walberla::to_vector3d().

Referenced by get_local_grid_range().

◆ get_local_grid_range()

auto LatticeWalberla::get_local_grid_range ( ) const
inline

◆ node_in_local_domain()

bool LatticeWalberla::node_in_local_domain ( Utils::Vector3i const &  node) const

Definition at line 84 of file LatticeWalberla.cpp.

◆ node_in_local_halo()

bool LatticeWalberla::node_in_local_halo ( Utils::Vector3i const &  node) const

Definition at line 89 of file LatticeWalberla.cpp.

◆ pos_in_local_domain()

bool LatticeWalberla::pos_in_local_domain ( Utils::Vector3d const &  pos) const

Definition at line 93 of file LatticeWalberla.cpp.

◆ pos_in_local_halo()

bool LatticeWalberla::pos_in_local_halo ( Utils::Vector3d const &  pos) const

Definition at line 97 of file LatticeWalberla.cpp.


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