# secondMom Function

## public pure function secondMom(cxcx, f, QQ) result(m)

Calculate second moments of some quantity $f$ where Q is number of discrete velocity.\n The output is 1 dimentional array which has 6 componenents.\n Specifically, This function is used by shear stress and strain rate.

### Arguments

TypeIntentOptionalAttributesName
real(kind=rk), intent(in) :: cxcx(6,QQ)
real(kind=rk), intent(in) :: f(QQ)

quantity to which second moment is applied

integer, intent(in) :: QQ

None