# Energy Calculation Codes in PFC

**URL:** <https://forum.itascainternational.com/t/energy-calculation-codes-in-pfc/2288>\
**Category:** Uncategorized\
**Created:** [November 21, 2025, 7:10pm UTC](https://forum.itascainternational.com/t/energy-calculation-codes-in-pfc/2288 "2025-11-21T19:10:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlaaAbdallah](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@AlaaAbdallah](https://forum.itascainternational.com/u/AlaaAbdallah)\
**Post date:** [November 21, 2025, 7:10pm UTC](https://forum.itascainternational.com/t/energy-calculation-codes-in-pfc/2288/1 "2025-11-21T19:10:35Z")

</div>

Hi,

I have already gone through the documentation describing the physics and theory behind the energy calculations in PFC when performing a triaxial testing on a rock specimen, but I would like to see the actual scripts or code used to compute these energies. I’m trying to understand the implementation in detail for my research.

Energies: Boundary, strain, kinetic, slip, and damping.

If it’s possible to share the relevant code snippets or example scripts, I would really appreciate it.

Thanks in advance for your help.

Alaa
