I have a confusion about this circuit:
Assume C1, C2 and S1 (in particular) is ideal. Assume S1 has an ideal 0 on resistance.
Capacitor C1 is charged to 5V and C2 is charged to 2V. At time t=0, the switch is closed and current flows from C1 to C2 in a transient phase. A steady state condition is reached where the voltage across both caps will settle to a value based on the capacitor ratios and their initial charge.
My question is about exactly at time t = 0. As soon as the switch is closed, the top plates of C1 and C2 are basically the same node/net (ignore any resistances, I know there will be resistances of the wires/tracks and the switch), yet current is only starting to flow, so what exactly is the voltage on this net at this time t = 0, is it 5V or 2V?