The analysis of cardiac function: A continuum approach