From 29ab0dd49362add54fae1791e1d0776157ee79b0 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Tue, 25 Aug 2026 10:46:38 +0200 Subject: Fix --- modules/core/c++/fplbm.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modules/core/c++/fplbm.hpp') diff --git a/modules/core/c++/fplbm.hpp b/modules/core/c++/fplbm.hpp index d130c8d..840db99 100644 --- a/modules/core/c++/fplbm.hpp +++ b/modules/core/c++/fplbm.hpp @@ -206,13 +206,15 @@ public: // vel_s is technically time the density of the particle? - force = ( vel_s * rho - vel * rho ) * (two / three) * flip_por; + force = ( vel_s * rho - vel * rho ) * rho * flip_por; + // force = ( vel_s * rho - vel * rho ) * flip_por; + // force = ( vel_s * rho - vel * rho ) /* (two / three) */ * flip_por; force_p = force_p - force; }, aabb.template get<"a">(), aabb.template get<"b">()); auto& pirb_acc = pirb.template get<"acceleration">(); - pirb_acc = force_p / (two * pg.template get<"total_mass">().at({})); + pirb_acc = force_p / (pg.template get<"total_mass">().at({})); for(saw::data i{0u}; i < sub_steps; ++i){ verlet_step_lambda(pi,one / sss); -- cgit v1.2.3