Hydraulic Radius

Hydraulic Radius - Program to solve the hydraulic radius based on the shape - Сообщения

#1 Опубликовано: 28.01.2021 18:03:41
Ruben Sidranski

Ruben Sidranski

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

Группа: User

I have two forms of the program in this file. I would be happy
  • Get the program to work
In the file is a snippet of the MathCAD program I was using to confirm the structure
hydraulic radius.sm (213 КиБ) скачан 32 раз(а).
#2 Опубликовано: 28.01.2021 19:43:59
Jean Giraud

Jean Giraud

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

Группа: User

No luck Elsid: incorrect format ... empty document.
Make an image of your MCD, I might be able to check.
The attached document is fundamental to measure the volume
of partially filled thank [spherical, elliptical, sphere].
Cheers ... Jean

Inst_Segment Partial Random.sm (62 КиБ) скачан 29 раз(а).
#3 Опубликовано: 28.01.2021 20:24:14
Ruben Sidranski

Ruben Sidranski

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

Группа: User

Thanks for the attachment. I remember a similar MathCAD file
It bothers me that you cannot open my 0.99.7610 SM files ...
Screenshot 2021-01-28 183952.png
#4 Опубликовано: 28.01.2021 21:08:58
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

Thanks for the attachment. I remember a similar MathCAD file
It bothers me that you cannot open my 0.99.7610 SM files ...


IMHO, you may have one or more AV systems active.
No other Collabs reported "incorrect format" ???
In the circular, θ is unknown.
You may find something from Valery Goat radius .
Cheers ... Jean

Hydraulic.PNG

Maths Goat Radius.sm (168 КиБ) скачан 27 раз(а).

#5 Опубликовано: 28.01.2021 21:25:26
Ruben Sidranski

Ruben Sidranski

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

Группа: User

I do have a θ per the screenshot above. Issue is in program structure.
Thank you for looking at this.
#6 Опубликовано: 28.01.2021 22:30:56
churichuro

churichuro

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

Группа: User

hydraulic radius.sm (215 КиБ) скачан 21 раз(а).

you have 2 little mistakes
shape must be a string and you are passing it an integer
and second I think that in the functions you should use the assignment (: =)
and not the symbol (=)
#7 Опубликовано: 28.01.2021 22:56:05
Ruben Sidranski

Ruben Sidranski

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

Группа: User

Wrote


you have 2 little mistakes
shape must be a string and you are passing it an integer
and second I think that in the functions you should use the assignment (: =)
and not the symbol (=)


Interesting.
I was playing with the equation definition ":=" in lieu of "="
I also have what appears to be the correct output from the DropBox list ... apparently not a string? ... your index DOES work
Screenshot 2021-01-28 205329.png
#8 Опубликовано: 28.01.2021 23:05:13
Ruben Sidranski

Ruben Sidranski

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

Группа: User

@churichurro
I didn't notice that you deleted "continue" in the else part of my file. That was the issue!
"ELSE" needs to start the next "IF" loop, therefore it's nested. I'll clean it up and re-post
#9 Опубликовано: 28.01.2021 23:48:36
Ruben Sidranski

Ruben Sidranski

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

Группа: User

Anyone have a good description, write-up, or weblink that derives these two formulas? (Not Wikipedia)
Screenshot 2021-01-28 214527.png
As promised above.
This made Manning so much easier. Thank you all
Hydraulic Radius Final.sm (16 КиБ) скачан 28 раз(а).
#10 Опубликовано: 29.01.2021 04:07:23
Martin_B

Martin_B

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

Группа: User

Thats's nearly a prime example for using cases instead of if/else:
cases.png
#11 Опубликовано: 29.01.2021 07:01:12
Alvaro Diaz Falconi

Alvaro Diaz Falconi

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

Группа: User

Hi. You don't need to divide by the units in the body of the procedure. Notice that z is the side slope, so it's dimensionless, equal to length / length, even eventually can have units, like mm/m. This is, given that z is the horizontal change per unit vertical change, it's usual to use one unit for horizontal change but another to the vertical change.

Best regards.
Alvaro.
#12 Опубликовано: 29.01.2021 09:32:53
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

Anyone have a good description, write-up, or web link that derives these two formulas? (Not Wikipedia)


Wikipedia has turned about useless in too many search !
Visit this site + calculator.

https://www.ajdesigner.com/phphydraulicradius/hydraulic_radius_equation_pipe.php
#13 Опубликовано: 29.01.2021 09:44:42
Jean Giraud

Jean Giraud

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

Группа: User

... BTW, perimeter of the rectangular, triangular, trapezoidal
easy from the polygon maths, somewhere in Samples, easy to renew
from my file. Please let us know.
For the partially filled circular, there is no escape from the Segment.
The only measurable is the height of the segment.
Have a good day project ... Jean.
#14 Опубликовано: 29.01.2021 09:50:18
Вячеслав Мезенцев

Вячеслав Мезенцев

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

Группа: Moderator

Some time ago I made similar calculations.

2021-01-29_17-49-19.png

Hydraulic calculation (rus).sm (42 КиБ) скачан 38 раз(а).
Russia ☭ forever, Viacheslav N. Mezentsev
#15 Опубликовано: 29.01.2021 09:53:23
Ruben Sidranski

Ruben Sidranski

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

Группа: User

Wrote

Thats's nearly a prime example for using cases instead of if/else:


I've never heard of or used "cases"

Update, to add "IFs", Jean answered the question: click right hand most place holder, coma twice for one more if... again coma twice like before. Will be dissecting this function. Thanks to others who posted sheets.
#16 Опубликовано: 29.01.2021 09:53:47
Jean Giraud

Jean Giraud

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

Группа: User

Hydraulic Radius.PNG
#17 Опубликовано: 29.01.2021 11:35:38
Alvaro Diaz Falconi

Alvaro Diaz Falconi

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

Группа: User

Wrote

Wrote

Thats's nearly a prime example for using cases instead of if/else:


I've never heard of or used "cases"

Update, to add "IFs", Jean answered the question: click right hand most place holder, coma twice for one more if... again coma twice like before. Will be dissecting this function. Thanks to others who posted sheets.



Yep. Here with correct units:

Clipboard01.jpg

Hydraulic Radius Final.sm (15 КиБ) скачан 37 раз(а).

Best regards.
Alvaro.
#18 Опубликовано: 29.01.2021 11:41:01
Jean Giraud

Jean Giraud

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

Группа: User

... from Polygon Area/Perimeter

Inst_Hydraulic Radius.sm (22 КиБ) скачан 37 раз(а).
#19 Опубликовано: 29.01.2021 12:17:35
Ruben Sidranski

Ruben Sidranski

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

Группа: User

Wrote

Hi. You don't need to divide by the units in the body of the procedure. Notice that z is the side slope, so it's dimensionless, equal to length / length, even eventually can have units, like mm/m. This is, given that z is the horizontal change per unit vertical change, it's usual to use one unit for horizontal change but another to the vertical change.

Best regards.
Alvaro.



Alvaro,
I tend to use units wherever and whenever possible. I see what you mean with "z". This IS unitless, thank you for correcting this. I fixed the formula to omit units on my sheet.
I now see the units comment clearly
#20 Опубликовано: 29.01.2021 16:31:45
Jean Giraud

Jean Giraud

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

Группа: User

... modular, piece-wise from source unit-less.
Any polygon, partially filled thank.
Measuring the segment 'h partial filled' is another story.

Inst_Hydraulic Radius.sm (65 КиБ) скачан 35 раз(а).
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений