Parallel Piping Hazen Williams

Parallel Piping Hazen Williams - mathcad to mathstudio - Messages

#1 Posted: 3/22/2022 9:10:34 AM
Erick Valentino

Erick Valentino

7 likes in 28 posts.

Group: User

Hello! What's up

I would like to know how I can replace the "given" command from Mathcad to SmathStudio, I know that such a command does not exist in SMATH and for that there are other tools

I just need to find the flows Q1 Q2 and Q3 from a parallel pipe using the Hazen Williams equation, without having to do as many expressions

Thank you very much

Another question... I was thinking of making tutorial videos preferably using SMath Studio over any other software called Mathcad, MathCad Prime, Maple, Matlab, Matematica, etc.
Can the new paid version still use the plugins MAPLE, Cool Proops, Maxima, etc. for free? Or will they have to pay for it?

thank you very much, you are a very cool community

Tuberias en Paralelo Hazen Williams.sm (13 KiB) downloaded 51 time(s).
Tuberias en Paralelo Hazen Williams.xmcd (26 KiB) downloaded 26 time(s).


[albumimg]1662[/albumimg]
#2 Posted: 3/22/2022 10:20:17 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Quote

I would like to know how I can replace the "given" command from Mathcad to SmathStudio, I know that such a command does not exist in SMATH and for that there are other tools


You can use Mathcad Block region for this.

Click to enlarge

Mathcad Block.png

Wrote

Can the new paid version still use the plugins MAPLE, Cool Proops, Maxima, etc. for free? Or will they have to pay for it?


All my plugins will remain free.
Russia ☭ forever, Viacheslav N. Mezentsev
2 users liked this post
Erick Valentino 3/22/2022 7:55:00 PM, sergio 3/22/2022 5:33:00 PM
#3 Posted: 3/22/2022 3:26:58 PM
overlord

overlord

549 likes in 1332 posts.

Group: Moderator

AFAIK, roots() won't work with units.
You can use FindRoots() for that purpose.

Regards.

tuberias.sm (11 KiB) downloaded 29 time(s).

2022-03-22_21-26.png
2 users liked this post
Erick Valentino 3/22/2022 7:55:00 PM, Вячеслав Мезенцев 3/22/2022 5:34:00 PM
#4 Posted: 3/22/2022 5:35:27 PM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Or like this.

2022-03-23_01-33-32.png

tuberias_uni.sm (12 KiB) downloaded 43 time(s).
Russia ☭ forever, Viacheslav N. Mezentsev
2 users liked this post
Erick Valentino 3/22/2022 7:55:00 PM, overlord 3/22/2022 8:56:00 PM
#5 Posted: 3/22/2022 8:59:10 PM
overlord

overlord

549 likes in 1332 posts.

Group: Moderator

Wrote

Or like this.


What the..? I didn't know you can use mathblock like this.
How FindRoot() can work under block with only one argument?
That is a very neat feature. Really appreciate you share this.
#6 Posted: 3/23/2022 12:32:03 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Wrote

How FindRoot() can work under block with only one argument?


The first argument is implicitly substituted by the block itself. Then the function is called with two arguments.

Click to enlarge
Russia ☭ forever, Viacheslav N. Mezentsev
#7 Posted: 3/24/2022 9:00:06 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

I would like to know how I can replace the "given" command from Mathcad to SmathStudio, I know that such a command does not exist in SMATH and for that there are other tools


Given/Find/Maximize/Minimize/Minerr/ODEsolve
1. Given/Find ... inspect Butler attached
2. Given/Minerr ... from iterative Smath code
In many instances superior to Minerr.
Given/ODEsolve from very many Smath ODE solvers.
Visit the code from Viacheslav [Uni]

Solve Given_Find [CO2_6179 Butler] Copy.sm (165 KiB) downloaded 32 time(s).
#8 Posted: 3/24/2022 2:25:53 PM
overlord

overlord

549 likes in 1332 posts.

Group: Moderator

Wrote

The first argument is implicitly substituted by the block itself. Then the function is called with two arguments.


Does mathcadblock could be used with al_nleqsolve() with this example?
And I think it would be nice if block can be inserted with command.
Not just from Insert menu, regards.
#9 Posted: 3/24/2022 3:29:50 PM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Wrote

Does mathcadblock could be used with al_nleqsolve() with this example?


It can't be done directly. But in general it is possible. I can create generic functions Find and Minerr which can be customized to a specific function. Working with the Mathcad Block should be universal. The GNU Scientific Library has a number of functions for finding roots and minimizing. I want to first test the Mathcad Block on a set of different functions before offering a solution. Already existing solvers also need to be somehow connected in a universal way. Now I have not found a common approach to solve this problem as a whole.

1. One Dimensional Root-Finding
2. Multidimensional Root-Finding
3. One Dimensional Minimization
4. Multidimensional Minimization
Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
sergio 3/25/2022 8:04:00 AM
#10 Posted: 3/24/2022 3:41:17 PM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Wrote

And I think it would be nice if block can be inserted with command.
Not just from Insert menu, regards.


I can add a keyboard shortcut. What about [Ctrl]+[Shift]+[B] ?
Russia ☭ forever, Viacheslav N. Mezentsev
#11 Posted: 3/24/2022 3:57:55 PM
overlord

overlord

549 likes in 1332 posts.

Group: Moderator

Wrote

The GNU Scientific Library has a number of functions for finding roots and minimizing.


Unfortunately GNU Scientific Library doesn't work with mono, so it is not usable under Linux.
I don't want to be rude but why it is called Mathcad Block?
MathBlock would suits it more, just a suggestion.
#12 Posted: 3/24/2022 4:09:40 PM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Wrote

I don't want to be rude but why it is called Mathcad Block?


It is located in the Mathcad Toolbox plugin and was created to repeat the generalized ODE solver from Mathcad. This is made for the future for the converter. I hope that someday the converter from Mathcad will be finalized and there should be unambiguous equivalents for it. Therefore, I try to fill the Mathcad Toolbox plugin with similar functions. There are many interesting documents and it would be great if they were completely converted. It would also make it easier to transfer documents and users

Wrote

MathBlock would suits it more, just a suggestion.


I specifically set this name so that it does not interfere with the appearance of another similar block. Perhaps, after using the block, an understanding will come of how to make it a more convenient. For this case we will reserve this name (MathBlock).
Russia ☭ forever, Viacheslav N. Mezentsev
  • New Posts New Posts
  • No New Posts No New Posts