ls1mardyn / ls1-mardyn

ls1-MarDyn is a massively parallel Molecular Dynamics (MD) code for large systems. Its main target is the simulation of thermodynamics and nanofluidics. ls1-MarDyn is designed with a focus on performance and easy extensibility.
http://www.ls1-mardyn.de
Other
28 stars 15 forks source link

Add sampling of kinetic energy to ResultWriter #336

Closed HomesGH closed 1 month ago

HomesGH commented 2 months ago

Description

The present PR adds the possibility to get the global kinetic energy (rotational and translational) from the Domain. This is then used in the ResultWriter to sample the total kinetic energy during the simulation. This is helpful when running a (pseudo) NVE simulation since it allows to control the total energy (which should remain constant in NVE).

How Has This Been Tested?

The sampling was tested with

This PR is related to #255