Thermodynamics for External FieldsĀ