Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
I'm looking at pipe flow in a series/parallel configuration. Each pipe/flow/head is an index. It works if I type in all the head loss equations individually, but I'd like to use a loop to automate it. But, Mathcad doesn't seem to like it.
This works:
This doesn't work (no solution found):
Any way to get it to work?
Thanks,
4.0 attached.
Solved! Go to Solution.
Any way to get it to work?
Here are two ways to make it work. The first one uses vectorization and is the preferred one.
------------------------------------------
Any way to get it to work?
Here are two ways to make it work. The first one uses vectorization and is the preferred one.
------------------------------------------
Ah, excellent work as always Werner. I actually used the fun(Q) solution - as I need to add Moody factors and whatnot.
Thanks!
P.S. Don't you ever sleep?
Sleep is overrated 😉
Underrated.
WE let me joke a little ..... Since you are active 24h on 24h, Maybe you have microprocessors instead of neurons ..... in the brain of course .......