LMGC90_user issueshttps://git-xen.lmgc.univ-montp2.fr/lmgc90/lmgc90_user/-/issues2020-01-09T10:18:33Zhttps://git-xen.lmgc.univ-montp2.fr/lmgc90/lmgc90_user/-/issues/2Computing potential energy of a particle system2020-01-09T10:18:33ZVassauxComputing potential energy of a particle systemDuring the execution of the simulation of particle system using a standard command.py script, I would like to compute the value of the potential energy of the whole particle system at every time step (in order to apply a test on it).
Th...During the execution of the simulation of particle system using a standard command.py script, I would like to compute the value of the potential energy of the whole particle system at every time step (in order to apply a test on it).
There is the exact equivalent to this function already implemented for the kinetic energy [`postpro_3D_GetKineticEnergy()`](http://www.lmgc.univ-montp2.fr/%7Emozul/LMGC90_USER/UserDoc/docs_2018.rc1/chipy_lmgc90.html#pylmgc90.chipy.lmgc90.postpro_3D_GetKineticEnergy). Does the same function exist for the potential energy? (I haven't been able to find it, I have only seen the computation of the potential energy in the post-processing to file).
Many thanks in advance!https://git-xen.lmgc.univ-montp2.fr/lmgc90/lmgc90_user/-/issues/1Problem in visu of Fext due to chipy.TimeEvolution_UpdateStep()2017-04-27T13:04:52ZSimon MendezProblem in visu of Fext due to chipy.TimeEvolution_UpdateStep()When Fext is imposed through chipy.CSpxx_ApplyPressure(), chipy.TimeEvolution_UpdateStep() sets the Fext array to zero.
The problem comes from the order of the calls, between chipy.TimeEvolution_UpdateStep() and
chipy.WriteDis...When Fext is imposed through chipy.CSpxx_ApplyPressure(), chipy.TimeEvolution_UpdateStep() sets the Fext array to zero.
The problem comes from the order of the calls, between chipy.TimeEvolution_UpdateStep() and
chipy.WriteDisplayFiles().
If chipy.TimeEvolution_UpdateStep() is called before chipy.WriteDisplayFiles(), the display files show Fext=0 even if Fext are not zero in the calculation.