A model of the pulmonary arterial bed in adults and infants