A generally relativistic theory of thermodynamics is developed, based on four main physical principles: heat is a local form of energy, therefore described by a thermal energy tensor; conservation of heat, or the local first law, equivalent to conservation of mass; entropy is a local current; and non-destruction of entropy, or the local second law. A fluid is defined by the thermostatic energy ...