Hydraulic Radius

Hydraulic Radius - Program to solve the hydraulic radius based on the shape - Messages

#1 Posted: 1/28/2021 6:03:41 PM
Ruben Sidranski

Ruben Sidranski

17 likes in 463 posts.

Group: 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 KiB) downloaded 32 time(s).
#2 Posted: 1/28/2021 7:43:59 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 KiB) downloaded 29 time(s).
#3 Posted: 1/28/2021 8:24:14 PM
Ruben Sidranski

Ruben Sidranski

17 likes in 463 posts.

Group: 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 Posted: 1/28/2021 9:08:58 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 KiB) downloaded 27 time(s).

#5 Posted: 1/28/2021 9:25:26 PM
Ruben Sidranski

Ruben Sidranski

17 likes in 463 posts.

Group: User

I do have a θ per the screenshot above. Issue is in program structure.
Thank you for looking at this.
#6 Posted: 1/28/2021 10:30:56 PM
churichuro

churichuro

28 likes in 79 posts.

Group: User

hydraulic radius.sm (215 KiB) downloaded 21 time(s).

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 Posted: 1/28/2021 10:56:05 PM
Ruben Sidranski

Ruben Sidranski

17 likes in 463 posts.

Group: 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 Posted: 1/28/2021 11:05:13 PM
Ruben Sidranski

Ruben Sidranski

17 likes in 463 posts.

Group: 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 Posted: 1/28/2021 11:48:36 PM
Ruben Sidranski

Ruben Sidranski

17 likes in 463 posts.

Group: 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 KiB) downloaded 28 time(s).
#10 Posted: 1/29/2021 4:07:23 AM
Martin_B

Martin_B

21 likes in 84 posts.

Group: User

Thats's nearly a prime example for using cases instead of if/else:
cases.png
#11 Posted: 1/29/2021 7:01:12 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: 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 Posted: 1/29/2021 9:32:53 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 Posted: 1/29/2021 9:44:42 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 Posted: 1/29/2021 9:50:18 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Some time ago I made similar calculations.

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

Hydraulic calculation (rus).sm (42 KiB) downloaded 38 time(s).
Russia ☭ forever, Viacheslav N. Mezentsev
#15 Posted: 1/29/2021 9:53:23 AM
Ruben Sidranski

Ruben Sidranski

17 likes in 463 posts.

Group: 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 Posted: 1/29/2021 9:53:47 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Hydraulic Radius.PNG
#17 Posted: 1/29/2021 11:35:38 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: 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 KiB) downloaded 37 time(s).

Best regards.
Alvaro.
#18 Posted: 1/29/2021 11:41:01 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

... from Polygon Area/Perimeter

Inst_Hydraulic Radius.sm (22 KiB) downloaded 37 time(s).
#19 Posted: 1/29/2021 12:17:35 PM
Ruben Sidranski

Ruben Sidranski

17 likes in 463 posts.

Group: 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 Posted: 1/29/2021 4:31:45 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 KiB) downloaded 35 time(s).
  • New Posts New Posts
  • No New Posts No New Posts