Closed Ziemnono closed 2 years ago
In the branch FEniCS-strain-energy, I modified the function getPotentialEnergy to calculate the potential energy of a FEniCS forcefield.
getPotentialEnergy
However, this function is never called by the solver, so we need a function to manually trigger the call by a Python call.
@Sidaty1 computed the strain energy in the addForce function, we have a perfect match.
In the branch FEniCS-strain-energy, I modified the function
getPotentialEnergy
to calculate the potential energy of a FEniCS forcefield.However, this function is never called by the solver, so we need a function to manually trigger the call by a Python call.