If the midpoint is at 0 V, then the bottom capacitor has 0 V across it and the top cap has 12 V across it.was thinking about AC, middle voltage peak as 6V
Thanks
the midpoint between cap has to be 0v ? if not 0 then dc current is flowing through cap
Remember, current flow in a capacitor is related to CHANGES in the voltage across it. As long as the voltage isn't changing, there's no current flowing.
Imagine I take one 1 uF capacitor and charge it to 20 V. I take the other 1 uF capacitor and charge it to -8 V. I now put these in series. The total voltage across both is 12 V. I now hook them up to a 12 V battery. Because the voltage across the battery is the same as the voltage across the two capacitors, no current will flow and they will just sit there looking stupid.
The point is that if you just give me a circuit that has a 12 V source connected to two 1 uF capacitors in series, there is no way for me to determine what the voltage is on the node between the caps unless I make assumptions which may or may not be valid. Simulators generally won't make those assumptions and so they aren't even able to start the simulation because, to do so, they need to know the initial operating point for all components and all nodes in the circuit. Having a DC path to ground for all nodes ensures that this is possible.
Having said that, some simulators have a mode of trying to determine a DC operating point even with floating nodes by starting all supplies in the circuit at zero and assuming that all nodes are at zero voltage and no current is flowing anywhere in the circuit. They then slowly ramp up the DC supplies to the specified outputs. This is generally a long process and it not guaranteed to work.