dear community:
In the three-dimensional case, what does pi[2] represent, and in the two-dimensional case, what does pi[2] represent? thanks
template <typename CELL, typename V=typename CELL::value_t>
static V computePiNeqNormSqr(CELL& cell) any_platform
{
V rho, u[DESCRIPTOR::d], pi[util::TensorVal<DESCRIPTOR>::n];
computeAllMomenta(cell, rho, u, pi);
V PiNeqNormSqr = pi[0]*pi[0] + 2.*pi[1]*pi[1] + pi[2]*pi[2];
if constexpr (util::TensorVal<DESCRIPTOR >::n == 6) {
PiNeqNormSqr += pi[2]*pi[2] + pi[3]*pi[3] + 2.*pi[4]*pi[4] +pi[5]*pi[5];
}
return PiNeqNormSqr;
}