I know how long it takes to charge a capacitor given constant voltage (that's the first thing everyone learns about capacitors). In my search to answer this question for constant power, I discovered the answer instead for constant current here.
My first thought was \$Q=CV\$ and \$I=C\frac{dv}{dt}\$ and \$P=IV\$. You can combine all these formulae and cancel the two \$V\$'s to get \$Q=\frac P{\frac{dv}{dt}}\$
It was at this point that I realized I had no idea what the heck this equation was supposed to mean. I get what \$P\$ is, but where do I get \$\frac{dv}{dt}\$? So I thought "maybe I should have rearranged it differently". Perhaps like this: \$Q=\frac{CP}{I}\$
That at least makes sense, because it now depends on the capacitance of the capacitor. But where do I get the current to plug into this equation? I want power to be constant, so voltage and current are going to change.
I understand I could get \$I\$ or \$V\$if I chose a specific configuration of battery cells in parallel or series. But will that make a difference in the total time it takes to charge the capacitor? (I could use boosters to up the voltage and lower current or vice versa, so it seems the relevant thing is the power, not the specific battery configuration)
motivation:
This question came up because I want to charge a capacitor in a very short period of time, so I need to know how large of a battery I need. I can get the power density of LiPO battery's, multiply by the power will give me the weight of the battery.
This question also seems apt because in "the real world", where ever that is, neither voltage nor current are constant. If a battery supplies "a voltage", but you short it, the voltage between the terminals will drop, because there is some internal resistance, so it's not really supplying that voltage. Similarly, if something supplies "a current" to something like a capacitor, well... the capacitor will act more and more like an open circuit as it charges, until it explodes and literally becomes and open circuit. So while constant current and constant voltage equations are "good enough" for situations when things are almost constant, it will never be accurate when things vary.