Computing viscous flow in an elastic tube