A derivation is presented of the transport equations that describes the irreversible processes in the very dilute, reacting ionized gas mixture which comprise the upper atmosphere. The effects of radiation are explicitly taken into account. A specific application of these transport equations is made to oxygen red line emission in nightglow. A model is constructed in which dissociative recombination of O2 is considered as the mechanism responsible for 6300-6364 A emission, and dynamic and deactivation effects are included. The resulting transport equations are solved, and the time and altitude variation of 6300-6364 A emission is computed and compared with experimental data. A derivation is presented of the general transport equations which describe the expansion of a multicomponent partially ionized gas in the presence of a gravitational and magnetic field. These transport equations are decomposed into a first and higher approximations, after which each term of the first and second approximation is analyzed.