Added option to reset relevant fields for

output after a poisson solution step
This commit is contained in:
2024-04-13 11:10:18 +02:00
parent 30b0178e5f
commit 93a51acbda
12 changed files with 71 additions and 9 deletions
+7
View File
@@ -205,6 +205,13 @@ double DynamicDensityField::physicalTime() const {
return timer_->time();
}
void DynamicDensityField::resetDynamicDensityField() {
timer_->resetTime(); // reductive since shared between species
time_in_bin_s_ = 0.;
deleted_particles_ = 0.;
density_per_m3_ = 0.;
}
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////