use map to store the association between boundary edge and type; initialize everything with outflow condition