I need to measure the dissipated energy and total energy inside measure circles (RVE). PFC already has commands that calculates these energies in the whole system but there is nothing presented for the mentioned problem!!
You can do it yourself. Measure the contact stress and displacement of particles inside the circle (REV) in each time step. Then calculate the total energy by multiplying the stress by displacement. This is the total energy for a particular time step. For cumulative total energy, add the cumulative work done (energy) for each time step.
Now you can calculate the dissipated energy as well. Energy is dissipated in several modes. For example, energy is dissipated during sliding of contacting particles. So you have to find the sliding force and the sliding distance of each sliding contact inside the circle(REV). Then you can calculate the dissipated energy in sliding by multiplying the sliding force with the sliding distance.