You have the right idea. If you add a diode in series, you can only charge the capacitor, and wait for self discharge to occur. Or if the diode is reversed, you can only discharge it (or charge it with reverse polarity), and once again wait for self discharge.
An exception to this would be to have some other connection between the diode and the capacitor.
So long as the battery is connected, the capacitor will just remain charged. Once the battery is removed, if there's some closed loop path between the plates of the capacitor, then the excess charge on one side of the capacitor will use the closed loop to balance out the charge. Excess electrons from the negative terminal of the capacitor will move towards the positive plate of the capacitor to allow charge balance to occur.
Capacitors don't store charge. That's such a worthless statement because it's based on this word "charge" that has multiple meanings. Please forget you ever heard it. They also do not smooth energy. What they smooth is voltage.
I will answer you question, but first you must really understand how capacitors work.
What capacitors store is energy. The stuff that flows around in electric circuits is electric charge. We measure rate of flow of charge in amperes. Quantity of charge is measured in coulombs. Because charge is never created nor destroyed, whenever we are measuring charge we are usually counting charge that flows past a metaphorical gate. Except for some very odd circuits, the total charge in an electronic device is also constant. It is very much like a closed hydraulic system: there's some fluid in it and you can move it around, but none ever enters or leaks out. You can count how much fluid flows past some point, but it must come from somewhere, and it must go somewhere else.
Imagine if you had a spherical vessel, filled with a fluid. Down the center of the vessel is a rubber plate that you can stretch by pushing fluid in one side and pumping it out the other. That's what a capacitor is like:
This is from Bill Beaty's excellent capacitor misconceptions.
When you push water in one side, an equal amount of water must come out the other side. Further, once this rubber membrane is stretched, it wants to return to being straight. Thus, the water pressure on one side will be higher than the other. If you were to remove the stoppers and replace them with a hose, water would flow until the rubber were not stretched.
Now replace "water" with "electric charge", and "pressure" with "voltage", and you have a capacitor.
Now imagine two vessels, one the size of a golf ball, and one the size of a swimming pool. Each has a membrane of identical stretchiness in the middle. If you pump a tablespoon of water through the golf ball sized vessel, the membrane will be stretched a lot, and consequently the pressure difference between the sides will be great. If you do the same to the swimming pool sized vessel, the membrane will barely move at all, and the pressure difference will just be slightly more than nothing.
This is what capacitance is. It tells you, for a given quantity of water moved, what the pressure difference is. It tells you, for a given amount of electric charge moved through the capacitor, what the voltage will be. It is defined as:
$$ C = {q \over V} $$
Where:
- \$C\$ is capacitance, measured in farads,
- \$q\$ is charged moved through the capacitor, measured in coulombs, and
- \$V\$ is voltage, measure in (you guessed it) volts.
Don't get hung up on "coulomb". A coulomb is how much charge moves past a point if 1 ampere is flowing for 1 second. Or, 2 amperes for half a second. Or, 1/2 ampere for 2 seconds.
If you took calculus, then you will recognize that charge is the integral of current. In other words, charge is to current as distance is to velocity. You can replace "ampere" with "coulomb per second" -- the units are exactly the same.
Using that knowledge and a bit of basic calculus, capacitance can also be defined in terms of voltage and current:
$$ {\mathrm d V(t) \over \mathrm d t} = {I(t) \over C} $$
What this says is: the rate of change of voltage over time (volts per second) is equal to the current (amperes or coulombs per second) divided by the capacitance (farads).
If you have a 1 farad capacitor, and you are moving 1 ampere (1 coulomb per second) through it, then voltage across the capacitor will change at the rate of 1 volt per second.
If you double that capacitance, then the rate of change of voltage will be half.
And here, I think, is the answer to your question. Frequently capacitors are put across the power supply to hold the voltage steady. This works because the more capacitance you have, the harder it is to change the voltage, because it requires more current to do so.
In this application, capacitors don't smooth energy, they smooth voltage. They do so by providing a storage of energy from which the load can draw during times of transient high current. This makes the power supply's job easier because it doesn't have to deal with high changes in current. In effect, the capacitor helps to average the current demand of the load as seen by the power supply.
Best Answer
If the capacitor is discharged, then there is no voltage across it, because that's what "discharged" means. So you are right; the voltage is zero until the switch is turned on.