News for hackers. Stuff that matters.
Re:Naval Architecture by jonshariat on Tuesday July 27, 2021 @01:27PM (#27975069)
"It’s worth stressing that in these static cases the pressure at a given level depends purely on the height of the body of water."

How did I not know this? It's so counter intuitive that a thin column of water can cause the same pressure as a wide one.

The video they link shows this in action: https://www.youtube.com/watch?v=EJHrr21UvY8

One mind bending fact she shares in the video is that a thin layer of water, touching the damn wall, is the same pressure as an entire lake.

Re:Naval Architecture by tobmlt on Tuesday July 27, 2021 @03:35PM (#27976593)
Fluid has so much to bend the mind. Soliton waves, shocks, expansions, critical transition phenomena (besides phase transition) Look at froude number and planning hulls, the purpose of chines, steps, etc. in a high speed hull to manage skin friction vs wave drag. Wave Dispersion, wave superposition, etc. the free surface itself means if you are solving for flow, flow then determines the free surface which then determines the flow.. add infinitum. It’s nonlinear like a baby general relativity in that way. The shallow water equations are hyperbolic so you get shocks etc. deep water, long wavelength waves act in linear fashion so you get superposition effects. On and on. Fun times.
Re:Naval Architecture by tragomaskhalos on Wednesday July 28, 2021 @07:29AM (#27982581)
Fluid dynamics was an entire optional module in my maths degree, there is so much complex content there. (I didn't take it, it looked too hard!)
Re:Naval Architecture by dan-robertson on Wednesday July 28, 2021 @04:12PM (#27989129)
I took the introductory fluids course at my university but eventually gave up as I could never figure out the right approximations to take and I couldn’t build the intuition. It didn’t help that I was paired with a guy I didn’t like for homework.

Some of my friends did like it though (one got to explain how he spent his summer in the maths department learning about fingering.)

After I graduated, I returned to visit some friends doing master’s degrees and it was only at this point that I learned there was a moderately large laboratory under the maths department doing real physical experiments with actual fluids.

Re:Naval Architecture by awestroke on Wednesday July 28, 2021 @01:46AM (#27980583)
Can you recommend any books on this?
Re:Naval Architecture by mr_overalls on Wednesday July 28, 2021 @10:56AM (#27984566)
Fluid mechanics is a standard course in many undergraduate engineering curriculum. A quick Google search reveals lots of open-source and downloadable pdfs of printed texts.

https://open.umn.edu/opentextbooks/textbooks/85

http://civilcafe.weebly.com/uploads/2/8/9/8/28985467/fluid_m...

Re:Naval Architecture by tobmlt on Wednesday July 28, 2021 @08:26PM (#27991406)
Mr_overalls has the overview idea covered. I might add that if you start with the Reynolds transport theorem, you can’t go wrong, but that might be the wrong-math-way-around for you.

Are there particular aspects you are interested in?

E.g. Computational methods

Turbulence

Topology / geometry

Shocks and expansions

Superposition, radiation/diffraction, added mass

Analogues with other systems

Some of this stuff involves simplifying assumptions. Sometimes those reveal neat corners of behavior. (E.g. the superposition business)

Some of it might be better introduced qualitatively at first, like say turbulence. It all depends where you are.

By the way, I don’t know some great amount of this stuff at some expert level. I may be able to guide you in some direction of interest is all.

I wish I knew of an overview which scanned across all this funny behavior but some is pretty widely separated.

Naval architecture text books focus on the linear aspects, and the free surface of course.

Cfd (computational fluid dynamics) just about has to deal with “everything else” except the topology and “geometry of” (physics, mechanics, fluids, etc) which kind of lives the hermit life, like the quaternions or geometric algebra or something.

Re:Naval Architecture by throwawaysea on Wednesday July 28, 2021 @02:10AM (#27980697)
There must be a few general equations that capture all these behaviors in fluids right? That is, aren’t all these just “emergent” aspects of some fundamental physics?
Re:Naval Architecture by bilog on Wednesday July 28, 2021 @03:03AM (#27981089)
The equations are conceptually simple: Navier-Stokes equations (conservation of momentum) and conservation of mass. The behavior is emergent.
Re:Naval Architecture by tobmlt on Wednesday July 28, 2021 @08:18PM (#27991352)
Yep. Just as bilog says. Navier Stokes.

There are additional aspects that may or may not be lumped in somebody’s exposition - such as the transport of heat and coupling of the energy equation in the compressible Navier-Stokes equations.

Re:Naval Architecture by abraae on Tuesday July 27, 2021 @04:34PM (#27977251)
I'm building a system for measuring levels in water tanks using submersible pressure sensors (triggered by living in a dry area and being totally dependant on our tanks).

Quality sensors cost a lot - too much for domestic purposes. Much cheaper ones can be bought from China, so I've been looking for some way to test them, without actually altering the level in a gigantic water tank.

It occurred to me I should be able to just use a thin vertical pipe. But as you say, this seems counter intuitive, especially if the pipe is barely wider than the sensor itself. Just doesn't... Feel right.

Re:Naval Architecture by zsmi on Tuesday July 27, 2021 @08:06PM (#27979039)
I can totally relate.

I've been using ohm/square for decades. I know the math. I've measured it. It works. I know it's true. But my mind refuses to accept that ohms/square can possibly be a unit. Every single time my mind is like, "ohms per square what?"

http://www.esdjournal.com/techpapr/ohmmtr/ohm.htm

Re:Naval Architecture by tbrownaw on Wednesday July 28, 2021 @02:30PM (#27987659)
My understanding of that is that it's using "square" as in aspect ratio like how screens are 16:9 or whatever, while "square" in units is more commonly used as in `exp(n, 2)`. And that terminology mismatch is why it often doesn't seem to make sense.
Re:Naval Architecture by lazide on Tuesday July 27, 2021 @05:21PM (#27977824)
It’s called head - and it’s a key calculation in if a dam is worthwhile. The pipe feeding the turbine can be quite small for a lot of power if the head is large.

You could also use a small pressure vessel/sealed tank, and pump in water with a hand pump. You could simulate nearly any sized tank that way too.

Re:Naval Architecture by RantyDave on Tuesday July 27, 2021 @07:25PM (#27978801)
If you stick the sensor at one end of a hose pipe (with water in it) then you can just change the height of the other end to change the pressure.
Re:Naval Architecture by abraae on Tuesday July 27, 2021 @08:13PM (#27979081)
Nice idea, thank you.
Re:Naval Architecture by RantyDave on Tuesday July 27, 2021 @07:29PM (#27978836)
Hey, also, why not just find the height of the water level by attaching something ultrasonic to the inspection hatch (or whatever). https://www.adafruit.com/product/4664
Re:Naval Architecture by abraae on Tuesday July 27, 2021 @08:09PM (#27979058)
Not accurate enough. I want to be able to quantify e.g how much water was used to water the garden. In a 25K litre tank, that's a very small change in level.
Re:Naval Architecture by groby_b on Tuesday July 27, 2021 @08:50PM (#27979282)
You'll have the same issue with pressure sensors, though?

Maybe a flow meter is a better choice for that. (Bonus, you can use that to cross-calibrate with the pressure/level sensor)

Re:Naval Architecture by snovv_crash on Wednesday July 28, 2021 @08:54AM (#27983139)
Yep, if you use flow plus pressure, you can run an EKF to get much more accurate results.
Re:Naval Architecture by snypher on Wednesday July 28, 2021 @07:17PM (#27990985)
You can get ultrasonics with millimeter precision but they're $300.
Re:Naval Architecture by vosper on Tuesday July 27, 2021 @07:49PM (#27978947)
Not only is this a really cool idea, that sensor is awesome! I love that you can get something like that for $30.
Re:Naval Architecture by pkaye on Tuesday July 27, 2021 @02:01PM (#27975501)
Its basically the Bernoulli's equation. Its because pressure is force over area and the mass of the body of water above it is area times height time density so the area cancels out. You can add velocity into the equation and its a conservation of energy equation. Similarly there is a continuity equation which is a conservation of mass. These two are the backbone of a beginning fluid mechanics course in engineering.
Re:Naval Architecture by jvanderbot on Tuesday July 27, 2021 @03:34PM (#27976578)
Intuition fails! Quick, point out the math! Your comment is exactly what is derived / demonstrated in the article.

Parent was simply commenting how that math was not intuitive (and so repeating that it was just math doesn't do much).

Re:Naval Architecture by ummonk on Tuesday July 27, 2021 @04:02PM (#27976903)
That's interesting because it seems perfectly intuitive to me.

Both in terms of understanding the physics (weight of water above the column divided by the area of that column, and then any water around the column just has to have the same pressure to contain that column) and just plain practical experience from e.g. dipping underwater in the ocean and not getting crushed like a bug.

Re:Naval Architecture by Iv on Tuesday July 27, 2021 @09:04PM (#27979343)
It is very counterintuitive when you reason in terms of weight though. If you imagine a pile of rocks for instance, it makes sense that the strain on the base of a pyramid is lower than on the base of a column of the same height and base area.

You have to visualize the atmospheric air pressure to reconcile the result with intuition.

Re:Naval Architecture by ummonk on Tuesday July 27, 2021 @09:21PM (#27979432)
I mean it's perfectly intuitive to me that a pyramid of rocks isn't going to collapse, so you don't need a container to hold it in. The closer analogue would be pouring sand in to a tube vs. pouring it in to a bottle that widens below the neck - it's intuitive to me that the bottle would be under enormous strain to hold the sand in. (And, incidentally, the part of the bottle where it widens would be applying extra "weight" to the sand below it)
Re:Naval Architecture by palijer on Tuesday July 27, 2021 @02:12PM (#27975608)
This is one of those physics phenomenon where I feel like they are a software bug. Bell's Theorem and a lot of quantum entanglement stuff is like that as well.

https://youtu.be/zcqZHYo7ONs

Re:Naval Architecture by jschwartzi on Tuesday July 27, 2021 @02:34PM (#27975857)
It’s actually quite intuitive, as the force is distributed over a larger area. So although the pressure gradient isn’t affected by the discontinuity in the container size, if you compare forces exerted by the pressure on a plate in either section of the chamber you’ll observe that the force on the wider plate would be reduced to compensate for the increased area in the presence of the same pressure.
Re:Naval Architecture by garmaine on Tuesday July 27, 2021 @04:33PM (#27977236)
I'm not sure why you're being down-voted. If you double the size of a water column, you of course double the total weight pressing down. But you've also doubled the cross-sectional area, so the weight-per-unit-area (pressure) remains the same. This is pretty intuitive if you understand what pressure is.
Re:Naval Architecture by dan-robertson on Wednesday July 28, 2021 @04:22PM (#27989246)
Perhaps because the explanation (and indeed concept) isn’t that intuitive so the comment may be read as dismissive?

If you see pressure as coming from the weight of the fluid above and now replace fluids with solids for a mental model, it obviously doesn’t work: imagine two parallel rigid plates connected by some rigid structure. The top plate will represent the (fluid) boundary between the top of the barrel and the tube and the bottom plate the bottom of the barrel. If you put a narrow column of metal on the top of the top plate, then the pressure exerted by the bottom plate is, say, p. If you make that column much wider, increasing the weight above, the pressure is say 10p.

I think the problem is that this intuitive model of pressure is just wrong but if it doesn’t come from the weight of the water above, it is hard to intuitively see where it does come from.

Re:Naval Architecture by garmaine on Wednesday July 28, 2021 @05:32PM (#27990021)
Your example is completely different though. Considering neighboring water columns isn't like adding more to the top of the plate, it's like setting up an entirely different plate next door. Which of course doesn't affect the first instance at all.
Re:Naval Architecture by dan-robertson on Thursday July 29, 2021 @08:11AM (#27995507)
The point is that the way people typically think of the problem leads to examples like mine, and this is why the concept is unintuitive. It doesn’t matter whether the model is correct—the whole point is that it is the incorrect model many people will have or start with.
Re:Naval Architecture by Ma8ee on Tuesday July 27, 2021 @06:03PM (#27978239)
The force would scale with the area, since pressure is force per area. Not the other way around.
Re:Naval Architecture by zarzavat on Wednesday July 28, 2021 @06:57AM (#27982391)
Perhaps you are conflating pressure and force?

Pressure is force per area, the area doesn't matter by definition. Similarly to how we measure rainfall in millimetres: volume / area = length.

Whereas if you were to place a bucket of water on your head, the area of the bucket would surely make a big difference to the force you feel, all else being equal.

Re:Naval Architecture by zwkrt on Wednesday July 28, 2021 @12:40AM (#27980306)
A fun thought experiment is to realize that if the earths atmosphere were totally removed except for a cylinder that encircled your house and went into space, you would feel physically the same. Just like in the water, in some sense the only thing air pressure cares about is how much air is directly on top of your head.
Re:Naval Architecture by marcosdumay on Tuesday July 27, 2021 @04:03PM (#27976918)
On those oddly shaped reservoirs, the walls compensate for the lack of a water column above the places where it widens. The actual force on the water is the same as would be in a cylinder.
Re:Naval Architecture by morpheos137 on Tuesday July 27, 2021 @03:07PM (#27976246)
why is it counter intuitive for you? It is not to me at all. Gravity pulls down. There is essentially no lateral component to gravity. Height is measured in the verticle dimension, the same as gravity. Now imagine water column as a stack of pennies. The more pennies are added to the stack the more pressure is on the lower pennies. It does not matter how many stacks are in front of or behind or to side of the stack you are looking at.
Re:Naval Architecture by Iv on Tuesday July 27, 2021 @09:11PM (#27979378)
> There is essentially no lateral component to gravity

Yet you can distribute the weight of a structure on larger bases. If you put two columns on pennies on a steel plate, the pressure under the plate will be higher than if you put only one column.

It is easy to imagine the bottom vessel as similar to such a plate.

I think the key to make this intuitive is to realize a few things:

- pressure in liquids are transmitted differently - water is actually very slightly compressible - atmospheric pressure is also an important part of the system

Re:Naval Architecture by bilog on Wednesday July 28, 2021 @03:30AM (#27981238)
The intuition with the columns of pennies over a plate doesn't translate because in the plate case the surface is fixed (the surface of the plate) so the pressure depends on how much weight you put on it. In the case of multiple columns of water, the pressure you're looking at is the pressure on the combined surface of both columns, which remains constant because both the weight AND the surface are increasing proportionally, keeping the ratio (that gives you the pressure) constant.
Re:Naval Architecture by abdullahkhalids on Wednesday July 28, 2021 @07:41AM (#27982665)
> Yet you can distribute the weight of a structure on larger bases.

In the case of solid objects, indeed. This is because in solids atoms are bonded together and so the weight can distribute. An easy and extreme case of this last statement is to imagine standing on a bridge. Your weight is supported not just by the part of the bridge underneath you, but, via transmission, by the two end points attached to land.

In liquids, the atoms are not bonded, so the same distribution cannot happen.

Re:Naval Architecture by morpheos137 on Tuesday July 27, 2021 @10:09PM (#27979664)
pressure is measured in force per surface area. It is disheartening to see HN so quantitatively illiterate.
Re:Naval Architecture by simonh on Tuesday July 27, 2021 @11:46PM (#27980058)
Nobody is saying this fact about liquids isn’t true. We all know it’s true, so proving it doesn’t change anything.

It is counter intuitive though precisely because the pennies analogy doesn’t work.

If I put a 1m stack of quarters on a pressure gauge, then I put one quarter on the gauge and a stack of pennies on top of it up to 1m high, I get two different readings. Conversely if I measure the pressure at the bottom of two bottles the same shape as the stacks of coins, I get the same readings.

Re:Naval Architecture by morpheos137 on Wednesday July 28, 2021 @02:07AM (#27980678)
If you measure the pressure at the bottom of two bottles containing different density liquids the same shape as the two stacks of different coins you get two different pressure readings.

In case it was not clear in my analogy a "penny" (it can be anything solid and incompressible) is representative of a water molecule. If you want to compare the pressures of stacks of pennies and quarters because for some reason you are fixated in these specific physical coins rather than what they represent then I will make it explicit. Imagine pennies represent water and quarters represent mercury. Two different liquids, two different coins, two different pressures. I don't get what you guys don't get.

Can you explain to me why you think it is intuitive that the downward pressure of a liquid at the bottom of a container should vary for equal depths but different volumes? E.g. you seem to intuitively think that if you have a big pan filled with 1 inch of water the water pressure at the bottom of the pan is greater than the pressure at the bottom of a 50 ml flask also filled with one inch of water. This is false but I am interested as to why you and the others think it is "intuitive?" Where does the additional force come from to increase the pressure in the bigger pan? Gravity pulls straight down.

Re:Naval Architecture by Iv on Wednesday July 28, 2021 @03:18AM (#27981169)
In my case, the difference in intuitiveness is that I am used to things crushing because of weight/force but not because of pressure.

If you have a bottle of 1 kg of water and put it on a plank between two stools, what matters to know if the plank will break is the total weight (and torque) of the bottle and the surface of contact. The shape of the bottle is irrelevant.

When you have that image in mind and someone suddenly tells you that actually no, 1 kg of water on a 50 meters high column can actually break things 1kg of water in a bucket can't, it is very counterintuitive.

And the stack of pennies is really unhelpful I feel. Make an inverse pyramid with 1000 pennies, all of them resting on one at the bottom tip, or make a column of these, the force exerted on the bottom one will be the same. The force per area as well. Not so with water.

The difference is that the water molecules move until they find an equilibrium in which there is a gradient of pressure and where molecules push back in every direction equally. Pennies do not, they are content exerting "pressure" in a single direction

Re:Naval Architecture by morpheos137 on Wednesday July 28, 2021 @10:20AM (#27984099)
Water exerts pressure in a single direction too: down. There is no PSI gradient in the lateral direction. This is intuitive because there is no force acting in that direction. I do not believe water molecules ever find a topological equilibrium in a liquid phase. Because then they would be a solid or a crystal. Water as a liquid can flow but it still only exerts pressure in the downward direction. To my analogy, pennies can slide or move from one stack to another (e.g. waves). The only thing affecting the pressure on the bottom penny of a given stack at a given instant is the number of pennies in that same stack resting on top of it. What is going on in the adjacent stacks does not matter, because gravity only pulls down.
Re:Naval Architecture by RealityVoid on Tuesday July 27, 2021 @05:31PM (#27977910)
Actually, yours is not such a great explanation, since a stack of quarters would manifest greater pressure than a stack of pennies. Whereas, a fluid column would manifest the same pressure no matter the diameter.
Re:Naval Architecture by Ma8ee on Tuesday July 27, 2021 @06:10PM (#27978306)
No, a stack of pennies would manifest a greater force, but the pressure would be the same. Pressure is force per area, which means that the increased weight from a wider column is exactly cancelled by the increased area that the force is distributed over.
Re:Naval Architecture by RealityVoid on Tuesday July 27, 2021 @06:26PM (#27978416)
Ok, yes, this holds true if the support surface increases the same. But the parallels still do not hold too well. Imagine sort of a funnel holding water, no matter the thickness of the base or top, the fluid pressure at the base is the same. Whereas with coins it does not work the same.
Re:Naval Architecture by Denvercoder9 on Tuesday July 27, 2021 @06:19PM (#27978373)
Technically a stack of quarters would exert a greater pressure, but only because they're made of a denser material than pennies.
Re:Naval Architecture by morpheos137 on Tuesday July 27, 2021 @06:10PM (#27978308)
penny is symbolic. diameter is irrelavent if scale is undefined.
Re:Naval Architecture by jvanderbot on Tuesday July 27, 2021 @03:35PM (#27976585)
This is a great explanation, actually.
Re:Naval Architecture by JKCalhoun on Tuesday July 27, 2021 @05:41PM (#27978017)
Hmmm ... reinforces my counter-intuition. The stack of pennies might explain why the bottom of the jar would explode, but not the sides, area not below the stack of pennies.

My intuition (wrong here) is that the extra surface not beneath the stack of pennies (your analogy) would in fact distribute the pressure and therefore represent a lower PSI on all sides of the jar.

Re:Naval Architecture by jvanderbot on Wednesday July 28, 2021 @11:42AM (#27985134)
I guess I translated "pennies" into "little bags of water". The little bag of water at the bottom only gets pressurized from the little bags of water above it.

And so the bottom bag's "pushing" outward from compression would be affected only by those above it.

Re:Naval Architecture by Nathanael_M on Tuesday July 27, 2021 @04:25PM (#27977155)
Super conter-intuitive for me as well. I appreciate your explanation!
Re:Naval Architecture by vishnugupta on Wednesday July 28, 2021 @02:11AM (#27980709)
For me the aha/eureka moment about the force of water pressure was when I read that water jet is used sometimes to precision cut diamonds.
Re:Naval Architecture by dan-robertson on Wednesday July 28, 2021 @04:25PM (#27989278)
Usually some very fine abrasive particles are added to water-jet cutters because the water alone doesn’t cut so quickly if at all. Similarly, the depth of a cut can be limited as it only really works if the water goes all the way through (otherwise the pool slows down and redirects the force from the jet)