Modeling a heart pump