A detailed cardiopulmonary for dynamic simulation of their interaction