16 #define MFQ19_H ((MFQ19 - 1) / 2) 29 static std::shared_ptr<MF::GU::LatticeParametersD3Q19>
New() {
30 auto LatticeParametersD3Q19_Ptr = std::make_shared<MF::GU::LatticeParametersD3Q19>();
31 return LatticeParametersD3Q19_Ptr;
39 = {0, 1, 0, -1, 0, 0, 0, 1, -1, -1, 1, 1, 1, -1, -1, 0, 0, 0, 0, -1, 1, 1, -1, -1, 1, 1, -1};
44 = {0, 0, 1, 0, -1, 0, 0, 1, 1, -1, -1, 0, 0, 0, 0, 1, 1, -1, -1, 1, 1, 1, 1, -1, -1, -1, -1};
49 = {0, 0, 0, 0, 0, 1, -1, 0, 0, 0, 0, 1, -1, -1, 1, 1, -1, -1, 1, -1, -1, 1, 1, -1, -1, 1, 1};
54 = {0, 3, 4, 1, 2, 6, 5, 9, 10, 7, 8, 13, 14, 11, 12, 17, 18, 15, 16, 25, 26, 23, 24, 21, 22, 19, 20};
57 static constexpr uint8_t
SwapDirections[
MFQ19_H][2] = {{1,3},{2,4},{5,6},{7,9},{8,10},{11,13},{12,14},{15,17},{16,18}};
62 = {1.0 / 3.0, 1.0 / 18.0, 1.0 / 18.0, 1.0 / 18.0, 1.0 / 18.0, 1.0 / 18.0, 1.0 / 18.0, 1.0 / 36.0, 1.0 / 36.0, 1.0 / 36.0, 1.0 / 36.0, 1.0 / 36.0, 1.0 / 36.0,
63 1.0 / 36.0, 1.0 / 36.0, 1.0 / 36.0, 1.0 / 36.0, 1.0 / 36.0, 1.0 / 36.0};
66 static uint8_t
find_f(
const char nz,
const char ny,
const char nx) {
69 for (k = 0; k <
MFQ27; k++)
#define MFQ19
Number of lattice directions D3Q19.
static constexpr uint8_t ReverseDirectionVector_Rc[MFQ27]
Indexes of reverse directions to given direction of lattice Q19 plus additional nodes of lattice Q27...
static constexpr int8_t DirectionVectorComponent_Cx[MFQ27]
The x direction vector component of all D3Q19 lattice directions plus additional nodes of the Q27 lat...
#define MFQ27
Number of lattice directions D3Q27.
static constexpr int8_t DirectionVectorComponent_Cy[MFQ27]
The y direction vector component of all D3Q19 lattice directions plus additional nodes of the Q27 lat...
static constexpr int8_t DirectionVectorComponent_Cz[MFQ27]
The z direction vector component of all D3Q19 lattice directions plus additional nodes of the Q27 lat...
LatticeParametersD3Q19()=default
static constexpr double LatticeConstant_CSQ
c_s^2 lattice constant
#define MFQ19_H
Number of elements (linked directions) in propagation table for one node.
static uint8_t find_f(const char nz, const char ny, const char nx)
Function finds the direction of f based on the components of the direction vector nx...
~LatticeParametersD3Q19()=default
static constexpr double DirectionWeight_W[MFQ19]
Weights for lattice directions.
A class that stores the parameters characteristic for the D3Q19 lattice.
static std::shared_ptr< MF::GU::LatticeParametersD3Q19 > New()
static constexpr uint8_t SwapDirections[MFQ19_H][2]
Indexes of swap directions of f(i) in D3Q19.