problem with range variable

problem with range variable - function of range variable gives type error - Messages

#1 Posted: 12/6/2018 8:05:32 PM
Steve22

Steve22

0 likes in 2 posts.

Group: User

Hi, the attached sheet defines a simple function Qout(Qin) based on if statements. The function works for single valves of Qin. However, I'd like to plot Qout(Qin) so I defined Qin as a range variable. The function doesn't work and gives me a type conversion error. I'm a newbie to smath, please can you advise what I'm doing wrong? I've been through the documentation and examples and can't find anything. pump station2.sm (9 KiB) downloaded 32 time(s).
#2 Posted: 12/6/2018 10:13:21 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Hi, the attached sheet defines a simple function Qout(Qin) based on if statements.The function works for single valves of Qin.However, I'd like to plot Qout(Qin) so I defined Qin as a range variable.The function doesn't work and gives me a type conversion error.I'm a newbie to smath, please can you advise what I'm doing wrong?I've been through the documentation and examples and can't find anything.



That's as far I understand the problem. It needs more fabrication.
It should work in your latest Smath. If you have more interest,
I can probably find a model function to the pump curve.
As your are nwe in Smath Community: please, do not hesitate.

Cheers ... Jean

pump station2.sm (21 KiB) downloaded 58 time(s).
1 users liked this post
Steve22 12/6/2018 11:32:00 PM
  • New Posts New Posts
  • No New Posts No New Posts