A closed model for the respiratory system in mammals