Find value of a variable by changing value of another (solve (2) perhaps?)

Find value of a variable by changing value of another (solve (2) perhaps?) - Messages

#1 Posted: 6/22/2021 1:24:02 PM
sandros

sandros

0 likes in 2 posts.

Group: User

Hi,

I'm trying to make a SMath worksheet for calculating flow over weir. The problem is iterative, i.e. when you calculate it "by hand" you have to estimate some values and then check if your estimation is close enough.

Here is my workbook:
suppressed_weir.sm (79 KiB) downloaded 36 time(s).
suppressed_weir.pdf (365 KiB) downloaded 39 time(s).

I tried to solve this problem by using "solve (2)" function, but I'm obviously doing something wrong...

Could anyone help me with this?

Cheers,
Sandro
#2 Posted: 6/22/2021 1:42:16 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

I'm trying to make a SMath worksheet for calculating flow over weir. The problem is iterative, i.e. when you calculate it "by hand" you have to estimate some values and then check if your estimation is close enough.


The masflow rate of a weir is not iterative.
https://www.brighthubengineering.com/hydraulics-civil-engineering/65880-open-channel-flow-measurement-5-the-rectangular-weir/
#3 Posted: 6/22/2021 1:52:40 PM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

Wrote

Hi,

I'm trying to make a SMath worksheet for calculating flow over weir. The problem is iterative, i.e. when you calculate it "by hand" you have to estimate some values and then check if your estimation is close enough.

Here is my workbook:

I tried to solve this problem by using "solve (2)" function, but I'm obviously doing something wrong...

Could anyone help me with this?

Cheers,
Sandro


Hope this is enough for you.
Solve can't work with units.
Sometimes it just refuses even without units.
Use roots(), FindRoot(), al_nleqsolve() if it fails.
In this order generally.

Regards.

suppressed_weir1.sm (82 KiB) downloaded 40 time(s).

suppressed_weir1.png
#4 Posted: 6/22/2021 2:25:22 PM
sandros

sandros

0 likes in 2 posts.

Group: User

Wrote

Hope this is enough for you.
Solve can't work with units.
Sometimes it just refuses even without units.
Use roots, FindRoot, al_nleqsolve if it fails.
In this order generally.

Regards.



Thank you, overlord, that works exactly as I wanted!

Wrote

The masflow rate of a weir is not iterative.
https://www.brighthubengineering.com/hydraulics-civil-engineering/65880-open-channel-flow-measurement-5-the-rectangular-weir/



Jean Giraud, I wasn't precise enough. The problem is regarding the flow over weir, not calculation of a flow rate, per se.

Regards,
Sandro

#5 Posted: 6/22/2021 6:04:22 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Jean Giraud, I wasn't precise enough. The problem is regarding the flow over weir, not calculation of a flow rate, per se.


1. You calculate mas flow rate for: Nozzle, Venturi.
2. You size orifice plate for given nominal mass flow rate
3. You calculate mass flow rate for a given prefabricated weir.
If you have the mass flow rate from another independent device
per say: partially filled pipe ... you can solve/sanity check.
That is pretentious to sanity the established Standard.
Nothing wrong to sanity the Standard, but sanity $$$$
The biggest Venturi I have been involved 8 ft diameter [$$$$$$..]
It needs the pipe full flow, not partially filled.
ISO-5167 goes up 36" diameter.
From the attached document, be more specific.
Cheers ... Jean

Inst_Weir.sm (230 KiB) downloaded 51 time(s).





#6 Posted: 6/23/2021 5:12:27 AM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

Wrote

Thank you, overlord, that works exactly as I wanted!


I am glad to help you exactly as you wanted.
Have a nice day, feel free to ask anything.
Someone shall answer your question as your need.

Regards
  • New Posts New Posts
  • No New Posts No New Posts