Iterative method for finding thermodynamically compatible states for a terrestrial planet interior with growing iron core.