mimesis-inria / caribou

Multi-physics computation library
GNU Lesser General Public License v3.0
29 stars 17 forks source link

Output the strain energy #122

Closed Ziemnono closed 2 years ago

Ziemnono commented 2 years ago

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.

Ziemnono commented 2 years ago

@Sidaty1 computed the strain energy in the addForce function, we have a perfect match.