Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


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 19 time(s).

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

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

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

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 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 43 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.