Changing inlet and outlet functions from node to model