I am trying to join two flow regimes (weir flow and orifice flow) into one continuous vector / function. For some reason its giving me an error and I not sure why. You will see that I designed a similar structure (see first program block) which also contains if statements i.e.comparing each array element in turn at least I think that is what it is doing? I believe all the units are correct for taking into the second programming block, so why dosn't the program structure return a array of values. Also is there a way to avoid having to vectorizing the result from a program block output i.e. placing the forward arrow above the result. I must admit I am not sure why I have to from a mathematical perspective but it seems to work. My main concern however is programming block 2.
Thanking you in advance.
Regards, Mark