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?) - Сообщения

#1 Опубликовано: 22.06.2021 13:24:02
sandros

sandros

0 сообщений из 2 понравились пользователям.

Группа: 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 КиБ) скачан 36 раз(а).
suppressed_weir.pdf (365 КиБ) скачан 39 раз(а).

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 Опубликовано: 22.06.2021 13:42:16
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 Опубликовано: 22.06.2021 13:52:40
overlord

overlord

552 сообщений из 1332 понравились пользователям.

Группа: 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 КиБ) скачан 40 раз(а).

suppressed_weir1.png
#4 Опубликовано: 22.06.2021 14:25:22
sandros

sandros

0 сообщений из 2 понравились пользователям.

Группа: 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 Опубликовано: 22.06.2021 18:04:22
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 КиБ) скачан 51 раз(а).





#6 Опубликовано: 23.06.2021 05:12:27
overlord

overlord

552 сообщений из 1332 понравились пользователям.

Группа: 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
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений