OpenLB 1.8.1
Loading...
Searching...
No Matches
olb::concepts::BoundaryCondition Concept Reference

Concept of a discrete-normal-dependent boundary condition. More...

#include <setBoundary.h>

Concept definition

template<typename BC>
concept olb::concepts::BoundaryCondition = requires(BC bc,
{ bc.getDynamics(type, n) } -> std::same_as<
std::optional<DynamicsPromise<typename BC::value_t,
typename BC::descriptor_t>>
>;
{ bc.getPostProcessor(type, n) } -> std::same_as<
std::optional<PostProcessorPromise<typename BC::value_t,
typename BC::descriptor_t>>
>;
{ bc.getNeighborhoodRadius() } -> std::same_as<CellDistance>;
}
Factory for instances of a specific Dynamics type.
Factory for instances of a specific OPERATOR type.
Foundational arithmetic type for all computations.
Definition concepts.h:47
Concept of a discrete-normal-dependent boundary condition.
Definition setBoundary.h:55
Descriptor of DdQq lattice and associated constants.
Definition concepts.h:78
DiscreteNormalType
Type associated with a discrete normal vector.
Vector< int, DESCRIPTOR::d > DiscreteNormal

Detailed Description

Concept of a discrete-normal-dependent boundary condition.

This is a very common case for LBM boundary conditions.

In OpenLB such conditions are modeled as the combination of Dynamics for the local treatment and a post processor for the non-local part. Individual BCs may define only one of these options depending on the discrete normal.

Types fullfilling this concept can be applied using the boundary::set setter function.

Definition at line 55 of file setBoundary.h.