Stellar Mass Flux and Coronal Heating by Shock Waves