News for hackers. Stuff that matters.
Re:Two capacitor paradox by barbegal on Monday May 25, 2020 @11:05AM (#23301808)
Its easier to think about this using the water pressure analogy. Imagine a large barrel full of water connected to another identical barrel. The first barrel is filled to the top whilst the second is empty. A valve is opened between the two barrels and they equalise with half of the water in each.

The initial energy is mgh and the final energy is 2 * (m/2 * g * h/2) = mgh/2 so half of then energy has disappeared. It is clear that work could have been done by the water moving between the two barrels (like in a hydro-electric power station).

Re:Two capacitor paradox by bobbylarrybobby on Monday May 25, 2020 @11:42AM (#23302163)
And the resolutions are the same as in the capacitor example: either friction in the pipes damps the oscillation, or the inertia of the water keeps it oscillating between the two barrels indefinitely and half the energy is kinetic.
Re:Two capacitor paradox by kurthr on Monday May 25, 2020 @01:46PM (#23303123)
Well, technically there would also be some inductance... which as an externally coupled field would radiate, and that inherently causes loss!
Re:Two capacitor paradox by Nextgrid on Monday May 25, 2020 @03:53PM (#23304306)
I’m curious, how would you describe inductance in the context of the water analogy? I’m not very experienced in electronics so I’m hoping the “water version” of it might help me understand electric inductance better.
Re:Two capacitor paradox by ericye16 on Monday May 25, 2020 @04:36PM (#23304697)
There's a property called "inertance" which is analogous to inductance in electrical circuits: https://en.wikipedia.org/wiki/Inertance

and it can cause things like water hammers: https://en.wikipedia.org/wiki/Water_hammer which are analogous to inductor sparks: http://web.physics.ucsb.edu/~lecturedemonstrations/Composer/...

Re:Two capacitor paradox by johnkpaul on Monday May 25, 2020 @07:15PM (#23305882)
This video explains water hammer really well.

https://youtu.be/xoLmVFAFjn4

Re:Two capacitor paradox by chrisweekly on Monday May 25, 2020 @09:56PM (#23306739)
Yes it does! Watched, learned something, grateful.
Re:Two capacitor paradox by jacquesm on Tuesday May 26, 2020 @01:17AM (#23307656)
It is the reason why domotica valves move so slow. If they were to move instantaneously then it would cause water-hammer to the point where it might even dislodge the valve from its connections if the run before it is long enough!
Re:Two capacitor paradox by userbinator on Monday May 25, 2020 @07:51PM (#23306091)
There is also a practical device which is basically a boost converter for water: https://en.wikipedia.org/wiki/Hydraulic_ram
Re:Two capacitor paradox by jimmyswimmy on Monday May 25, 2020 @04:17PM (#23304508)
It is the inertia of the water in the connecting pipes. In electrical systems, the inductance is that property of a component which tries to keep current constant. In both forms of the thought experiment, if you shut off the connection instantly, the voltage or pressure build to destroy the thing which stopped the connection.

Water analogies only go so far. You would do well to pick up a book on basic electrical networks to learn this material further. Don't shy away from the math; it's really the only way to build the understanding that leads to intuition.

Re:Two capacitor paradox by ivanhoe on Monday May 25, 2020 @04:25PM (#23304587)
In electric circuits capacity and inductance make energy oscillate between the electric and the magnetic field. The closest analogy I can think of for water pipes would be the oscillation between the kinetic and the potential energy (or the flow and the pressure). As for better understanding of inductance and magnetic field, imho it's better to stick to Faraday, Gauss and Lenz laws than looking for analogies, as EM field has it's very specific properties.
Re:Two capacitor paradox by stephen_g on Monday May 25, 2020 @09:13PM (#23306502)
Might be an unpopular opinion but my advice as an electronics engineer would be to try and move away from water analogies as quickly as possible. While they can be useful at the start for some basic concepts, I feel like trying to relate everything to hydraulic concepts (or springs) makes it harder to understand things in the long run when you start looking at concepts where the analogies don't work as well.
Re:Two capacitor paradox by somewhereoutth on Monday May 25, 2020 @09:58PM (#23306749)
I have only a passing understanding of both, but enough to appreciate the (limited as you say) intuitive resemblances - can anyone enlighten me as to what are the fundamental mathematical differences between modelling electronics and water?
Re:Two capacitor paradox by kd5bjo on Tuesday May 26, 2020 @01:25AM (#23307707)
If you keep the water slow enough to stay in laminar flow and the electronic scales large enough to avoid quantum effects, electronic and hydraulic components have an essentially 1:1 correspondence.

The biggest difference is in mechanical effects: in hydraulics, physical force is primarily a function of the system pressure and velocity of the flow rate. For electromagnetics, those are reversed: voltage controls the speed of a motor and current controls the force, for example.

They also deviate from the linear regime in different ways, which means the more interesting components have to be built completely differently to perform the same job. A one-way check valve and a diode are both governed by similar equations on a macro scale, but you’ll never be able to understand the internal structure of the valve by an electronic analogy or the design of the diode by a hydraulic one.

Re:Two capacitor paradox by sillysaurusx on Monday May 25, 2020 @09:42PM (#23306671)
What would be a better visualization?
Re:Two capacitor paradox by stephen_g on Saturday May 30, 2020 @02:06AM (#23358905)
What I’m saying is that it’s best to get to the point where you can reason more directly about voltage, current, charge, inductance etc.

Part of that is getting comfortable with the maths, and the way that’s visualised is just equations, graphs and sometimes things like diagrams of fields or heatmaps. I work in RF so we do antenna simulations and things like that, and the software generates radiation pattern diagrams in 2D, or in 3D heatmaps showing the energy density. It just doesn’t work to, say, try and think of what would happen if an antenna was spraying water out or something.

Re:Two capacitor paradox by fwip on Monday May 25, 2020 @06:10PM (#23305466)
The analogy I always used as a kid was a heavy, free-spinning water wheel in the path of the water. It would tend to resist changes in current.
Re:Two capacitor paradox by red75prime on Monday May 25, 2020 @02:39PM (#23303595)
And the loss will be in the form of gravitational waves.
Re:Two capacitor paradox by throwphoton on Monday May 25, 2020 @02:52PM (#23303713)
Argh is this real or not? Would energy radiated away as a result of inductance be analogous to energy radiated away by gravitational waves in the "water pressure analogy"?
Re:Two capacitor paradox by adammunich on Monday May 25, 2020 @03:08PM (#23303879)
I think so yes, but the effect would be very small
Re:Two capacitor paradox by majikandy on Monday May 25, 2020 @04:29PM (#23304616)
Probably more simply in kinetic and sound energy with water as it rumbles through the pipes and vibrates the pipes and barrels a bit.
Re:Two capacitor paradox by sopooneo on Monday May 25, 2020 @01:00PM (#23302791)
That, along with the parent comment, clinched it for me. Thank you.
Re:Two capacitor paradox by CamperBob2 on Monday May 25, 2020 @05:56PM (#23305367)
I think the Wikipedia article's final sentence is probably the easiest way to visualize the question if you want to stick to electrical terms. If there's just one capacitor and you short it out by closing the switch, it's not hard to see how all of the energy vanishes, rather than complicating the question by referring to half of it.
Re:Two capacitor paradox by wrycoder on Monday May 25, 2020 @06:57PM (#23305760)
Energy doesn’t vanish. Part of it is dissipated in the wire’s resistance and the rest is radiated as EM energy in a ring-down oscillation.
Re:Two capacitor paradox by CamperBob2 on Monday May 25, 2020 @07:31PM (#23305976)
Yes, and that's the point; to answer the paradox you have to explain where the seemingly-"vanished" energy goes, and that's relatively straightforward in the single-capacitor case.

It's then equally straightforward to see how the same explanation applies to the more contrived case of two capacitors.

Re:Two capacitor paradox by Yajirobe on Monday May 25, 2020 @01:47PM (#23303130)
So how do we capture this 'resolution' in actual equations? Why aren't the equations revealing this to us?
Re:Two capacitor paradox by jbay808 on Monday May 25, 2020 @02:17PM (#23303374)
You can set this up with superconductors so they have zero resistance, but any wire will still have a trace inductance. (Moving charges must create a magnetic field, so if you're moving charges from one capacitor to another, you need to have some inductance somewhere).

Once you include that, you'll see your LC resonator is perfectly undamped and oscillates the charges back and forth forever, breaking the assumption that a "steady state" would equalize the charge on both capacitors.

The equations will also reveal the problem to you when you try to calculate the current that flows from one capacitor to another, with no inductance or resistance in between. You might try putting in an inductor and looking at the circuit behaviour in the limit as the inductance goes to zero -- you'd see the frequency of oscillation climbs to infinity; the full charge essentially teleports back and forth from one capacitor to the other, but still never settles into a steady state of equal charge on both capacitors.

Once you see this, it's like having a problem set up with a frictionless ball on a hilltop beside a valley, saying "in the steady state, the ball has rolled down and settled in the valley. But there was no friction! Where did the energy go?", and the answer is just that the ball doesn't settle in the valley, but rather continues back up the other side, carried along by the kinetic energy that had been neglected in the problem statement.

(Before the well-actualies point out that an LC circuit will damp itself via radiation, let's just say it's also perfectly shielded).

Re:Two capacitor paradox by LeifCarrotson on Monday May 25, 2020 @01:55PM (#23303190)
The actual equations do capture it. It's just the simplified minimal equations that result in 'paradox'.

A full model is complicated by the fact that your capacitors have an internal series resistance and leakage resistance, and that the leads and circuit board traces have resistance and inductance. Just like the pipes and valve has some resistance to flow, and some water might leak out or evaporate, and the water has inertia and nonzero viscosity, and turbulence will turn some of the motion to heat, and depending on the phase of the moon, the time of day, and the compass orientation of the barrels, the water may be pulled into a picometers-higher tide in one barrel. When you say "they equalize with half the water in each" you don't typically mention that the phase of the moon may be a factor.

Re:Two capacitor paradox by logicallee on Monday May 25, 2020 @02:37PM (#23303573)
Still, picometers are very different from "half the energy in the system".

We do store energy in water towers for example, so it is pretty surprising and unintuitive that if you put two large water tanks, one full and one empty, right next to each other, open a valve between them allowing their levels to equalize, then assuming there is no distance and you used teflon coated valves you lose... half of the energy as they equalize!

I certainly wouldn't have thought so. I'd have thought you keep 70%-95+% of the energy.

Actually the oscillation explanation didn't match my intuition at all, because I would have thought the water flows from high to low until the point of equalization and then stops flowing, without oscillation.

I get that this doesn't happen, but I would have thought it would!

Re:Two capacitor paradox by MauranKilom on Monday May 25, 2020 @08:00PM (#23306140)
> Actually the oscillation explanation didn't match my intuition at all, because I would have thought the water flows from high to low until the point of equalization and then stops flowing, without oscillation.

It might very well do that. You will just have lost half the energy already to heat from friction with the piping and due to water's viscosity.

> it is pretty surprising and unintuitive that if you put two large water tanks, one full and one empty, right next to each other, open a valve between them allowing their levels to equalize, then assuming there is no distance and you used teflon coated valves you lose... half of the energy as they equalize!

If you did that, they would equalize - very briefly - and then the second tank would fill higher and higher, until it's (nearly) full. Then the reverse begins.

This is very similar to a pendulum. Just that our intuition about pendulums is better than for near-frictionless transfer of fluids in connected systems.

> I'd have thought you keep 70%-95+% of the energy.

Well, the potential energy being zero at the bottom of each tank is arbitrary. If both tanks are inside a water tower, you might keep 99% of the "useful" energy even if you let them equalize, because the height above ground is greater than the height above "tank bottom". Maybe this is the source of some confusion here?

Re:Two capacitor paradox by mindslight on Monday May 25, 2020 @03:08PM (#23303885)
You lose 50% of the energy relative to the bottom of the water tanks (actually, the level you're using the water to perform work). If you did this with two 20 foot high tanks, but on towers 40 feet off the ground, then you retain 45 / 50 (the ratio of the changed center of mass) == 90% of the energy.

The oscillation bit happens, but it doesn't dominate. Water analogies can be misleading because water has intrinsic properties (eg turbulence ~= resistance) which aren't always significant in an electronic circuit. To make the equivalent of an LC-dominant circuit with (open) water tanks, you'd need something like a high-momentum turbine in the transfer pipe.

Re:Two capacitor paradox by logicallee on Monday May 25, 2020 @03:37PM (#23304155)
When water equalizes in the "water seeks its own level" demonstration (in a series of connected glass tubes of various shapes, the water is at the same level in the whole system, as here: https://www.physics.purdue.edu/demos/display_page.php?item=2... ), does the system lose a lot of potential energy as the water equalizes?

The demonstration is called Pascal's vases.

Re:Two capacitor paradox by saagarjha on Monday May 25, 2020 @02:43PM (#23303633)
In normal situations, you would not lose half the energy, or hydropower would be totally bunk (actually maybe not, considering the efficiency of burning fossil fuels…) But in this degenerate case, you cannot ignore the losses.
Re:Two capacitor paradox by lutorm on Tuesday May 26, 2020 @12:48AM (#23307516)
In a hydro power plant, the water turbine constitutes the "friction" so, if there were no other losses, the half of the energy "lost" from the system is precisely what your generator gave you.
Re:Two capacitor paradox by logicallee on Monday May 25, 2020 @02:57PM (#23303771)
Are you sure? I was going to add that the intuition comes from demonstrations we might have seen, where in a series of tubes, regardless of shape, water will be at one level. As in this picture:

https://www.physics.purdue.edu/demos/display_page.php?item=2...

So is it not accurate to say that water does this by oscillating and throwing away energy as parasitic losses, until it equalizes?

Are you saying in general does a system of connected tubes NOT throw off lots of energy as it gets into the equalized state shown?

If it does, I think this fact should also be mentioned when teaching the "water seeks its own level" demonstrated above. (Called Pascal's vases.)

Re:Two capacitor paradox by saagarjha on Monday May 25, 2020 @04:35PM (#23304687)
Here's a video showing water oscillating: https://www.youtube.com/watch?v=cVEbh_COcRY
Re:Two capacitor paradox by logicallee on Tuesday May 26, 2020 @12:00AM (#23307288)
Cool! Thanks :)
Re:Two capacitor paradox by fpoling on Monday May 25, 2020 @02:16PM (#23303361)
The equations do reveal that! As Wikipedia pointed out in the idealized model the current is infinite and the time to settle is zero. Thus the energy loss is proportional to ∞*0 , that tells immediately that the model is not applicable.
Re:Two capacitor paradox by flak48 on Monday May 25, 2020 @03:35PM (#23304135)
We make an intuitive assumption about the final state and then use the rules we know to apply equations to verify the final state.

In this case, the equations not matching up proved that our initial assumption (steady state) was itself wrong.

Re:Two capacitor paradox by Karto on Monday May 25, 2020 @11:30AM (#23302051)
If I think straight, the initial potential energy in a column of liquid would be the integration of mgh (actually integration of density * g * section * height), therefore mgh/2 at the beginning of the situation. Or said intuitively : the center of gravity of the column at half its height.

But obviously, even with this 1/2, your relation after dividing between two tanks still holds. :)

Re:Two capacitor paradox by thomasahle on Monday May 25, 2020 @12:18PM (#23302484)
I was thinking that too, the initial potential energy should be proportional to h^2/2. However then we still have 2*(h/2)^2/2 = h^2/4.
Re:Two capacitor paradox by Karto on Monday May 25, 2020 @01:31PM (#23303000)
Yes, one h is hidden inside m... Ending up with energy = something * h^2 actually makes the relationship show the same face as the one for capacitors, where energy = something * v^2.
Re:Two capacitor paradox by unkulunkulu on Monday May 25, 2020 @12:30PM (#23302560)
* where h = half the water level in the first barrel.
Re:Two capacitor paradox by sirusdas on Monday May 25, 2020 @01:24PM (#23302964)
Good observation!
Re:Two capacitor paradox by castratikron on Monday May 25, 2020 @02:53PM (#23303731)
Another equivalent analogy is a pendulum. Hold a pendulum with mass m at height h, so its potential energy is mgh. Let it go, and after a long time of swinging back and forth the pendulum eventually stops at the bottom (h=0). Where'd the energy go? It's all lost to heat through friction from the air and tension on the string. The rate of energy lost is just a lot less than the water barrel example. The general name for this kind of system is a harmonic oscillator.

Now I want to try the water barrel thing myself and see how many times the water goes back and forth before it finally stops...

Re:Two capacitor paradox by contravariant on Monday May 25, 2020 @12:25PM (#23302532)
It's also intuitively obvious that energy must disappear, otherwise nothing would happen (the system would already be in its lowest energy state).
Re:Two capacitor paradox by cousin_it on Monday May 25, 2020 @12:53PM (#23302738)
Very nice! The hydraulic analogy actually works for electric circuits in general, and can be made precise (you can calculate how much pressure corresponds to one volt etc), though the numbers involved can get a little silly: http://amasci.com/miscon/voltpres.html
Re:Two capacitor paradox by scrooched_moose on Monday May 25, 2020 @07:32PM (#23305985)
Heat transfer as well.

At the first engineering firm I worked for, we had a very good heat transfer solver but no electrical solver since it was an infrequent need in our field.

One of old timers was an expert at reframing the electrical problems into heat transfer, solving in the available tools, then converting back. As he said "it's all unit conversions". I never picked it up beyond simple resistance networks, but it was a cool way to abuse the tools.

https://lpsa.swarthmore.edu/Systems/Thermal/SysThermalElem.h...

Re:Two capacitor paradox by Matumio on Monday May 25, 2020 @01:37PM (#23303060)
I don't think the water analogy is a good fit here. For me the revelation was that energy can also be radiated away. When we did basic circuit exercises we never talked about that. Energy was either stored or turned into heat. Not sure how you would explain electromagnetic radiation with water pipes.
Re:Two capacitor paradox by LeifCarrotson on Monday May 25, 2020 @01:58PM (#23303214)
If you actually build this on a PCB with typical ceramic or electrolytic capacitors and a MOSFET or mechanical switch, an insignificant amount of energy will be radiated. Most of the energy does go into heating the capacitors through their internal series resistance.

Radiation could be the sound produced by the rushing water?

Re:Two capacitor paradox by Matumio on Monday May 25, 2020 @02:28PM (#23303479)
A steady current would also produce a rush of water, but I don't think you can get EM radiation with just a steady current.

Well, but maybe... if you equalize two water tanks with a very fat pipe it will swap forth and back, causing the whole assembly, table, and room to rock?

Re:Two capacitor paradox by pddpro on Monday May 25, 2020 @01:52PM (#23303165)
And that is what is called an analogy. Gives a simple and intuitive understanding but is not complete at all.
Re:Two capacitor paradox by ahartmetz on Monday May 25, 2020 @01:46PM (#23303117)
Gravity waves ;) - if they were many orders of magnitude stronger.
Re:Two capacitor paradox by adharmad on Monday May 25, 2020 @12:53PM (#23302736)
The secondary question though is: Why does the energy always dissipate by 50% in both the electric and hydrodynamic models?

Is there some underlying physical explanation of this? Something that says that "in a dynamical system the maximum efficiency can be at most 50%".

Re:Two capacitor paradox by joenathanone on Monday May 25, 2020 @01:09PM (#23302854)
Because in the examples you have two capacitors/barrels, if you had three or four, you would be looking at 33% or 25%.
Re:Two capacitor paradox by tijsvd on Monday May 25, 2020 @03:10PM (#23303905)
To say that the energy of the water is mgh is a simplification. It's really 1/2 * h^2 * A * mass density. The water at the top has more energy than the water on the bottom. The energy in the water is square to the water level, but the amount of water is linear. It's the same with a capacitor, the energy is square to the voltage, but the number of electrons is linear.

It works out to the same 50% because the analogy is just very good. Dividing over two barrels/capacitors means halving the potential level (amount of water/load doesn't change), which means 1/4 of the energy in each barrel.

Re:Two capacitor paradox by agapon on Monday May 25, 2020 @03:37PM (#23304149)
This is wrong. The energy is proportional to the height, not its square. You would get wrong units otherwise.
Re:Two capacitor paradox by tijsvd on Monday May 25, 2020 @06:35PM (#23305637)
The energy is proportional to both the height and the mass. The mass is proportional to the height itself. Hence the energy is proportional to the square of the height.

If the fill level is h, so the weighted average of the mass is at h/2,then

E = m * g * h / 2

m = V * r

V = A * h

E = A * r * g * h^2 / 2

m2 * kg/m3 * m/s2 * m2 = kg m2 / s2 = J

Re:Two capacitor paradox by agapon on Wednesday May 27, 2020 @05:51AM (#23321221)
Yeah, I totally forgot that there is a height component in the mass as well.
Re:Two capacitor paradox by ouid on Monday May 25, 2020 @10:12PM (#23306824)
I think it's probably easier to imagine as a pendulum.
Re:Two capacitor paradox by mrfusion on Monday May 25, 2020 @05:41PM (#23305267)
And if no work was done that energy turned into heat?