Finite element models of one-dimensional flows with node-dependent accuracy