Interesting. So with an adjustable inductor, (I’m sure they must exist in textbooks if not in suppliers) one can tweak it for the greatest energy transfer.It is not
An efficient way to transfer the energy from the capacitor to the battery is to use an inductor with a diode for resonant charging.
It's rather like a one-shot buck/boost converter.
The LTspice simulation below shows the result for a nominal 100mH inductor and a Schottky diode for maximum efficiency.
The inductor stores the capacitors energy while it is being transferred to the battery and the diode blocks any return from the battery back to the capacitor.
The capacitor voltage (green trace) goes from 30V to about -5V (due to the resonant relation between the inductor and capacitor).
The peak current (yellow trace) during the charging is a little over 1.7A.
The energy transferred (red trace) is 423mJ (small Waveform window) from the initial 450mJ stored in the capacitor (of course that doesn't include any circuit/inductor/battery resistances which would reduce that some).
View attachment 289231

