Thermodynamic analysis of fluids with the possible presence of chemical reactions