Corrections to drawing the velocity of a tracked

species (dynamic density field of previous timestep);
some optimization changes
This commit is contained in:
2025-10-15 14:46:27 +02:00
parent 31c2b230a9
commit 753cbe31f5
9 changed files with 188 additions and 68 deletions
+4 -1
View File
@@ -59,7 +59,10 @@ TrackedSpecie::TrackedSpecie(
density_for_drawing, mass_kg)) {}
DensityField* TrackedSpecie::densityField() {
return density_field_.get();
// return the density field storing the previous timestep, since
// that density is the only one that makes sense for the calculation
// of e.g. MFP for Tracked-Tracked interactions
return density_for_drawing_.get();
}
VelocityDistribution* TrackedSpecie::velocityDistribution() {