problem with range variable

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

#1 Objavljeno: 6. 12. 2018. 20:05:32
Steve22

Steve22

0 svidjanja u 2 postova.

Grupa: 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,88 KiB) preuzeto 1198 put(ova).
#2 Objavljeno: 6. 12. 2018. 22:13:21
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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,29 KiB) preuzeto 1187 put(ova).
1 korisnika je svidelo ovu objavu
Steve22 6. 12. 2018. 23:32:00
  • Novi postovi
  • Nema novih postova