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, Utils::Vector3i const &block_grid, unsigned int n_ghost_layers)
auto get_ghost_layers () const
auto const & get_grid_dimensions () const
auto const & get_node_grid () const
auto get_blocks () const
auto const & get_cached_blocks () const
std::pair< Utils::Vector3d, Utils::Vector3d > get_local_domain () const
std::pair< Utils::Vector3i, Utils::Vector3i > get_local_grid_range (bool with_halo=false) const
Utils::Vector3i get_block_corner (IBlock const &block, bool lower) 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 36 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,
Utils::Vector3i const & block_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 )
staticnodiscard

◆ get_block_corner()

◆ get_blocks()

◆ get_cached_blocks()

auto const & LatticeWalberla::get_cached_blocks ( ) const
inlinenodiscard

◆ get_ghost_layers()

◆ get_grid_dimensions()

◆ get_local_domain()

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

Definition at line 83 of file LatticeWalberla.cpp.

References block(), and walberla::to_vector3d().

Referenced by get_local_grid_range().

◆ get_local_grid_range()

◆ get_node_grid()

auto const & LatticeWalberla::get_node_grid ( ) const
inlinenodiscard

◆ node_in_local_domain()

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

Definition at line 118 of file LatticeWalberla.cpp.

◆ node_in_local_halo()

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

Definition at line 123 of file LatticeWalberla.cpp.

◆ pos_in_local_domain()

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

Definition at line 127 of file LatticeWalberla.cpp.

◆ pos_in_local_halo()

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

Definition at line 131 of file LatticeWalberla.cpp.


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