mathematical modeling of ventilators