Ventilator circuit model for optimization of high-frequency oscillatory ventilation