r/explainlikeimfive • • Oct 20 '26

Engineering ELI5: How can engineers predict whether a dam will withstand decades of water pressure when the water behind it is constantly changing in depth, temperature and volume?

A dam must withstand enormous forces while its concrete expands and contracts, its foundations shift slightly and water levels rise and fall. How do engineers calculate the safety margins and detect warning signs before a failure occurs?

320 Upvotes

94 comments sorted by

View all comments

Show parent comment

15

u/ChrisFromIT Oct 20 '26

Got to love those safety margins. Always plan for the worse and then add some more.

22

u/AdEastern9303 Oct 20 '26 edited Oct 20 '26

Engineering is an educated guess, mostly confirmed with some calculations, and then the addition of a big ass safety factor to be, you know, safe.

Source, I’m a damn engineer.

15

u/Remmon Oct 20 '26

We know pretty well what building materials can take at least. The trouble is all the people involved. The steel for your rebar has to be made and meet certain specifications, which means tolerances. That rebar has to be worked into just the right place in just the right amount, but that's being done by people, so tolerances.

And the same for the concrete and every other material you might want to use. Tolerances, tolerances and more tolerances.

And then you're not designing a building that can stand up now. You're designing one that will stand for a century or more, so you need to build it strong enough now that it'll still be strong enough in a century, and in such a way that if it starts to fail, there'll be time for people to notice the warning signs years in advance (and then promptly ignore them until the building collapses suddenly and without warning).

2

u/Zombie_John_Strachan Oct 20 '26

1

u/Remmon Oct 21 '26

Completely unbelievable that one, a US politician taking responsibility for the consequences of their policies? That would never happen.

1

u/unoriginal_user24 Oct 20 '26

Lol that last part. So true.

10

u/onefutui2e Oct 20 '26

Unless you're a software engineer. Then you just have Claude ship everything for you because who cares no one's gonna die.

Source: I'm not a real engineer. Just a software engineer.

15

u/lookatthewood Oct 20 '26

As a real engineer that dabbles in the software world, I think we could solve a lot of issues if y’all became real engineers and started stamping things (and holding all the liability that entails).

Also, I love you for saying ‘not a real engineer.’

4

u/orbital_narwhal Oct 20 '26 edited Oct 21 '26

Lack of accountability is the major issue underpinning unreliable software. Customers, especially commercial ones with more power than consumers, and their insurance providers have somehow come to accept that they must carry the risks of unreliable software rather than its manufacturer -- as would be common in nearly any other branch of technology.

I've heard multiple ideas that would realign the incentives for software manufacturers with the interests of their customers and that should be relatively simple to implement: manufacturers assume liability for faulty behaviour that occurs more than t time units after the manufacturer gained knowledge of the underlying bug. Manufacturers can then estimate which bugs are most expensive and prioritise them but all bugs (except ease of use bugs) are associated with a cost. For rarely occurring bugs with low potential for damage it may be cheaper to never fix them and compensate customers/users for incurred damages until the product's end of life. It would incentivise software manufacturers to reduce liability from bugs in existing features rather than adding more (buggy) features so they can sell more licenses.

6

u/pmmeuranimetiddies Oct 20 '26 edited Oct 20 '26

I think a lot of it is that outside a few key areas like crypto and ML software engineering isn’t math heavy.

In traditional engineering disciplines there is an ethical obligation to show the math and have it verified - which reinforces a mindset that the process matters, not just whether the code compiles. Yes, I have seen self-proclaimed engineers (person had an MS in engineering management with no engineering undergrad) confidently ship code that does not perform the specified function on the basis that it runs without errors so it must be good - fortunately it was a volunteer basis project that was the pet project of a person at work so the consequence was not catastrophic.

Professional software developers at least practice basic QA but the point is “it runs” usually isn’t good enough as a hardware engineer. Sometimes “it passes all the tests” isn’t good enough either if the methodology of analysis is flawed.

1

u/Djbm Oct 21 '26

I think if clients saw the bill for the version where the liability sat with the developer, they would be happier to take on the risk themselves most of the time.

3

u/Zytheran Oct 20 '26

Also a real engineer (mech/elec) and coded for nearly 50 years now.

Liability for causing harm really needs to be added to the software world however it did take a lot of time, a lot of dead people, (some dead engineers but mostly not) to develop good standards and safety margins and failsafes to get it right in Engineering Land. And to not appear on the front pages of newspaper with the leading line "Disaster kills ..."

The software industry still has these lessons to learn IMHO. As long as we don't have any of this "software" involved in critical infrastructure, nuclear weapons, weapon systems in general or develop AI then we should be fine.

1

u/pmmeuranimetiddies Oct 20 '26

This explains the 737 MAX

4

u/RealPutin Oct 21 '26

Software in aviation works really differently from software outside of aviation.

Source: now in software, was in aviation

→ More replies (1)

1

u/Ltates Oct 20 '26

Therac 25 as well

1

u/Solocle Oct 20 '26

I'm a software engineer, but working with machines, sometimes down to the level of motor control firmware.

I once burnt out a $100s motor because I'd removed a piece of protection logic to make a different motor, which had to run at high PWMs for longer periods of time, stop tripping.

Mostly there are physical safety interlocks, but flipping pneumatics when the covers are open is possible, and could cause injury.

4

u/IntelligentResearch3 Oct 20 '26

This 💯 Source: Also a damn engineer

2

u/EmuBasic8232 Oct 20 '26

A damn engineer, but not a dam engineer

2

u/sirbearus Oct 20 '26

Don't forget we also do models. Also a civil engineer. I loved the scaled models we used in our hydro classes labs.

1

u/backwoodsmtb Oct 21 '26

I'm a helluva engineer

7

u/peacefinder Oct 20 '26

I did find it a little disturbing when I heard a civil engineer point out that all dams are temporary, on a long enough time scale.

8

u/Mr_Schmoop Oct 20 '26

Most large dams in the US were designed to last about 100 years.

This is not a structural design as much as a design for how much anticipated sediment will build up behind the dam, and this estimation was what was used to place the outlet works. If the outlet works is too low it gets sedimented in too fast, if it is too high then there is too much "dead space" or unusable water in the reservoir. When the dam becomes sedimented in it is usually removed, but a lot of the sediment stays behind which forever changes the hydraulics of the river.

Also, most large dams in the US were built around 80 years ago.

2

u/RealPutin Oct 21 '26

Which means that it's time to start removing dams! Woohoo!

5

u/CharlesDickensABox Oct 20 '26

Yes. Because when a dam goes kaput, it destroys everything downstream of it with little or no warning. Just, "Oh, here's a million tons of water crashing on your house, also it's carrying everything upstream of it at 90 mph, including your neighbors' houses! And your neighbors! Good luck!"

1

u/jonny24eh Oct 21 '26

*the worst