Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline Steve22  
#1 Posted : 07 December 2018 02:05:32(UTC)
Steve22

Rank: Newbie

Groups: Registered
Joined: 04/12/2018(UTC)
Posts: 1
New Zealand
Location: Auckland

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 (10kb) downloaded 8 time(s).

Edited by user 07 December 2018 02:07:05(UTC)  | Reason: Not specified

Offline Jean Giraud  
#2 Posted : 07 December 2018 04:13:21(UTC)
Jean Giraud


Rank: Advanced Member

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 3,154
Canada

Was thanked: 610 time(s) in 473 post(s)
Originally Posted by: Steve22 Go to Quoted Post
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 (22kb) downloaded 15 time(s).
thanks 1 user thanked Jean Giraud for this useful post.
on 07/12/2018(UTC)
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.