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

make tracers sample accelerations as well

parent d9b8c839
No related branches found
No related tags found
1 merge request!21Bugfix/nansampling
Pipeline #
......@@ -918,6 +918,7 @@ class DNS(_code):
if not os.path.exists(self.get_particle_file_name()):
with h5py.File(self.get_particle_file_name(), 'w') as particle_file:
particle_file.create_group('tracers0/velocity')
particle_file.create_group('tracers0/acceleration')
self.run(
nb_processes = opt.nb_processes,
nb_threads_per_process = opt.nb_threads_per_process,
......
......@@ -86,8 +86,13 @@ int NSVEparticles<rnumber>::do_stats()
);
/// compute acceleration and sample it
this->fs->compute_Lagrangian_acceleration(this->tmp_vec_field);
this->tmp_vec_field->ift();
sample_from_particles_system(*this->tmp_vec_field,
this->ps,
(this->simname + "_particles.h5"),
"tracers0",
"acceleration");
return EXIT_SUCCESS;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment