Modeling of Extended Atmospheres with Temperatures below 40000 K