37template <
typename FloatType, lbmpy::Arch Architecture>
38std::optional<Utils::Vector3d>
45 if (is_boundary and *is_boundary) {
53 auto field = bc->block->template uncheckedFastGetData<VectorField>(
59template <
typename FloatType, lbmpy::Arch Architecture>
69 auto pdf_field = bc->block->template getData<PdfField>(
m_pdf_field_id);
81template <
typename FloatType, lbmpy::Arch Architecture>
90 bc->block->template uncheckedFastGetData<PdfField>(
m_pdf_field_id);
96template <
typename FloatType, lbmpy::Arch Architecture>
104 auto pdf_field = bc->block->template getData<PdfField>(
m_pdf_field_id);
111template <
typename FloatType, lbmpy::Arch Architecture>
112std::optional<std::vector<double>>
120 auto pdf_field = bc->block->template getData<PdfField>(
m_pdf_field_id);
122 std::vector<double> population(Stencil::Size);
123 for (uint_t f = 0u; f < Stencil::Size; ++f) {
124 population[f] = double_c(pop[f]);
127 return {std::move(population)};
130template <
typename FloatType, lbmpy::Arch Architecture>
139 auto pdf_field = bc->block->template getData<PdfField>(
m_pdf_field_id);
144 std::array<FloatType, Stencil::Size> pop;
145 for (uint_t f = 0u; f < Stencil::Size; ++f) {
154template <
typename FloatType, lbmpy::Arch Architecture>
155std::optional<Utils::Vector3d>
168template <
typename FloatType, lbmpy::Arch Architecture>
169std::optional<Utils::Vector3d>
183template <
typename FloatType, lbmpy::Arch Architecture>
192 auto pdf_field = bc->block->template getData<PdfField>(
m_pdf_field_id);
204template <
typename FloatType, lbmpy::Arch Architecture>
205std::optional<Utils::VectorXd<9>>
212 auto pdf_field = bc->block->template getData<PdfField>(
m_pdf_field_id);
Vector implementation and trait types for boost qvm interoperability.
std::optional< Utils::Vector3d > get_node_last_applied_force(Utils::Vector3i const &node, bool consider_ghosts=false) const override
std::optional< Utils::Vector3d > get_node_velocity_at_boundary(Utils::Vector3i const &node, bool consider_ghosts=false) const override
void pressure_tensor_correction(Matrix3< FloatType > &tensor) const
std::optional< Utils::Vector3d > get_node_velocity(Utils::Vector3i const &node, bool consider_ghosts=false) const override
BlockDataID m_pdf_field_id
bool set_node_last_applied_force(Utils::Vector3i const &node, Utils::Vector3d const &force) override
bool set_node_density(Utils::Vector3i const &node, double density) override
std::optional< bool > get_node_is_boundary(Utils::Vector3i const &node, bool consider_ghosts=false) const override
BlockDataID m_velocity_field_id
std::optional< std::vector< double > > get_node_population(Utils::Vector3i const &node, bool consider_ghosts=false) const override
FloatType m_density
kinematic viscosity
std::optional< double > get_node_density(Utils::Vector3i const &node, bool consider_ghosts=false) const override
BlockDataID m_force_to_be_applied_id
FloatType FloatType_c(T t) const
std::bitset< GhostComm::SIZE > m_pending_ghost_comm
LatticeWalberla const & get_lattice() const noexcept override
auto zero_centered_to_md(auto const &data) const
std::optional< Utils::Vector3d > get_node_force_to_be_applied(Utils::Vector3i const &node) const override
bool set_node_velocity(Utils::Vector3i const &node, Utils::Vector3d const &v) override
bool set_node_population(Utils::Vector3i const &node, std::vector< double > const &population) override
BlockDataID m_last_applied_force_field_id
std::optional< Utils::VectorXd< 9 > > get_node_pressure_tensor(Utils::Vector3i const &node) const override
void set(GhostLayerField< double, uint_t{19u}> *pdf_field, double const rho_in, double const density, Cell const &cell)
double get(GhostLayerField< double, uint_t{19u}> const *pdf_field, double const density, Cell const &cell)
void set(GhostLayerField< double, uint_t{19u}> const *pdf_field, GhostLayerField< double, uint_t{3u}> *velocity_field, GhostLayerField< double, uint_t{3u}> *force_field, Vector3< double > const &force, double const density, Cell const &cell)
void set(GhostLayerField< double, uint_t{19u}> *pdf_field, std::array< double, 19u > const &pop, Cell const &cell)
auto get(GhostLayerField< double, uint_t{19u}> const *pdf_field, Cell const &cell)
auto get(GhostLayerField< double, uint_t{19u}> const *pdf_field, double const density, Cell const &cell)
auto get(GhostLayerField< double, uint_t{3u}> const *vec_field, Cell const &cell)
void set(GhostLayerField< double, uint_t{19u}> *pdf_field, GhostLayerField< double, uint_t{3u}> *velocity_field, GhostLayerField< double, uint_t{3u}> const *force_field, Vector3< double > const &u, Cell const &cell)
\file PackInfoPdfDoublePrecision.cpp \author pystencils
auto to_vector3d(Vector3< T > const &v) noexcept
auto to_vector3(Utils::Vector3d const &v) noexcept
std::optional< BlockAndCell > get_block_and_cell(::LatticeWalberla const &lattice, signed_integral_vector auto const &node, bool consider_ghost_layers)
auto to_vector9d(Matrix3< T > const &m) noexcept
@ VEL
velocities communication
@ LAF
last applied forces communication
@ UBB
boundaries communication