Construction of higher‐moment terms in the hydrodynamic electron‐transport model