A Solar-luminosity Model and Climate