Hydraulic Radius

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

#1 Objavljeno: 28. 1. 2021. 18:03:41
Ruben Sidranski

Ruben Sidranski

17 svidjanja u 465 postova.

Grupa: 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,85 KiB) preuzeto 1270 put(ova).
#2 Objavljeno: 28. 1. 2021. 19:43:59
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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,99 KiB) preuzeto 1254 put(ova).
#3 Objavljeno: 28. 1. 2021. 20:24:14
Ruben Sidranski

Ruben Sidranski

17 svidjanja u 465 postova.

Grupa: 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 Objavljeno: 28. 1. 2021. 21:08:58
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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,49 KiB) preuzeto 1271 put(ova).

#5 Objavljeno: 28. 1. 2021. 21:25:26
Ruben Sidranski

Ruben Sidranski

17 svidjanja u 465 postova.

Grupa: User

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

churichuro

29 svidjanja u 79 postova.

Grupa: User

hydraulic radius.sm (215,2 KiB) preuzeto 1195 put(ova).

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 Objavljeno: 28. 1. 2021. 22:56:05
Ruben Sidranski

Ruben Sidranski

17 svidjanja u 465 postova.

Grupa: 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 Objavljeno: 28. 1. 2021. 23:05:13
Ruben Sidranski

Ruben Sidranski

17 svidjanja u 465 postova.

Grupa: 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 Objavljeno: 28. 1. 2021. 23:48:36
Ruben Sidranski

Ruben Sidranski

17 svidjanja u 465 postova.

Grupa: 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,32 KiB) preuzeto 1200 put(ova).
#10 Objavljeno: 29. 1. 2021. 04:07:23
Martin_B

Martin_B

22 svidjanja u 84 postova.

Grupa: User

Thats's nearly a prime example for using cases instead of if/else:
cases.png
#11 Objavljeno: 29. 1. 2021. 07:01:12
Alvaro

Alvaro

1.139 svidjanja u 1.805 postova.

Grupa: 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 Objavljeno: 29. 1. 2021. 09:32:53
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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 Objavljeno: 29. 1. 2021. 09:44:42
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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 Objavljeno: 29. 1. 2021. 09:50:18
Вячеслав Мезенцев

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

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

Some time ago I made similar calculations.

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

Hydraulic calculation (rus).sm (42,41 KiB) preuzeto 1278 put(ova).
Russia ☭ forever, Viacheslav N. Mezentsev
#15 Objavljeno: 29. 1. 2021. 09:53:23
Ruben Sidranski

Ruben Sidranski

17 svidjanja u 465 postova.

Grupa: 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 Objavljeno: 29. 1. 2021. 09:53:47
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Hydraulic Radius.PNG
#17 Objavljeno: 29. 1. 2021. 11:35:38
Alvaro

Alvaro

1.139 svidjanja u 1.805 postova.

Grupa: 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,64 KiB) preuzeto 1207 put(ova).

Best regards.
Alvaro.
#18 Objavljeno: 29. 1. 2021. 11:41:01
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

... from Polygon Area/Perimeter

Inst_Hydraulic Radius.sm (22,54 KiB) preuzeto 1231 put(ova).
#19 Objavljeno: 29. 1. 2021. 12:17:35
Ruben Sidranski

Ruben Sidranski

17 svidjanja u 465 postova.

Grupa: 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 Objavljeno: 29. 1. 2021. 16:31:45
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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,2 KiB) preuzeto 1208 put(ova).
  • Novi postovi
  • Nema novih postova