Skip to content
Snippets Groups Projects
Commit 34d6c547 authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

update to use new DNS stats

parent dcc3b1c1
No related branches found
No related tags found
1 merge request!23WIP: Feature/use cmake
...@@ -27,9 +27,9 @@ def main(): ...@@ -27,9 +27,9 @@ def main():
'--wd', './'] + '--wd', './'] +
sys.argv[1:]) sys.argv[1:])
c.compute_statistics() c.compute_statistics()
print((c.statistics['energy(t)']*3 - c.statistics['renergy(t)']) / c.statistics['renergy(t)']) print((c.statistics['energy(t)'] - c.statistics['renergy(t)']) / c.statistics['renergy(t)'])
print(list(c.statistics.keys())) print(list(c.statistics.keys()))
energyk = np.mean(c.statistics['energy(t, k)'], axis = 0) energyk = c.statistics['energy(k)']
nshell = c.get_data_file()['kspace/nshell'].value nshell = c.get_data_file()['kspace/nshell'].value
renergy = np.mean(c.statistics['renergy(t)']) renergy = np.mean(c.statistics['renergy(t)'])
print(renergy, np.trapz(energyk[:-2], c.statistics['kshell'][:-2])) print(renergy, np.trapz(energyk[:-2], c.statistics['kshell'][:-2]))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment