Let me first say that I am not a physicist, but I am trying to make a simulation on my computer and I have the following question.
Let's consider that we have three free charges that somehow can change their charge in time. $$ Q_1(t) = \sin(\omega t) \\ Q_2(t) = \begin{cases}1 & \mod(t,2)=1 \\ -1 & \mod(t,2)=0\end{cases} \\ Q_3(t) = 2\cos(2\omega t) $$ where $t$ is the time measured in seconds. We say that all particles have same mass $m$. We also consider gravitational potential energy to be negligible.
I am trying to find
- potential energy in time
- entropy variation in time
I understand that this might not be solvable analytically, but as I said, I am trying to simulate this on a computer. I have the forces over time, but I really don't want to integrate them spatially to find the potential energy, as in my simulations, the particles can count thousands. Could you point me out an easier way, or a simplification that I could try?
About the entropy, do you think this has no sense as the system if far away from equilibrium, or for any other reason? If you think this is a valid thing to measure, could you tell me any ideas on how to do it?