Generation of a patient-specific left ventricular geometry. Two-dimensional magnetic resonance image with contour lines, top, surface representation of the endocardium and epicardium, left, and volume mesh of the left ventricle, right. The finite element mesh consists of 4249 elements, 4296 nodes, and 12888 degrees of freedom for the pre-operative model with distinct infarct region, shown in red, distinct borderzone, shown in blue, and a remote region shown in green.