Thermomechanics of porous solids filled by fluid fow