summaryrefslogtreecommitdiff
path: root/c++/examples/cavity_2d.cpp
blob: bd108f15cc0614bce161313156a1809d8c78b52d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include "../descriptor.h"

#include <forstio/codec/data.h>

namespace schema {
using namespace kel::lbm::schema;

/**
 * Basic distribution function
 * Base type
 * D
 * Q
 * Scalar factor
 * D factor
 * Q factor
 */
using DfCell2DType = CellType<Float32, 2, 5, 0, 0, 1>;

using CellInfo2DType = CellType<UInt8, 2, 5, 1, 0, 0>;

/**
 * Basic type for simulation
 */
using CellData = CellData<
	Member<DfCell2DType, "dfs">,
	Member<CellInfo2DType, "info">
>;
}

int main(){
	using namespace kel::lbm;

	saw::data<schema::Array<schema::CellData,2>, saw::encode::Native> lattice{512, 512};

	return 0;
}