We propose a general formulation for nonisothermal multiphase flow of
brine and gas through saline media. The balance equations include mass
balance (three species), equilibrium of stresses and energy balance (
total internal energy). Salt, water and air mass balance equations are
established. The balance of salt allows the establishment of the equa
tion for porosity evolution due to solid skeleton deformation, dissolu
tion/precipitation of salt and migration of brine inclusions. Water an
d air mass balance equations are also obtained. Two equations are requ
ired for water: total water in the medium and water present in solid p
hase brine inclusions. The mechanical problem is formulated through th
e equation of stress equilibrium. Finally, the balance of internal ene
rgy is established assuming thermal equilibrium between phases. Some g
eneral aspects of the constitutive theory are also presented.