Parameterized flow function