Quantcast
Channel: PTC Community: Message List
Viewing all articles
Browse latest Browse all 11560

Making a piecewise function using a program structure

$
0
0

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


Viewing all articles
Browse latest Browse all 11560

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>