Algorithm for buildup of height profile of electron density in transition E–F region