Hi,
Variable capacitor circuits can be built: On can use an OPAMP with variable gain and a capacitor at it´s output.
If you are able to make the gain varaiable ... then also the capacitance is varaiable.
****
How "realistic" do you need the "change" to be?
When I think back about physics class.. We had this big plates capacitor, where we could change the distance of the plates to change the capacitance.
I remember there was a mechanical force between the plates. So when the capacitor is charged, and you wanted to move the plates there needed to be extra mechanical energy.
If you "forget" about this extra mechanical energy in your simulation you could (falsly) proove that a perpetuum mobile exists.
In other words: the stored energy is: W = 0.5 * C * V * V ... so if you wanted to "compensate" for the extra mechanical energy (set to be zero) then you need to change V accordingly. In a way that W1 = W2 --> C1 * V1 * V1 = C2 * V2 * V2
As an example: When you change the capacitance to become 1/4 of before, then you need to double the voltage.
Klaus