Fundamental principles of macroscopic equilibrium; thermodynamic stability; Gibbs relations and chemical thermodynamics; applications to various systems, including fluids, solids, and magnetic and dielectric materials. Fundamental principles of macroscopic nonequilibrium thermodynamics (irreversible processes). Entropy production; Curie's principle; Onsager-Casimir reciprocal relations; applications to transport and relaxation phenomena in continuous systems.