55 for (
int iX=x0; iX<=x1; ++iX) {
56 for (
int iY=y0; iY<=y1; ++iY) {
59 cell.computeRhoU(rho,u);
63 T dx_U[L::d], dy_U[L::d];
64 interpolateGradients<0>(blockLattice, dx_U, iX, iY);
65 interpolateGradients<1>(blockLattice, dy_U, iX, iY);
67 T rhoGradU[L::d][L::d];
68 rhoGradU[x][x] = rho * dx_U[x];
69 rhoGradU[x][y] = rho * dx_U[y];
70 rhoGradU[y][x] = rho * dy_U[x];
71 rhoGradU[y][y] = rho * dy_U[y];
73 T omega = blockLattice.getDynamics(iX, iY) -> getOmega();
77 pi[xx] = (T)2 * rhoGradU[x][x] * sToPi;
78 pi[yy] = (T)2 * rhoGradU[y][y] * sToPi;
79 pi[xy] = (rhoGradU[x][y] + rhoGradU[y][x]) * sToPi;
86 interpolateGradients<0>(blockLattice, dx_rho, iX, iY);
87 interpolateGradients<1>(blockLattice, dy_rho, iX, iY);
88 for (
int iPop = 0; iPop < L::q; ++iPop) {
90 for (
int iAlpha=0; iAlpha < L::d; ++iAlpha) {
92 dx_rho*u[iAlpha]*u[x] +
93 dx_U[iAlpha]*rho*u[x] +
94 dx_U[x]*rho*u[iAlpha] +
95 dy_rho*u[iAlpha]*u[y] +
96 dy_U[iAlpha]*rho*u[y] +
97 dy_U[y]*rho*u[iAlpha]);
102 T cDivRhoUU[L::d][L::d];
103 for (
int iAlpha = 0; iAlpha < L::d; ++iAlpha) {
104 for (
int iBeta = 0; iBeta < L::d; ++iBeta) {
106 (dx_rho*u[iAlpha]*u[iBeta] +
107 dx_U[iAlpha]*rho*u[iBeta] +
108 dx_U[iBeta]*rho*u[iAlpha])
110 (dy_rho*u[iAlpha]*u[iBeta] +
111 dy_U[iAlpha]*rho*u[iBeta] +
112 dy_U[iBeta]*rho*u[iAlpha]);
121 for (
int iAlpha = 0; iAlpha < L::d; ++iAlpha) {
122 for (
int iBeta = 0; iBeta < L::d; ++iBeta) {
124 qCdivRhoUU += ci_ci * cDivRhoUU[iAlpha][iBeta];
125 qRhoGradU += ci_ci * rhoGradU[iAlpha][iBeta];
126 if (iAlpha == iBeta) {
135 cell[iPop] = lbH::equilibrium(iPop,rho,u,uSqr)
void processSubDomain(BlockLattice< T, DESCRIPTOR > &blockLattice, int x0_, int x1_, int y0_, int y1_) override
Execute post-processing step on a sublattice.
ExtendedStraightFdBoundaryPostProcessor2D(int x0_, int x1_, int y0_, int y1_)
void process(BlockLattice< T, DESCRIPTOR > &blockLattice) override
Execute post-processing step.
Interface of 2D post-processing steps.
std::string & getName()
read and write access to name