dbe8490cb1
This commit introduces a major enhancement to the heart simulation, adding a detailed mechanical model of the cardiac cycle that is synchronized with the existing EKG waveform. Key features: - The Heart class is refactored to include data structures for the four chambers (atria and ventricles) and four valves (mitral, tricuspid, aortic, pulmonary). - The `update` method now simulates the phases of the cardiac cycle, including atrial and ventricular systole and diastole. - Chamber pressures and volumes are dynamically updated based on the phase of the cycle. - Valve statuses (open/closed) are determined by pressure gradients between chambers. - Ejection Fraction is now calculated based on the simulated end-diastolic and end-systolic volumes of the left ventricle. - The example program has been updated to display a live, detailed summary of the heart's mechanical status, showing pressures, volumes, and valve states as they change over time.