old code generates the secondary fan
reorganized, computed all polytropes
small changes