Lorentz invariants in relativistic fluid dynamics and thermodynamics in non-vacuo